当前位置:首页 > Linux > 正文内容

UOS Server 20 1060a 安装Nginx1.24.0、php8.2.17、composer2.7.2、redis5.0.3

Dearskys8个月前 (03-22)Linux247

一、登录服务器后,查看dns是否正常

vi /etc/resolv.conf

修改里面的nameserver的值为:114.114.114.114

结果如下:

查看resolv.png

二、添加使用到的源

cd /etc/yum.repos.d
vi epel-modular.repo
写入下面内容
[epel-modular]
# This repo has been RETIRED, see https://pagure.io/epel/issue/198 for more details.
name=Extra Packages for Enterprise Linux Modular 8 - $basearch - RETIRED
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
#baseurl=https://download.example/pub/epel/8/Modular/$basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-modular-8&arch=$basearch&infra=$infra&content=$contentdir
enabled=0
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
[epel-modular-debuginfo]
# This repo has been RETIRED, see https://pagure.io/epel/issue/198 for more details.
name=Extra Packages for Enterprise Linux Modular 8 - $basearch - Debug - RETIRED
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
#baseurl=https://download.example/pub/epel/8/Modular/$basearch/debug
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-modular-debug-8&arch=$basearch&infra=$infra&content=$contentdir
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
gpgcheck=1
[epel-modular-source]
# This repo has been RETIRED, see https://pagure.io/epel/issue/198 for more details.
name=Extra Packages for Enterprise Linux Modular 8 - $basearch - Source - RETIRED
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place it's address here.
#baseurl=https://download.example/pub/epel/8/Modular/source/tree/
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-modular-source-8&arch=$basearch&infra=$infra&content=$contentdir
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
gpgcheck=1

保存退出

vi epel.repo
写入下面内容
[epel]
name=Extra Packages for Enterprise Linux 8 - $basearch
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/8/Everything/$basearch
#metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-8&arch=$basearch&infra=$infra&content=$contentdir
enabled=1
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 8 - $basearch - Debug
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/8/Everything/$basearch/debug
#metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-8&arch=$basearch&infra=$infra&content=$contentdir
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 8 - $basearch - Source
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place it's address here.
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/8/Everything/source/tree/
#metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-8&arch=$basearch&infra=$infra&content=$contentdir
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
gpgcheck=1

保存退出

vi epel-testing-modular.repo
写入下面内容
[epel-testing-modular]
# This repo has been RETIRED, see https://pagure.io/epel/issue/198 for more details.
name=Extra Packages for Enterprise Linux Modular 8 - Testing - $basearch - RETIRED
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
#baseurl=https://download.example/pub/epel/testing/8/Modular/$basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-modular-epel8&arch=$basearch&infra=$infra&content=$contentdir
enabled=0
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
[epel-testing-modular-debuginfo]
# This repo has been RETIRED, see https://pagure.io/epel/issue/198 for more details.
name=Extra Packages for Enterprise Linux Modular 8 - Testing - $basearch - Debug - RETIRED
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
#baseurl=https://download.example/pub/epel/testing/8/Modular/$basearch/debug
metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-modular-debug-epel8&arch=$basearch&infra=$infra&content=$contentdir
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
gpgcheck=1
[epel-testing-modular-source]
# This repo has been RETIRED, see https://pagure.io/epel/issue/198 for more details.
name=Extra Packages for Enterprise Linux Modular 8 - Testing - $basearch - Source - RETIRED
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place it's address here.
#baseurl=https://download.example/pub/epel/testing/8/Modular/source/tree/
metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-modular-source-epel8&arch=$basearch&infra=$infra&content=$contentdir
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
gpgcheck=1

保存退出

vi epel-testing.repo
写入下面内容
[epel-testing]
name=Extra Packages for Enterprise Linux 8 - Testing - $basearch
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/testing/8/Everything/$basearch
#metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-epel8&arch=$basearch&infra=$infra&content=$contentdir
enabled=0
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
[epel-testing-debuginfo]
name=Extra Packages for Enterprise Linux 8 - Testing - $basearch - Debug
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/testing/8/Everything/$basearch/debug
#metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel8&arch=$basearch&infra=$infra&content=$contentdir
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
gpgcheck=1
[epel-testing-source]
name=Extra Packages for Enterprise Linux 8 - Testing - $basearch - Source
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place it's address here.
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/testing/8/Everything/source/tree/
#metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel8&arch=$basearch&infra=$infra&content=$contentdir
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
gpgcheck=1

