随笔分类 -  Centos7

摘要:CentOS 7 下 ifconfig command not found 或 ip command not found 解决办法 首先查看:/sbin/ifconfig /sbin/ip 是否存在 如果不存在,执行: yum upgrade yum install net-tools 阅读全文
posted @ 2018-04-23 11:37 fuhaizi 阅读(1751) 评论(0) 推荐(0)
摘要:init方法 1、centos7的grub2界面会有两个入口,正常系统入口和救援模式; 2、修改grub2引导 在正常系统入口上按下"e",会进入edit模式,搜寻ro那一行,以linux16开头的; 把ro更改成rw;(把只读更改成可写) 把rhgb quiet删除;(quiet模式没有代码行唰唰 阅读全文
posted @ 2018-04-04 16:44 fuhaizi 阅读(291) 评论(0) 推荐(0)
摘要:查看系统时间 [root@localhost ~]# dateSat Feb 24 14:41:22 CST 2018 查看硬件时间 [root@localhost ~]# hwclock --showSat 24 Feb 2018 02:40:39 PM CST -0.241654 seconds 阅读全文
posted @ 2018-02-24 14:54 fuhaizi 阅读(696) 评论(0) 推荐(1)
摘要:一,配置前请先关闭防火墙selinux 防火墙关闭方法,参见上一篇文章。 setenforce 0 #临时关闭 修改/etc/selinux/config 文件 将SELINUX=enforcing改为SELINUX=disabled #永久关闭 二,安装依赖包 yum -y install bin 阅读全文
posted @ 2018-02-22 17:49 fuhaizi 阅读(538) 评论(0) 推荐(0)
摘要:1、直接关闭防火墙 systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 2、设置 iptables service yum -y install iptabl 阅读全文
posted @ 2018-02-22 14:05 fuhaizi 阅读(184) 评论(0) 推荐(0)