at 只能执行一次,在一个指定的时间执行一个指定任务,只能执行一次,且需要开启atd进程 anacron: 适合于非 7*24 类型的服务器,以天为周期或者在系统开机后执行任务的工作 它会定时检测服务器停机期间应该执行,但是没有执行的任务,执行一次 常见命令参数Usage: at [-V] [-q ... ...
分类:
系统相关 时间:
2018-07-07 18:04:35
阅读次数:
218
1)下载必须的#cd/data/soft#wgethttps://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.21.tar.gz#tar-xfzfmysql-5.7.21.tar.gz5.7版本需要下载一个BoostC++1.59.0,(下载比较慢)#wgethttp://sourceforge.net/projects/boost/files/
分类:
数据库 时间:
2018-07-05 10:57:51
阅读次数:
214
在 目录下新建文件 shell !/bin/sh chkconfig: 2345 80 05 description: es export JAVA_HOME=/usr/local/java/jdk1.8.0_171 export JAVA_BIN=$JAVA_HOME/bin export PAT ...
分类:
其他好文 时间:
2018-07-03 21:35:00
阅读次数:
197
1、firewalld的基本使用启动: systemctl start firewalld查看状态: systemctl status firewalld 停止: systemctl disable firewalld禁用: systemctl stop firewalld2.systemctl是C ...
分类:
其他好文 时间:
2018-07-03 20:12:20
阅读次数:
157
#!/bin/bash #author Template #Time 2018-06-30 22:07 # chkconfig 2345 40 98 # description nginx start/stop script prefix=/usr/local/nginx Nginx_Bin=${p... ...
分类:
其他好文 时间:
2018-06-30 23:03:18
阅读次数:
213
一、什么是systemctl命令 systemctl命令是系统服务管理器指令,它实际上将 service 和 chkconfig 这两个命令组合到一起 二、常用命令 以nginx为例: 1.启动nginx服务 2.设置开机自启动 3.停止开机自启动 4.查看服务当前状态 5.重新启动某服务 6.查看 ...
分类:
其他好文 时间:
2018-06-30 16:13:07
阅读次数:
141
安装包yum install vixie-cronyum install crontabs 开机启动chkconfig --level 35 crond on启动服务service crond start 编辑定时任务文件vi /etc/crontab*/1 * * * * /home/sh/del ...
分类:
其他好文 时间:
2018-06-29 20:34:05
阅读次数:
148
四、添加监控客户端1、监控Linux服务器首先安装zabbix-agent客户端CentOS6客户端:#rpm-ivhhttp://repo.zabbix.com/zabbix/3.4/rhel/6/x86_64/zabbix-release-3.4-1.el6.noarch.rpm#yuminstallzabbix-agent#安装的过程自动创建zabbix用户和组#chkconfig--lev
分类:
其他好文 时间:
2018-06-29 16:29:21
阅读次数:
269
server: 编辑文件/etc/ntp.conf 添加如下 server IP prefer #主服务器 peer IP #备服务器 保存退出 启停: #/etc/init.d/ntpd start 系统自动启动 #chkconfig --list|grep ntp #chkconfig --le ...
分类:
其他好文 时间:
2018-06-29 01:11:33
阅读次数:
158
vim /etc/init.d/nginx #在linux系统的/etc/init.d/目录下创建nginx文件 在脚本中添加如下命令: #!/bin/bash # nginx Startup script for the Nginx HTTP Server # it is v.0.0.2 vers... ...
分类:
其他好文 时间:
2018-06-28 14:01:59
阅读次数:
170