linux 常见名词及命令(六)

查看软件安装位置 : dpkg -L 软件包名字

ubuntu环境的apache相关命令:

查看是否启动:ps -aux | grep httpd  或者 netstat -an | grep :80

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

停止apache:/etc/init.d/apache2 stop

原文地址:https://www.cnblogs.com/gyfluck/p/9354998.html