命令
作用
备注
apt-get update
源更新
service --status-all
查看服务状态列表
"+" starte
"-" stopped
"?" unknown
update-rc.d -f myservice default
开机启动myservice
update-rc.d -f myservice remove
停止开机启动myservice
install sysv-rc-conf
安装代码
sysv-rc-conf
执行代码
apt-get install mysql
安装mysql
dpkg-reconfigure dash
修改默认shell为dash
ll /bin/sh
查看当前shell
apt-get –reinstall install 软件包名
重新安装软件
apt-get purge tex-common
清楚软件tex-common
apt-get -f install
自动修复依赖
update-rc.d apache2 defaults
设置apache2开机启动
update-rc.d apache2 defaults 90
指定该服务的启动顺序
update-rc.d apache2 defaults 20 80
设置start与kill顺序
其中前面的20是start时的运行顺序级别,80为kill时的级别。
update-rc.d -f apache2 remove
删除apache2开机启动
-f 强制
update-rc.d apache2 stop 80 0 1 2 3 4 5 6 .
服务升级后仍然保持被禁用
未完,待续。。。
参考文章:
<a href="http://www.2cto.com/os/201304/205486.html" target="_blank">http://www.2cto.com/os/201304/205486.html</a>
<a href="http://www.th7.cn/system/lin/201505/104866.shtml" target="_blank">http://www.th7.cn/system/lin/201505/104866.shtml</a>
<a href="http://blog.sina.com.cn/s/blog_79159ef50100z1ax.html" target="_blank">http://blog.sina.com.cn/s/blog_79159ef50100z1ax.html</a>
<a href="http://blog.csdn.net/jakieyoung/article/details/6416799" target="_blank">http://blog.csdn.net/jakieyoung/article/details/6416799</a>
本文转自 piazini 51CTO博客,原文链接:http://blog.51cto.com/wutou/1899761