Linux打开关闭Apache服务器
2017-04-18 00:00
393 查看
基本的操作方法:
如果:apahce安装目录为/usr/local/apache2,请使用如下命令
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 停止服务
如果apache安装成为linux(ubuntu)的服务器,
一、Start Apache 2 Server /启动apache服务
# /etc/init.d/apache2 start
or
$ sudo /etc/init.d/apache2 start
二、 Restart Apache 2 Server /重启apache服务
# /etc/init.d/apache2 restart
or
$ sudo /etc/init.d/apache2 restart
三、Stop Apache 2 Server /停止apache服务
# /etc/init.d/apache2 stop
or
$ sudo /etc/init.d/apache2 stop
如果:apahce安装目录为/usr/local/apache2,请使用如下命令
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 停止服务
如果apache安装成为linux(ubuntu)的服务器,
一、Start Apache 2 Server /启动apache服务
# /etc/init.d/apache2 start
or
$ sudo /etc/init.d/apache2 start
二、 Restart Apache 2 Server /重启apache服务
# /etc/init.d/apache2 restart
or
$ sudo /etc/init.d/apache2 restart
三、Stop Apache 2 Server /停止apache服务
# /etc/init.d/apache2 stop
or
$ sudo /etc/init.d/apache2 stop
相关文章推荐
- Linux有问必答:如何在Apache网站服务器上关闭服务器签名
- Linux有问必答:如何在Apache网站服务器上关闭服务器签名
- Linux下apache服务器安装,sqlite安装,apache启动,关闭,重启,编写cig程序进行测试,浏览器访问cig程序
- Linux有问必答:如何在Apache网站服务器上关闭服务器签名
- 如何测试和调试Linux的Apache服务器
- 如何测试和调试Linux的Apache服务器
- [Linux]Apache服务器配置技巧
- LINUX/APACHE/MYSQL/PHP服务器配置
- 关闭和打开服务器的FSO功能-2006-6-24-2
- 一点一滴学习Linux--Apache服务器篇
- Linux快速构建apache web服务器
- Linux中Apache服务器的基本配置
- Linux 下实现 Apache服务器用户验证
- Linux下的Apache服务器配置小记
- Linux下Apache服务器的配置!
- [Linux]Apache下服务器虚拟主机设置技术深入解析[1]
- Linux下jsp开发环境,apache,tomcat服务器配置过程
- Linux Apache Web 服务器安全设置
- Linux下jsp开发环境,apache,tomcat服务器配置过程
- linux下用实验快速掌握web服务器Apache