一键安装apache
yum install httpd
启动apche
service httpd start
centos7 启动httpd
apachectl start
centos6.5 启动httpd
/etc/init.d/httpd start 或者 service httpd start
设置apache开机自动启动
chkconfig --levels 235 httpd on
一键安装apache
yum install httpd
启动apche
service httpd start
centos7 启动httpd
apachectl start
centos6.5 启动httpd
/etc/init.d/httpd start 或者 service httpd start
设置apache开机自动启动
chkconfig --levels 235 httpd on