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

不断学习更新中。。。。

参考资料:

http://blog.sina.com.cn/s/blog_70ac6bec01018mqs.html

转载于:https://www.cnblogs.com/BooneX/p/9238380.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值