1.检查是否安装apache chkconfig --list httpd :表示已经安装apache 2.执行: chkconfig --add httpd chkconfig httpd on
不报错说明添加成功
3.重起liunx :reboot
4.浏览器访问apache
http://192.168.1.253:80 5.如果未安装apache先安装apache,才生效哦