ubuntu下apache和mysql的命令

    1. // Apache  
    2. //Task: Start Apache 2 Server /启动apache服务  
    3. # /etc/init.d/apache2 start  
    4. //or  
    5. $ sudo /etc/init.d/apache2 start  
    6. //Task: Restart Apache 2 Server /重启apache服务  
    7. # /etc/init.d/apache2 restart  
    8. //or  
    9. $ sudo /etc/init.d/apache2 restart  
    10. //Task: Stop Apache 2 Server /停止apache服务  
    11. # /etc/init.d/apache2 stop  
    12. //or  
    13. $ sudo /etc/init.d/apache2 stop   
    14. // Mysql  
    15. /etc/init.d/mysql start  
    16. /etc/init.d/mysql stop  
    17. /etc/init.d/mysql restart 
原文地址:https://www.cnblogs.com/yuwensong/p/4541163.html