您的位置:首页 > 文旅 > 美景 > 公众号小程序是什么_域名网站备案查询_宁波seo服务快速推广_网站大全

公众号小程序是什么_域名网站备案查询_宁波seo服务快速推广_网站大全

2025/3/22 1:43:46 来源:https://blog.csdn.net/paidaxing2157/article/details/143260782  浏览:    关键词:公众号小程序是什么_域名网站备案查询_宁波seo服务快速推广_网站大全
公众号小程序是什么_域名网站备案查询_宁波seo服务快速推广_网站大全

1.创建挂载点

mount /dev/sr0 /mnt

 vim /etc/yum.repos.d/base.repo

[BaseOS]
name=BaseOS
baseurl=file:///mnt/BaseOS
gpgcheck=0
[Appstream]
name=AppStream
baseurl=file:///mnt/AppStream
gpgcheck=0

2.关闭防火墙等   systemctl stop firewalld

                            setenforce  0

3.下载nginx软件   dnf install nginx -y

4.多IP配置                  nmcli connection modify ens160 ipv4.method manual ipv4.addresses 192.168.92.128/24 ipv4.gateway 192.168.92.2 ipv4.dns 114.114.114.114 +ipv4.addresses 192.168.92.130/24 

重启      nmcli connection up ens160

5.配置文件  vim /etc/nginx/conf.d/test_ip.conf 

server {
        listen 192.168.92.128:80;
        root /www/ip/128;
        location / { #配置/==/www/ip/100下的资源文件
        }
}
server {
        listen 192.168.92.130:80;
        root /www/ip/130;
        location / { #配置/==/www/ip/100下的资源文件
            index  index.html;
        }
}

6.创建目录并编入信息    mkdir /www/ip/{128,130} -pv

echo this is 128 > /www/ip/128/index.html
echo this is 130 > /www/ip/130/index.html
 

7.重启nginx        systemctl restart nginx

8.成功访问

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com