chkconfig命令主要用来更新(启动或停止)和查询系统服务的运行级信息。谨记chkconfig不是立即自动禁止或激活一个服务,它只是简单的改变了符号连接。使用语法:chkconfig [--add][--del][--list][系统服务] 或 chkconfig [--level ][系统服务...
分类:
系统相关 时间:
2015-03-18 20:18:17
阅读次数:
191
yum install -y vsftpd chkconfig vsftpd on配置问价在/etc/vsftpd/下面chroot_list 默认没有 必须自己建立 vi /etc/vsftpd/chroot_list 随便写点什么或者不写,直接保存 ftpusers 拒绝登录的用户 user_l...
分类:
其他好文 时间:
2015-03-18 12:05:18
阅读次数:
149
方法1,利用 chkconfig 来配置启动级别 在CentOS或者RedHat其他系统下,如果是后面安装的服务,如httpd、mysqld、postfix等,安装后系统默认不会自动启动的。 就算手动执行/etc/init.d/mysqld start启动了服务,只...
分类:
其他好文 时间:
2015-03-17 16:07:17
阅读次数:
137
自定义服务脚本:
#!/bin/bash
#myscript#chkconfig: 2345 90 20
#description: Starts, stops and saves iptables firewallcase $1 in
start)
echo "start my script!!"
sleep 1
;; restart)...
分类:
其他好文 时间:
2015-03-14 13:54:03
阅读次数:
157
1、安装Apache2 yum install httpd2、启动 方法一:service httpd start 方法二:/etc/init.d/httpd start//浏览http://ip,应该看到Apache2的测试页3、设置开机启动 方法一:chkconfig --levels 235 ...
分类:
Web程序 时间:
2015-03-12 14:38:04
阅读次数:
140
1. Remove Network Manager from startup Services.chkconfig NetworkManager off2. Add Default Net Managerchkconfig network on3.Stop NetworkManager firsts...
分类:
Web程序 时间:
2015-03-10 13:50:28
阅读次数:
143
怎么让CentOS集群自动同步时间?首先机器要连外网,这样才能从互联网上同步时间,这是首先要了解的。好了,主要的方法如下:在除了运行ntpd之外的机器上,执行:[html]# chkconfig --list | grep ntpd 看看ntpd有没有开机自启动(如果显示的全为off则表明不是开.....
分类:
其他好文 时间:
2015-03-10 06:47:02
阅读次数:
138
原创作品,出自 “深蓝的blog” 博客,欢迎转载,转载时请务必注明出处,否则追究版权法律责任。
深蓝的blog:
设置mysql开机自启动
[root@master local]# chkconfig –list
[root@master local]# chkconfig mysqld on
[root@master local]# chkconfig --list...
分类:
数据库 时间:
2015-03-05 20:59:45
阅读次数:
162
1. 用yum安装Apache,Mysql,PHP. 1.1安装Apache yum install httpd httpd-devel 安装完成后,用/etc/init.d/httpd start 启动apache 设为开机启动:chkconfig httpd on 1.2 安装mysql 1.2...
分类:
系统相关 时间:
2015-03-04 12:52:46
阅读次数:
169
#!/bin/sh
#
#nginx-thisscriptstartsandstopsthenginxdaemon
#
#chkconfig:-8515
#description:NginxisanHTTP(S)server,HTTP(S)reverse#proxyandIMAP/POP3proxyserver
#processname:nginx
#config:/etc/nginx/nginx.conf
#config:/etc/sysconfig/nginx
#pidfile:/var/run/ng..
分类:
其他好文 时间:
2015-03-03 18:56:34
阅读次数:
145