yum install httpd //安装httpdcd /var/www/html //进入到此目录创建index. html文件cd /etc/httpd/conf //进入到配置目录,修改配置文件,讲端口号由80改为81systemctl start httpd //启动服务