1、mysql:
yum -y install https://dev.mysql.com/get/mysql80-community-release-el7-7.noarch.rpm
yum install -y install mysql-community-server
systemctl start mysqld.service
systemctl enable mysqld.service
grep "password" /var/log/mysqld.log
mysql -uroot -p ALTER USER 'root'@'localhost' IDENTIFIED BY 'P@ssw0rd';
use mysql;
update user set host = '%' where user ='root';
flush privileges;
exit;
systemctl restart mysqld
mysql -u root -p 密码 < XX.sql 导入mysql文件
修改配置文件:
vim /etc/my.cnf
server-id = 1
log-bin = binlog
log-bin-index = binlog.index
查看结果是否为on(然后再重新进行预检查)
show global variables like "log_bin";
2、docker:
yum -y install docker
systemctl start docker
systemctl enable docker
docker images docker ps
docker stop 53bed4cc2b2b
docker ps -a docker exec -it 容器ID /bin/bash
docker build -t r_arm64v8/centos_redis:4.0.3 .
vim /etc/docker/daemon.json
{ "registry-mirrors": ["https://mirrors.tuna.tsinghua.edu.cn"] }
systemctl restart docker
docker pull portainer/portainer
docker run -d -p 9000:9000 portainer/portainer
docker rmi 镜像ID
docker rm 容器ID
docker run -d -p 9000:9000 --name prtainer-test --restart=always -v /opt/portainer:/data -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer
docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer
docker pull centos
docker run -it centos /bin/bash
docker build -t httpd2:v1 .