保存退出

vi nginx.repo
写入下面内容
[nginx-stable]
name=nginx stable repo
baseurl=https://mirrors.nju.edu.cn/nginx/centos/8/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://mirrors.nju.edu.cn/nginx/keys/nginx_signing.key
module_hotfixes=true
[nginx-mainline]
name=nginx mainline repo
baseurl=https://mirrors.nju.edu.cn/nginx/mainline/centos/8/$basearch/
gpgcheck=1
enabled=0
gpgkey=https://mirrors.nju.edu.cn/nginx/keys/nginx_signing.key
module_hotfixes=true

保存退出

vi remi-modular.repo
写入下面内容
# Repository: https://rpms.remirepo.net/
# Blog:       https://blog.remirepo.net/
# Forum:      https://forum.remirepo.net/
[remi-modular]
name=Remi's Modular repository for Enterprise Linux 8 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/8/modular/$basearch/
#mirrorlist=https://rpms.remirepo.net/enterprise/8/modular/$basearch/httpsmirror
baseurl=https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/8/modular/$basearch/
enabled=1
gpgcheck=1
# can be enabled if not being a proxy because of possible cache issue
repo_gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi.el8
[remi-modular-debuginfo]
name=Remi's Modular repository for Enterprise Linux 8 - $basearch - debuginfo
#baseurl=http://rpms.remirepo.net/enterprise/8/debug-modular/$basearch/
#mirrorlist=https://rpms.remirepo.net/enterprise/8/debug-modular/$basearch/httpsmirror
baseurl=https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/8/debug-modular/$basearch/
enabled=0
gpgcheck=1
repo_gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi.el8
[remi-modular-test]
name=Remi's Modular testing repository for Enterprise Linux 8 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/8/modular-test/$basearch/
#mirrorlist=https://rpms.remirepo.net/enterprise/8/modular-test/$basearch/httpsmirror
baseurl=https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/8/modular-test/$basearch/
enabled=0
gpgcheck=1
repo_gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi.el8
[remi-modular-test-debuginfo]
name=Remi's Modular testing repository for Enterprise Linux 8 - $basearch - debuginfo
#baseurl=http://rpms.remirepo.net/enterprise/8/debug-modular-test/$basearch/
#mirrorlist=https://rpms.remirepo.net/enterprise/8/debug-modular-test/$basearch/httpsmirror
baseurl=https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/8/debug-modular-test/$basearch/
enabled=0
gpgcheck=1
repo_gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi.el8

保存退出

vi remi.repo
写入下面内容
# Repository: https://rpms.remirepo.net/
# Blog:       https://blog.remirepo.net/
# Forum:      https://forum.remirepo.net/
[remi]
name=Remi's RPM repository for Enterprise Linux 8 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/8/remi/$basearch/
#mirrorlist=https://rpms.remirepo.net/enterprise/8/remi/$basearch/httpsmirror
baseurl=https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/8/remi/$basearch/
enabled=0
gpgcheck=1
# can be enabled if not being a proxy because of possible cache issue
repo_gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi.el8
[remi-test]
name=Remi's test RPM repository for Enterprise Linux 8 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/8/test/$basearch/
#mirrorlist=https://rpms.remirepo.net/enterprise/8/test/$basearch/mirror
baseurl=https://mirrors.tuna.tsinghua.edu.cn/remi//enterprise/8/test/$basearch/
# WARNING: If you enable this repository, you must also enable "remi"
enabled=0
gpgcheck=1
repo_gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi.el8
[remi-debuginfo]
name=Remi's RPM repository for Enterprise Linux 8 - $basearch - debuginfo
baseurl=https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/8/debug-remi/$basearch/
enabled=0
gpgcheck=1
repo_gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi.el8
[remi-test-debuginfo]
name=Remi's test RPM repository for Enterprise Linux 8 - $basearch - debuginfo
baseurl=https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/8/debug-test/$basearch/
enabled=0
gpgcheck=1
repo_gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi.el8

