1、安装Apache
[[email protected] ~]# yum -y install httpd
设置开启自启动
[[email protected] ~]# chkconfig httpd on
启动httpd服务
[[email protected] ~]# service httpd start Starting httpd: httpd: Could not reliably determine the server‘s fully qualified domain name, using ::1 for ServerName [ OK ]
测试:如果是远程访问的话,需要在服务器上放行80端口
时间: 2024-10-14 11:12:50