linux下的http搭建

1,编辑vim
# linux下的http搭建

2,安装http服务

yum install httpd -y

systemctl status httpd 查看状态

3,开启服务

systemctl start httpd

4,编写http文件

vim /etc/httpd/conf.d/vhosts.conf

5,重启服务
systemctl restart htttpd

6,关闭防火墙
system stop firewalld
7,关闭selinux
setenforce 0
8,挂载
mount /dev/sr0 /mnt

基于ip地址对web服务器的访问:
# linux下的http搭建

①配置网络
# linux下的http搭建

② 编辑配置文件

# linux下的http搭建

3,写入文件

echo this is 130 > /haha/130
echo this is 135 > /haha/135

4,测试
# linux下的http搭建
# linux下的http搭建

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
  • 2021-07-13
  • 2021-04-25
  • 2021-11-11
  • 2021-11-26
猜你喜欢
  • 2021-04-01
  • 2021-10-01
  • 2021-09-05
  • 2021-12-06
  • 2022-01-13
  • 2021-12-18
  • 2022-02-07
相关资源
相似解决方案