保存退出

vi remi-safe.repo
写入下面内容
# This repository is safe to use with RHEL/CentOS base repository
# it only provides additional packages for the PHP stack
# all dependencies are in base repository or in EPEL
[remi-safe]
name=Safe Remi's RPM repository for Enterprise Linux 8 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/8/safe/$basearch/
#mirrorlist=https://rpms.remirepo.net/enterprise/8/safe/$basearch/httpsmirror
baseurl=https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/8/safe/$basearch/
enabled=1
gpgcheck=1
# can be enabled if not being a proxy because of possible cache issue
repo_gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi.el8
[remi-safe-debuginfo]
name=Remi's RPM repository for Enterprise Linux 8 - $basearch - debuginfo
baseurl=https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/8/debug-remi/$basearch/
enabled=0
gpgcheck=1
repo_gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi.el8

保存退出

vi mysql-communtiy.repo
写入下面内容
[mysql-connectors-community]
name=MySQL Connectors Community
baseurl=https://mirror.nju.edu.cn/mysql/yum/mysql-connectors-community-el8-$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
       file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
[mysql-tools-community]
name=MySQL Tools Community
baseurl=https://mirror.nju.edu.cn/mysql/yum/mysql-tools-community-el8-$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
       file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
[mysql-8.0-community]
name=MySQL 8.0 Community Server
baseurl=https://mirror.nju.edu.cn/mysql/yum/mysql-8.0-community-el8-$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
       file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022

保存退出


然后在浏览器打开链接:https://mirrors.tuna.tsinghua.edu.cn/remi/
在最下面找到RPM-GPG-KEY-remi2018: the GnuPG public key of the key pair used to sign my packages (Fedora 28-29 and EL-8)
点进去,复制内容
vi /etc/pki/rpm-gpg/RPM-GPG-KEY-remi.el8
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBFpYvNcBEAC2zo9//ebrNepP/TKSCSwRb2V1VGRLL8SS1RrthG26xr/VTxDC
p7ZSxYdEcFl/f0ppjrjTp9LPrPqKL+Hjjw1eDJjRWNOXgSNW/uD5TO5vrbTiIzmb
QIWdMoZ7RUc1pJNHn5DtCjp/6Cm7ntijqxcNYOYd4TEAvv9DPHrj5mYCgLQJ++BT
oONap0cLCRTcEH8q+GqLfwgnLEJ2g7HJYtmlte6YsuKK23GjpvQaNoAzA72aCr47
JKVhH1k1Fzaw1M8tTURe5WWZvxGT/lD+pl0Cf39X7bbatR1r9RiijGROhMfndyO/
wqTKLk6gY6Lm5pj6RTKFg+6AUixcUOn0t2zWY7V4VFNnsxACLcQx04zp9T0lRofc
FCN0HQAMBzo52stezMvLJlncuMYgHuzbkCf7Avan15MwzOO8rrq5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qW4jm1b41vNA17b6CVH6
sVgtU3eN+5Y9an1e5jLD6kFYx+OIeqIIId/TEqwS61csY9aav4j4KLOZFCGNU0FV
ji7NQewSpepTcJwfJDOzmtiDP4vol1ApJGLRwZZZ9PB6wsOgDOoP6sr0YrDI/NNX
2RyXXbglnQ1yJZVSH3/3eo6knG2qTthUKHCRDNKdy9Qqc1x4WWWtSRjh+zX8AvJK
2q1rVLH2/3ilxe9wcAZUlaj3id3TxquAlud4lWDz
=h5nH
-----END PGP PUBLIC KEY BLOCK-----

保存退出

添加remi-key.png


清理yum缓存
yum clean all
重新生成yum源
yum makecache

到此为止前置的所有工作都完整了,接下来我们开始安装

三、安装nginx

yum list | grep nginx
找到nginx.x86_64

image.png


把系统自带的nginx禁用

