摘要: 一、临时配置网络(ip,网关,dns)+永久配置 1、临时配置网络IP地址命令为“ifconfig 网卡名 ip地址/24”,例如: ifconfig eth0 192.168.16.253/24 2、临时修改网关 route add default gw 192.168.16.254 netmas 阅读全文
posted @ 2017-03-21 22:47 不老玩童萧龙 阅读(706) 评论(0) 推荐(0) 编辑
摘要: 作业一:nginx服务 二进制安装nginx包 1、使用命令:yum install epel-release -y ,来安装epel,安装成功如下图:(因为我用32位的centos7老是出现各种各样的问题,所以这里我用32位的centos6.8版本进行演示) 2、使用yum install ngi 阅读全文
posted @ 2017-03-21 19:28 不老玩童萧龙 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 查看SELinux状态: 1、/usr/sbin/sestatus -v ##如果SELinux status参数为enabled即为开启状态 SELinux status: enabled 2、getenforce ##也可以用这个命令检查 关闭SELinux: 1、临时关闭(不用重启机器): s 阅读全文
posted @ 2017-03-21 19:10 不老玩童萧龙 阅读(788) 评论(0) 推荐(0) 编辑