CentOS下Apache默认安装路径

您所在的位置:网站首页 apache的配置文件是什么 CentOS下Apache默认安装路径

CentOS下Apache默认安装路径

#CentOS下Apache默认安装路径| 来源: 网络整理| 查看: 265

systemctl start firewalld.service#启动firewallsystemctl stop firewalld.service#停止firewallsystemctl disable firewalld.service#禁止firewall开机启动

systemctl start iptables.service#启动systemctl stop iptables.service#停止iptablessystemctl disable iptables.service#禁止iptables开机启动

安装命令:yum -yinstall httpd

配置文件默认路径:/etc/httpd/conf/httpd.conf 

启动服务命令:systemctl start httpd.service

开机自动启动:systemctl enable httpd.service

查看状态:systemctl status httpd.service

查看进程是不是存在:ps -ef | grep httpd

查看端口是不是正在监听:netstat -lntp



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3