yum module disable nginx

image.png

安装nginx

yum install nginx.x86_64 -y
设置开机启动
systemctl enable nginx.service
启动nginx
systemctl start nginx.service

image.png


四、安装php

image.png

查看php可以安装的版本
yum module list php
重置已安装的php
yum module reset php
选择需要安装的版本
yum module enable php:remi-8.2/common
进行安装
yum install php php-fpm php-mbstring php-cli php-json php-opcache php-zip php-xml php-gd php-ldap php-mysqli php-sqlite3 php-json php-dom php-bcmath php-intl php-mysqlnd php-pdo php-pecl-imagick -y
设置开机自启
systemctl enable php-fpm.service
启动php
systemctl start php-fpm.service


五、安装composer

下载
wget https://mirrors.tencent.com/composer/composer.phar
安装
mv composer.phar  /usr/local/bin/composer
给加权限
chmod -R 777 /usr/local/bin/composer


六、安装redis

安装
yum install redis -y
设置开机自启
systemctl enable redis.service
启动redis
systemctl start redis.service


七、安装Mysql

查看MySQL列表
yum list | grep mysql
安装
yum install mysql-server -y
设置开机自启
systemctl enable mysqld.service
启动mysql
systemctl start mysqld.service
MySQL服务器初始化
自MySQL 5.7起:在服务器初次启动时,假定服务器的数据目录为空,则会发生以下情况:
服务器已初始化。
SSL证书和密钥文件在数据目录中生成。
该validate_password插件安装并启用。
root'@'localhost' 创建 一个超级用户帐户。设置超级用户的密码并将其存储在错误日志文件中。要显示它,请使用以下命令:
shell> sudo grep 'temporary password' /var/log/mysql/mysqld.log
通过使用生成的临时密码登录并尽快更改超级用户帐户的root密码,以更改root密码:
shell> mysql -uroot -p
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'MyNewPass4!';


八、安装supervisor

打开网站: https://mirrors.tuna.tsinghua.edu.cn/epel/

找到对应版本的key,下载,vi /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8,写入key

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBFz3zvsBEADJOIIWllGudxnpvJnkxQz2CtoWI7godVnoclrdl83kVjqSQp+2

dgxuG5mUiADUfYHaRQzxKw8efuQnwxzU9kZ70ngCxtmbQWGmUmfSThiapOz00018

+eo5MFabd2vdiGo1y+51m2sRDpN8qdCaqXko65cyMuLXrojJHIuvRA/x7iqOrRfy

a8x3OxC4PEgl5pgDnP8pVK0lLYncDEQCN76D9ubhZQWhISF/zJI+e806V71hzfyL

/Mt3mQm/li+lRKU25Usk9dWaf4NH/wZHMIPAkVJ4uD4H/uS49wqWnyiTYGT7hUbi

ecF7crhLCmlRzvJR8mkRP6/4T/F3tNDPWZeDNEDVFUkTFHNU6/h2+O398MNY/fOh

yKaNK3nnE0g6QJ1dOH31lXHARlpFOtWt3VmZU0JnWLeYdvap4Eff9qTWZJhI7Cq0

Wm8DgLUpXgNlkmquvE7P2W5EAr2E5AqKQoDbfw/GiWdRvHWKeNGMRLnGI3QuoX3U

pAlXD7v13VdZxNydvpeypbf/AfRyrHRKhkUj3cU1pYkM3DNZE77C5JUe6/0nxbt4

ETUZBTgLgYJGP8c7PbkVnO6I/KgL1jw+7MW6Az8Ox+RXZLyGMVmbW/TMc8haJfKL

MoUo3TVk8nPiUhoOC0/kI7j9ilFrBxBU5dUtF4ITAWc8xnG6jJs/IsvRpQARAQAB

tChGZWRvcmEgRVBFTCAoOCkgPGVwZWxAZmVkb3JhcHJvamVjdC5vcmc+iQI4BBMB

AgAiBQJc9877AhsPBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRAh6kWrL4bW

oWagD/4xnLWws34GByVDQkjprk0fX7Iyhpm/U7BsIHKspHLL+Y46vAAGY/9vMvdE

