基本的操作方法:
本文假设你的apahce安装目录为/usr/local/apache2,这些方法适合任何情况
apahce启动命令:
推荐
[user@master1 ~]$ /usr/local/apache2/bin/apachectl start
apache停止命令
[user@master1 ~]$ /usr/local/apache2/bin/apachectl stop
apache重新启动命令:
[user@master1 ~]$ /usr/local/apache2/bin/apachectl restart
要在重启 Apache 服务器时不中断当前的连接,则应运行:
[user@master1 ~]$ /usr/local/sbin/apachectl graceful
如果apache安装成为linux的服务的话,可以用以下命令操作:
[user@master1 ~]$ service httpd start 启动
[user@master1 ~]$ service httpd restart 重新启动
[user@master1 ~]$ service httpd stop 停止服务
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 Httpd 服务管理
转载
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
5-Docker实例-安装httpd
5-Docker实例-安装httpd
centos apache docker -
httpd服务和apache
httpd服务和apache
httpd 服务 apache -
Linux之apache安装(httpd)
Linux中安装httpd服务器
安装 linux Apache -
[HTTPD] Linux(Apache)Httpd服务器安装,启动及httpd.conf配置详解
本章blog 主要讲解 [HTTPD] Linux(Apache)Httpd服务器安装,启动及httpd.conf配置详解
linux httpd httpd 安装 httpd 启动 apache Apache httpd -
42 openEuler搭建Apache服务器-概述和管理httpd
Web(World Wide Web)是目前最常用的Internet协议之一。目前在Unix-Like系统中的web服务器主要通过Apache服务器软件实现。为了实现运营动态网站,产生了LAMP(Linux + Apache +MySQL + PHP)。web服务可以结合文字、图形、影像以及声音等多媒体,并支持超链接(Hyperlink)的方式传输信息。openEuler系统中的web服务器版本是Apache HTTP服务器2.4版本,即httpd,一个由Apache软件基金会发展而来的开源web服务器。
Apache openEuler httpd web服务器 lamp