CentOS7.5安装配置Harbor1.7的全过程
Harbor是一个企业级的Docker Registry服务器,它提供了安全、可信赖的镜像存储和分发功能,本文将详细介绍如何在CentOS7.5上安装配置Harbor1.7的全过程。
环境准备
1、操作系统:CentOS 7.5
2、数据库:MySQL 5.7
3、Docker:17.09或更高版本
4、其他依赖:OpenSSL-1.0.2k、Nginx-1.12.2、golang-1.9.2
安装Docker
1、更新系统软件包:
sudo yum update -y
2、安装依赖:
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
3、添加Docker仓库:
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
4、安装Docker:
sudo yum install -y docker-ce
5、启动Docker并设置开机自启:
sudo systemctl start docker sudo systemctl enable docker
6、验证Docker是否安装成功:
sudo docker version
安装MySQL
1、下载MySQL安装包:
wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.35-1.el7.x86_64.rpm-bundle.tar
2、解压安装包:
tar xvf mysql-5.7.35-1.el7.x86_64.rpm-bundle.tar
3、安装MySQL:
sudo yum localinstall *.rpm -y
4、启动MySQL并设置开机自启:
sudo systemctl start mysqld sudo systemctl enable mysqld
5、获取临时密码:
sudo grep 'temporary password' /var/log/mysqld.log | awk '{print $NF}'
6、修改MySQL密码:
mysql -u root -p --skip-password < /usr/bin/mysql_secure_installation <<EOFYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDAYSQLROOTPASSWORDyour_new_passwordEOFYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDYSQLPWDAYSQLROOTPASSWORDyour_new_passwordEOF)
))
))
))
))
))
))
))
))
))
))
))
))
))
))
))
))
))
))
))
))
))
))
))
))
))
))
))
))
))
))
))
))
)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))EOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour_new_passwordEOFMYSQLPASSWORDyour
原创文章,作者:K-seo,如若转载,请注明出处:https://www.kdun.cn/ask/329308.html