ubuntu中的服务配置工具
十一月 14th, 2009 Posted in Ubuntu | 阅读次数: 257 次
Author:高进波
时间:2009-11-14
在RH中我们能用chkconfig来进行服务配置,但是ubuntu中并没有这么一个东西
1.如果通过手工来配置服务的话,还是感觉比较麻烦的,幸好,ubuntu中有一个sysv-rc-conf
系统默认是没有装的,安装方法为:
apt-get install sysv-rc-conf
其用法跟chkconfig极为相似。
例如想把mysqld配置成开机自动启动的服务,只需要执行如下服务
sysv-rc-conf –level 2 mysqld on
2.要配置nginx的自动运行,可以将/usr/local/nginx/sbin/nginx添加到/etc/rc.local中,Ubuntu可以执行
update-rc.d nginx defaults
完成!
相关日志:
Tags: Ubuntu
六月 17th, 2011 at 05:31
My Recommended Websites…
[...]some new websites on the web we love, even if they are not related to ours. Check them out[...]…