0fcr9Ek2Zp7zE1RWmSCzzzUgTG6BFoTG1H4Fho/7Z8BXK/jybowXSZfqXnTOfhSF

alwDdwlSJvfYNV9MbyvbxN8qZRU1z7PEWZrIzFDDToFRk0R71zHpnPTNIJ5/YXTw

NqU9OxII8hMQj4ufF11040AJQZ7br3rzerlyBOB+Jd1zSPVrAPpeMyJppWFHSDAI

WK6x+am13VIInXtqB/Cz4GBHLFK5d2/IYspVw47Solj8jiFEtnAq6+1Aq5WH3iB4

bE2e6z00DSF93frwOyWN7WmPIoc2QsNRJhgfJC+isGQAwwq8xAbHEBeuyMG8GZjz

xohg0H4bOSEujVLTjH1xbAG4DnhWO/1VXLX+LXELycO8ZQTcjj/4AQKuo4wvMPrv

9A169oETG+VwQlNd74VBPGCvhnzwGXNbTK/KH1+WRH0YSb+41flB3NKhMSU6dGI0

SGtIxDSHhVVNmx2/6XiT9U/znrZsG5Kw8nIbbFz+9MGUUWgJMsd1Zl9R8gz7V9fp

n7L7y5LhJ8HOCMsY/Z7/7HUs+t/A1MI4g7Q5g5UuSZdgi0zxukiWuCkLeAiAP4y7

zKK4OjJ644NDcWCHa36znwVmkz3ixL8Q0auR15Oqq2BjR/fyog==

=84m8

-----END PGP PUBLIC KEY BLOCK-----

安装

yum install -y supervisor

设置开机自启

systemctl enable supervisord

启动supervisor

systemctl start supervisord


    扫描二维码使用手机访问。

    版权声明:本文由爱与心(www.91phper.cn)发布,如需转载请注明出处。

    本文链接:https://www.91phper.cn/post/47.html

    分享给朋友:

    “UOS Server 20 1060a 安装Nginx1.24.0、php8.2.17、composer2.7.2、redis5.0.3” 的相关文章

    CentOS 7 迁移至 Rocky Linux 8.7

    前言CentOS 8已经在2021年12月31日结束支持,CentOS 7由于用户基数与用户贡献较多,因此会按照计划维护至生命周期结束即 2024 年 6 月 30 日,接下来一年会把重心放到CentOS Stream上。由于CentOS Stream相对不稳定,因此很多朋友会有从CentOS 7迁...

    nginx扫描漏洞响应头缺失解决方法

    一、漏扫出现问题检测到目标X-Content-Type-Options响应头缺失add_header X-Content-Type-Options nosniff;检测到错误页面web应用服务器版本信息泄露 修改404页面及500页面,不要出现apache、nginx等字样检测到...

    Linux免密登录,专业配置教程来了!

    在Linux系统管理的日常工作中,我们经常需要在多台服务器之间进行切换操作。频繁地输入密码不仅繁琐,而且降低了工作效率。为了解决这个问题,我们可以配置Linux实现免密登录。本文将为您详细介绍如何配置Linux实现免密登录。我们需要了解SSH(SecureShell)协议。SSH是一种网络协议,用于...

    centos7 同步时间

    在 CentOS 7 中,你可以使用 chrony 作为时间同步服务。chrony 是一个开源的 NTP(Network Time Protocol)客户端和服务器,用于同步计算机的系统时钟到某个 NTP 服务器。以下是如何在 CentOS 7 中安装和配置 ...

    Yii2 负载均衡找不到JS、CSS

    在部署项目的时候,用了2台服务器.请求的时候用了负载均衡,导致 YII2 的静态文件(js,css...)报 404 ,原因是: 请求一个页面时 A服务器 去处理,但是静态资源缺请求到了 B服务器 ,B服务器的 YII2资源管理器 还没有在 web\assets 生成目录和静态文件.仔细看了下 YI...

    发表评论

    访客

    看不清,换一张

    ◎欢迎参与讨论,请在这里发表您的看法和观点。