推荐

php nginx memcache 开机自启动服务 以及如何启动这些服务

inux os 将操作环境分为以下7个等级:

0:开机(请不要切换到此等级)
1:单人使用者模式的文字界面
2:多人使用者模式的文字界面,不具有网络档案系统(NFS)功能
3:多人使用者模式的文字界面,具有网络档案系统(NFS)功能
4:某些发行版的linux使用此等级进入x windows system
5:某些发行版的linux使用此等级进入x windows system
6:重新启动

 

查看开机自启动的服务

[root@caijingchaoguweb91 finance]# chkconfig --list|grep nginx
nginxd          0:关闭  1:关闭  2:关闭  3:启用  4:关闭  5:启用  6:关闭
[root@caijingchaoguweb91 finance]# chkconfig --list|grep php
php-fpm         0:关闭  1:关闭  2:启用  3:启用  4:启用  5:启用  6:关闭
[root@caijingchaoguweb91 finance]# chkconfig --list|grep memcache
memcached       0:关闭  1:关闭  2:关闭  3:启用  4:启用  5:启用  6:关闭
[root@caijingchaoguweb91 finance]# 

服务类型:

stand alone daemon 启动的脚本放置到 /etc/init.d/ 这个目录中,super daemon 的配置文件在 /etc/xinetd.d/* 内, 而启动的方式则为 /etc/init.d/xinetd restart

参考资料:

http://my.oschina.net/phptiger86/blog/137656

http://vbird.dic.ksu.edu.tw/linux_basic/0560daemons.php

posted on 2013-11-28 10:32  高华  阅读(1211)  评论(0编辑  收藏  举报

导航