安装gcc
检测是否安装gcc
gcc -v
如果没有安装先安装gcc
yum install -y gcc-c++
安装
yum -y install httpd
同时安装vim
yum install vim
修改Apache配置文件指向路径
/etc/httpd/conf/httpd.conf
启动Apache
systemctl start httpd
停止Apache
systemctl stop httpd
重启Apache
systemctl restart httpd
查看Apache状态
systemctl status httpd
配置Apache开机启动项
chkconfig --add httpd
chkconfig httpd on
网友评论