Liunx 之 Apache 学习笔记
apahce启动命令:
/usr/local/apache2/bin/apachectl start apaceh
apache立即停止命令
/usr/local/apache2/bin/apachectl stop
apache重新启动命令:
/usr/local/apache2/bin/apachectl restart
apache安全重启:
/usr/local/sbin/apachectl graceful
如果apache安装成为linux的服务的话,可以用以下命令操作:
启动
service httpd start
重新启动
service httpd restart
停止服务
service httpd stop
Linux系统为Ubuntu
1、Start Apache 2 Server /启动apache服务
/etc/init.d/apache2 start
或
sudo /etc/init.d/apache2 start
2、 Restart Apache 2 Server /重启apache服务
/etc/init.d/apache2 restart
或
sudo /etc/init.d/apache2 restart
3、Stop Apache 2 Server /停止apache服务
/etc/init.d/apache2 stop
或
sudo /etc/init.d/apache2 stop
软件安装后相关文件位置
1.下载的软件存放位置
/var/cache/apt/archives
2.安装后软件默认位置
/usr/share
3.可执行文件位置
/usr/bin
4.配置文件位置
/etc
5.lib文件位置
/usr/lib
不断学习更新中。。。。
参考资料: