2024-5-31 myluzh
Linux
0x01 概述
环境准备:
CentOS7_A:YUM-SERVER,用来部署本地yum仓库。
ip:172.16.10.78
CentOS7_A:用来测试搭建YUM仓库是否生效。
ip:172.16.10.79
0x02 YUM-SERVER部署web服务
在yum-server机子上搭建一个web服务,开启目录索引
# 写入nginx repo
cat <<EOF > nginx.repo
[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/centos/\$releasever/\$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
[nginx-mainline]
name=nginx mainline repo
baseurl=http://nginx.org/packages/mainline/centos/\$r...
阅读全文>>
标签: centos yum rpm repo centos7 reposync createrepo
评论(0)
(298)
2023-3-8 myluzh
Linux
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-6.10.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-6.10.repo
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
CentOS 8
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
或者...
阅读全文>>
标签: yum epel repo
评论(0)
(553)
2022-9-6 myluzh
MySQL
官网地址:https://dev.mysql.com/downloads/repo/yum/
可以在以上地址选择想要的版本将下面的链接后面部分替换
替换地址
wget http://repo.mysql.com/mysql80-community-release-el7-3.noarch.rpm
rpm -ivh mysql80-community-release-el7-3.noarch.rpm
yum update
安装:
yum install mysql-server
初始化:
mysqld --initialize
权限设置:
chown mysql:mysql -R /var/lib/mysql
启动mysql:
systemctl start mysqld
systemctl enable mysqld
systemctl status mysqld
查看mysql8安装后的初始密码
grep "A temporary password" /var/log/mysql/mysqld.log
登录mysql
mysql -u root
刷新权限
flush p...
阅读全文>>
标签: centos mysql8 yum
评论(0)
(459)