JUnit测试提示Java.lang.Exception: No runnable methods
标题创建mysql
1、拉取mysql容器
docker pull mysql:5.7
2、创建用于挂载的目录(日志目录、数据目录、配置目录)
is not in the sudoers file. This incident will be reported(linux 用户没有sudo权限)
X Exiting due to DRV_AS_ROOT: The “docker“ driver should not be used with root privileges
Kubernetes-kubectl命令出现错误The connection to the server localhost:8080 was refused - did you specif…
X Exiting due to DRV_AS_ROOT: The “docker“ driver should not be used with root privileges
k8s 创建集群时出错"[kubelet-check] Initial timeout of 40s passed"
centos 7 ssr
k8s代理
#Linux
docker run --name mysql5.7 --privileged=true \
-p 3306:3306 \
-v /home/mysql/conf/my.cnf:/etc/mysql/mysql.conf.d/mysqld.cnf \
-v /home/mysql/data:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD="123" -d mysql:5.7
#Linux
docker run --name mysql5.7 --privileged=true \
-p 3306:3306 \
-v /C/Docker/mysql/conf/my.cnf:/etc/mysql/mysql.conf.d/mysqld.cnf \
-v /C/Docker/mysql/data:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD="123" -d mysql:5.7
my.cnf
[mysqld]
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
datadir = /var/lib/mysql
lower_case_table_names=1
#log-error = /var/log/mysql/error.log
# By default we only accept connections from localhost
#bind-address = 127.0.0.1
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
同一ip地址不同的主机会有冲突的情况,需要通过命令清除缓存文件。
ssh-keygen -R 192.168.1.112
linux批量删除文件 【https://blog.csdn.net/qq_25905159/article/details/111468293】