1. 在需要设置为开机启动的脚本中加入必须的chkconfig启动脚本规范,如下: #!/bin/bash # chkconfig: 2345 80 12 # description: auto start shell script 2. 使用chkconfig将脚本加入自动启动列表 # mv yo ...
分类:
其他好文 时间:
2020-01-31 22:53:02
阅读次数:
86
记录服务器每次重启之后启动一些服务. systemd systemd简介 CentOS7已不再使用chkconfig管理启动项,而是使用systemd。关于systemd的衍生和发展,可以参见《CentOS7/RHEL7 systemd详解》和《CentOS7进程管理systemd详解》。简单介绍如 ...
分类:
其他好文 时间:
2020-01-22 18:43:09
阅读次数:
117
一. 写在前面 centos7建议使用systemctl来管理服务的自启动,它能够满足之前service和chkconfig的功能 1.systemd有系统和用户区分;系统(/user/lib/systemd/system/)、用户(/etc/lib/systemd/user/) 2.一般系统管理员 ...
分类:
其他好文 时间:
2020-01-22 16:46:44
阅读次数:
124
Docker学习(十二)中遇到的一些问题汇总 标签(空格分隔): docker docker: Error response from daemon: Conflict. The container name "/myubuntu" is already in use docker containe ...
分类:
其他好文 时间:
2020-01-21 15:57:49
阅读次数:
86
crontab 详细用法 定时任务 转自:http://blog.chinaunix.net/uid-25785357-id-3434344.html 使用crontab你可以在指定的时间执行一个shell脚本或者一系列Linux命令。例如系统管理员安排一个备份任务使其每天都运行 如何往 cron ...
分类:
其他好文 时间:
2020-01-21 00:27:39
阅读次数:
100
1.CentOS6 (1)以rsync为例 bash !/bin/bash chkconfig: 2345 20 80 description: rsync.sh function start_rsync { if [ ! s /var/run/rsyncd.pid ];then /usr/bin/ ...
分类:
其他好文 时间:
2020-01-14 20:20:43
阅读次数:
236
chkconfig命令使用 自启动目录脚本应该放在/etc/init.d/ [root@localhost ~]$ chkconfig --list # 列出所有被chkconfig管理的服务 [root@localhost ~]$ chkconfig --add httpd # 添加指定的服务,让 ...
分类:
其他好文 时间:
2020-01-14 10:14:11
阅读次数:
93
系统优化 关闭系统安全服务 iptables --Centos6防火墙 临时关闭 /etc/init.d/iptables stop /etc/init.d/iptables status services stop iptables 永久关闭 chkconfig iptables off chkc ...
分类:
系统相关 时间:
2020-01-11 20:47:11
阅读次数:
144
1、创建脚本 # vi /etc/init.d/nginx #!/bin/bash # nginx Startup script for the Nginx HTTP Server # it is v.0.0.2 version. # chkconfig: - 85 15 # description ...
分类:
其他好文 时间:
2020-01-08 10:50:04
阅读次数:
70
chkconfig NetworkManager off chkconfig network on service NetworkManager stop service network start /etc/init.d/network restart ...
分类:
系统相关 时间:
2020-01-04 01:01:54
阅读次数:
318