Ubuntu下启动/重启/停止apache,mysql服务器
2012-1-30 18:04 Monday  

分类: Linux 评论(38) 浏览(33681)

// Apache  
//Task: Start Apache 2 Server /启动apache服务  
# /etc/init.d/apache2 start  
//or  
$ sudo /etc/init.d/apache2 start  
//Task: Restart Apache 2 Server /重启apache服务  
# /etc/init.d/apache2 restart  
//or  
$ sudo /etc/init.d/apache2 restart  
//Task: Stop Apache 2 Server /停止apache服务  
# /etc/init.d/apache2 stop  
//or  
$ sudo /etc/init.d/apache2 stop   
// Mysql  
/etc/init.d/mysql start  
/etc/init.d/mysql stop  
/etc/init.d/mysql restart  

+1 28

留下你的看法: