摘要: 1、进入文件:vim 文件名 eg #vim /etc/httpd/httpd.conf 2、查找待修改内容位置 : (1)shift+“:”,使文件变成可查询状态 (2)输入 / +查询内容 (eg 查询Directory参数,即 /Directory) eg 找到Directory参数,注释掉R 阅读全文
posted @ 2020-11-17 17:02 蚂蚁快跑Go 阅读(3754) 评论(0) 推荐(0) 编辑
摘要: (1)进入 root权限 su root(2)使用ntpdate IP(时间源IP)或service crond restart查看服务有没有开启(3)#crontab -e(新增一下语句) 0 */12 * * * /usr/sbin/ntpdate 172.20.9.11 >> /var/log 阅读全文
posted @ 2017-01-07 16:25 蚂蚁快跑Go 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 查看路由表命令route print 第一步:删除默认路由 route delete 0.0.0.0 注:删除所有0.0.0.0的路由,这个是默认访问外网的路由 第二步:添加静态路由 (假设内网网段为192.168.10.x,网关为192.168.10.1; 外网网段为192.168.20.x,网关 阅读全文
posted @ 2016-11-18 18:07 蚂蚁快跑Go 阅读(263) 评论(0) 推荐(0) 编辑
摘要: ##创建用户和组: [LanRS@localhost ~]$ su root #切换到root Password: [root@localhost LanRS]# groupadd oinstall #创建用户组oinstall [root@localhost LanRS]# groupadd db 阅读全文
posted @ 2016-09-17 18:06 蚂蚁快跑Go 阅读(2470) 评论(0) 推荐(0) 编辑