ubuntu下各服务 重启命令

来源:互联网 发布:一念天堂知乎 编辑:程序博客网 时间:2024/05/20 02:29

ubuntu下各服务 重启命令: 

清理目录
apt-get auto-clean

重新启动vsftp
/etc/init.d/vsftpd restart

启动svnserve:
svnserve --daemon --root [svn目录的路径]

重启apache:
sudo /etc/init.d/apache2 restart

重启mysql
sudo /etc/init.d/mysql restart

重启本地网络
/etc/init.d/networking restart

设置开机自启动服务(程序)
sysv-rc-conf

 安装软件 
apt-get install 软件名称

卸载软件
apt-get remove --purge 软件名称

0 0