You are not allowed to add pages
Direct Link
Direct Link
vi /etc/sysconfig/network-scripts/ifcfg-ens32 (最后一个为网卡名称) (1)bootproto=dhcp (2)onboot=yes 或 (1)bootproto=static (2)onboot=yes (3)在最后加上几行,IP地址、子网掩码、网关、dns服务器 IPADDR=192.168.1.160 NETMASK=255.255.255.0 GATEWAY=192.168.1.1 DNS1=119.29.29.29 DNS2=8.8.8.8
systemctl restart network
rpm -qa | grep ssh openssh-server-6.6.1p1-12.el7_1.x86_64 openssh-clients-6.6.1p1-12.el7_1.x86_64 libssh2-1.4.3-8.el7.x86_64 openssh-6.6.1p1-12.el7_1.x86_64
yum install openssh-server
service sshd start Redirecting to /bin/systemctl start sshd.service
netstat -ntpl | grep 22 tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 17816/sshd tcp6 0 0 :::22 :::* LISTEN 17816/sshd
yum install git 2.配置git:
1 git config –global user.name “Your Name” 2 git config –global user.email “email@example.com” 3 #查看配置是否生效 4 git config –list 3.创建本地仓库:
1 #创建目录 2 mkdir gitspace 3 cd gitspace 4 git init
查询端口号80 是否开启: firewall-cmd --query-port=80/tcp 重启防火墙: firewall-cmd --reload 查询有哪些端口是开启的: firewall-cmd --list-port 关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 开启端口 firewall-cmd --zone=public --add-port=80/tcp --permanent --zone #作用域 --add-port=80/tcp #添加端口,格式为:端口/通讯协议 --permanent #永久生效,没有此参数重启后失效