systemctl命令是系统服务管理器指令,融合了service和chkconfig的功能,可以查看和设置服务。 这里以docker服务为例。 利用systemctl命令管理 对应的旧指令(chkconfig、service) ...
分类:
系统相关 时间:
2017-12-02 00:37:35
阅读次数:
148
1 //确定当前系统版本 2 # cat /etc/redhat-release 3 //关闭防火墙 4 # service iptables stop 5 //永久关闭防火墙 6 # chkconfig iptables off 7 //查看防火墙关闭状态 8 # service iptables... ...
分类:
其他好文 时间:
2017-12-01 18:38:43
阅读次数:
133
01、crond服务管理与访问控制 => service crond restart 和 chkconfig crond on 02、用户的crontab设置 => [选项] 选项: -e:编辑 crontab 定时任务 -l:查询crontab任务 -r:删除当前用户所有的crontab任务 ...
分类:
系统相关 时间:
2017-11-29 11:35:03
阅读次数:
217
安装cactilamp环境[iyunv@Cacti ~]#service iptables stop //关闭防火墙服务[iyunv@Cacti ~]#chkconfig iptables off //永久性关闭[iyunv@Cacti ~]#vi /etc/sysconfig/selinux // ...
分类:
其他好文 时间:
2017-11-28 15:43:41
阅读次数:
118
一 实时日志跟踪 主动刷新,确保看到最新的档案内容。 格式: tail -f 文件名全称 默认情况下它显示文件的最后十行。 如: cd/app/log/passage tail -f passage.log 实时日志跟踪 tail -f -n 100 catalina.out 从最后的100行开始显... ...
分类:
系统相关 时间:
2017-11-27 15:20:15
阅读次数:
253
一.时间同步服务器可以将数据库服务器作为同步服务器ntp.conf 保持不变 //启动服务service ntpd start //设置ntpd服务自启动chkconfig ntpd on//检查chkconfig --list ntpd 二.客户端配置1. 修改ntp.conf的server配置项 ...
分类:
系统相关 时间:
2017-11-24 19:01:14
阅读次数:
239
本次实验centos6.5 192.168.204.150 nfs150 192.168.204.128 客户端 实验开始,仍然是关闭防火墙,关闭SELinux 还记得命令吗? # /etc/init.d/iptables stop # chkconfig iptables off # vim /e ...
分类:
系统相关 时间:
2017-11-21 01:14:12
阅读次数:
244
日计划 ##### 一、at 一次性计划任务 # yum install at -y # at 23:23 指定当天的时间去执行问题; # at -l 查看计划任务 -c 查看编号任务 -d 删除编号的任务 二、 周期性计划任务 ########### cron crontab 计划任务; cron ...
分类:
其他好文 时间:
2017-11-17 19:58:39
阅读次数:
148
课程大纲 1.日志管理简介 2.rsyslogd日志服务 3.日志轮替 日志管理就是可以保存系统所有的想记录的信息 首先要确定服务启动。 ps aux | grep rsyslogd #查看服务是否启动 chkconfig --list | grep rsyslog #查看服务是否启动 rsyslo ...
分类:
其他好文 时间:
2017-11-17 13:31:50
阅读次数:
230
1.最小化安装系统,安装基本的软件包,2.#修改SSH安全配置vi/etc/ssh/sshd_config#SSH链接默认端口port10022#禁止root账号登陆PermitRootLoginno#禁止空密码PermitEmptyPasswordsno#不使用DNSUseDNSno#局域网一般使用内部的DNS服务3.关闭不需要的服务;forsunin`chkconfig--lis..
分类:
其他好文 时间:
2017-11-17 11:55:08
阅读次数:
127