“你会在一间炉火昏黄的房子里死去,而你父亲的魔法全然失效。那张天鹅绒床是如此温热,你的死亡尚有余温之时,我将从风雪中归来……”
主要使用到 nginx 服务器制作 与 vsftpd 服务器不一样的是 nginx 使用到的是 http 协议 xsftpd 使用到的是 ftp 协议 其他的方面我感觉都差不多
yum install -y nginx
yum install -y createrepo
yum install -y yum-utils
systemctl stop firewalld
setenkforce 0
# SELinux安全机制 主要的限制一些软件的权限使用
cd /urs/share/nginx/html
# 在这个目录下面下载阿里巴巴镜像网站对应仓库的rpm包
rm -rf *
# 删除里面的文件,里面有nginx默认访问的页面,得删除了
现在将阿里巴巴镜像网站的仓库
# centos7
# 首先使用下面这条命令
yum repolist
仓库 id 仓库名称
AppStream CentOS-8.5.2111 - AppStream - mirrors.aliyun.com
base CentOS-8.5.2111 - Base - mirrors.aliyun.com
epel Extra Packages for Enterprise Linux 8 - aarch64
extras CentOS-8.5.2111 - Extras - mirrors.aliyun.com
# 你可以看有一列仓库id 这个仓库id 就是下面 -r 后面跟的东西
reposync -r base -r epel
# 这样子就开始下载了 但是如果你只是学习怎么配的话,我建议 运行上 1 分钟直接就停了
# centos8
# centos7 和 centos 8 在使用 reposync 的使用上还是有点儿差别的
reposync --repoid=base --repoid=epel
# 上面这个配置完了之后使用 ls 命令可以查看到有两个文件夹 一个是 base 一个是eple
vim /etc/nginx/nginx.conf
# 在将这个配置项
location / {
# 主要修改为下面的三行 如果没有的话,就添加
root /usr/share/nginx/html;
index index.html index.htm index.php;
autoindex on;
}
下面是对应的图片,可以对照的看看

systemctl start nginx

cd /etc/yum.repos.d
vim nginx.repo
[nginx-base]
name=nginx-base
baseurl=http://服务端的ip地址/base
gpgcheck=0 # 是否打开校验
enabled=1 # 是否开始此源
[nginx-epel]
name=nginx-epel
baseurl=http://服务端的ip地址/epel
gpgcheck=0
enabled=1
yum clean all
yum makecache
yum repolist
# 可以看到下面有 nginx-base 等一些刚配置的yum源