2022年7月

nginx配置:http访问自动跳转https

http访问自动跳转https的nginx配置如下:server { listen 80; server_name opstips.cn www.opstips.cn; # 方式一: rewrite ^(.*)$ https://www.opstips.cn$1 permanent; # 方式二: # return 301 https://www.opstips.cn$request_uri; }
<阅读全文>

Redhat7 yum源替换为CentOS7 yum源

1. 查看原rpm相关包[root@localhost ~]# rpm -qa | grep yum yum-rhn-plugin-2.0.1-10.el7.noarch yum-utils-1.1.31-54.el7_8.noarch yum-metadata-parser-1.1.4-10.el7.x86_64 yum-langpacks-0.4.2-7.el7.noarch PackageKit-yum-1.1.10-2.el7.x86_64 yum-3.4.3-168.el7.noarch 2. 卸载原rpm相关包[root@localhost ~]# rpm -qa | ......
<阅读全文>