1、安装httpd,并启动
yum install -y httpd
systemctl start httpd // 启动
systemctl enable httpd // 开机启动
2、遇到启动失败,可能的原因是已存在httpd进程(直接执行过httpd)
ps -ef | grep httpd // 查看是否存在httpd进程
如果存在:
kill -9 进程id
或者 pkill httpd
或者 killall httpd
1、安装httpd,并启动
yum install -y httpd
systemctl start httpd // 启动
systemctl enable httpd // 开机启动
2、遇到启动失败,可能的原因是已存在httpd进程(直接执行过httpd)
ps -ef | grep httpd // 查看是否存在httpd进程
如果存在:
kill -9 进程id
或者 pkill httpd
或者 killall httpd