[root@firewall init.d]# chkconfig --level 35 httpd on service httpd does not support chkconfig 一个服务如何才能做到支持chkconfig...?
因为这2天要安装nginx服务器,其nginx没有提供启动脚本,就想自己写一个启动脚本,但是再写完脚本的时候,想使用service启动该服务, nginx启动脚本如下: #!/bin/bash # Startup script for the nginx Web Server # description: nginx is a World Wide Web server. It is used to serve # HTML files and CGI. # processname: nginx # pidfile: /usr/local/nginx/logs/nginx.pid # config: /usr/local/nginx/conf/nginx....
安装步骤 groupadd -r clamav useradd -r -g clamav -d /var/amavis -m -s /bin/false -c "Clam AntiVirus" clamav cd /usr/local/src wget http://downloads.sourceforge.net/clamav/clamav-0.95.3.tar.gz tar xzf clamav-0.95.3.tar.gz chown -R root.root clamav-0.95.3 cd clamav-0.95.3 ./configure make make install ln -s /usr/local/etc/clamd.conf /etc/clamd.conf vi /etc/clamd.conf # Example LogSyslog yes Loca...
原文件如下:[code] 1 #!/bin/sh 2 # 3 # chkconfig: 2345 1521 5 4 # description: start oracle listener service 5 6 start() { 7 lsnrctl start 8 } 9 10 stop() { 11 lsnrctl stop 12 } 13 14 restart() { 15 stop 16 start 17 } 18 19 case "$1" in 20 start) 21 start 22 ;; 23 stop) 24 stop 25 ;; 26 res...
service 能立即启动关闭服务 xinetd 好象是与安全相关的 chkconfig 和 windows下的msconfig有点像 能够控制下次重启之后启动的服务 我知道以上认识很粗浅 请大家补充指正
前面忘记说了,运行过程中还出现过上面那个title的错误.... 官方的说法是 MySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older clients. 解决办法是: UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd') WHERE User = 'usrname'; update后还有重启下mysql服务,在运行程序就可以了 本文来自ChinaUnix博客,如果查看原...