linux 命令

当前用户的apache已经安装为linux的服务的话,可以使用以下命令进行以上操作。

//1. 启动apache
service httpd start 
//2. 停止服务apache
service httpd stop 
//3. 重新启动apache
service httpd restart

下面是red hat/CentOs7关闭防火墙的命令!

//1:查看防火状态
systemctl status firewalld
service  iptables status
//2:暂时关闭防火墙
systemctl stop firewalld
service  iptables stop
//3:永久关闭防火墙
systemctl disable firewalld
chkconfig iptables off
//4:重启防火墙
systemctl enable firewalld
service iptables restart  

apache httpd.conf默认位置

 vi /etc/httpd/conf/httpd.conf

apache 错误日志默认位置

 cat /var/log/httpd/error_log
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 1,防火墙端口开放设置vi /etc/sysconfig/iptables添加行(有人说要放在22端口下):-A ...
    jayswu阅读 1,482评论 0 0
  • 第一部分 Linux命令行 1. 基本的bash shell命令 1.1 启动shell /etc/passwd文...
    LALH_08ca阅读 4,415评论 0 2
  • 1.下载Oracle12c 2.配置主机名和IP的映射 3.Oracle安装的先决条件3.1手动设置3.1.1配置...
    wind315阅读 10,763评论 1 1
  • 文/静书 作为有着5000年悠久历史文明古国的后生晚辈,在为自己的祖国有这样的文化而骄傲的同时,对于如何传承和发扬...
    简墨静书阅读 1,092评论 0 4
  • 现在我是迷忙中,有时候挺羡慕那种无忧无虑的人的,我很自私,我知道,自己偶尔的想法很天真,我以知道,可是 ,一个连想...
    别致xiao阅读 877评论 0 0