赞
踩
思路:mariadb
未使用,直接停止或者删除mariadb
即可
#查询mysql 并杀掉mysql进程
docker ps|grep mysql
docker kill $mysqlid
docker kill $mysqlid
#再次查询,杀进程失败
docker ps|grep mysql
#查询mysql镜像
docker images |grep mysql
kubectl get pod --all-namespaces|grep mysql
打开operator-hub的daas-registry-mysql-xr6m2,修改其中mysql的镜像
kubectl edit pod daas-registry-mysql-xr6m2 -n operator-hub
#查看是否修改成功运行,失败
kubectl get pod -n operator-hub
#查看详情
kubectl describe pod daas-registry-mysql-xr6m2 -n operator-hub
kubectl logs daas-registry-mysql-xr6m2 -n operator-hub
#将daas-registry-mysql-xr6m2的mysql镜像重新修改回原来的版本
kubectl edit pod daas-registry-mysql-xr6m2 -n operator-hub
#查看deployment发现没有部署,只部署了一个pod
kubectl get deployment -n operator-hub
#导入daas-registry-mysql-xr6m2的配置
get pod daas-registry-mysql-xr6m2 -n operator-hub -o yaml>a.yaml
#删除配置文件,即删除该pod
kubectl delete -f a.yaml
kubectl create -f a.yaml
openssl version
mkdir openssl
wget https://www.openssl.org/source/openssl-1.1.1q.tar.gz
tar -zxvf openssl-1.1.1q.tar.gz
cd openssl-1.1.1q
./config shared zlib
yum -y install gcc
yum -y install gcc-c++
yum -y install make
yum -y install zlib-devel
make && make install
mv /usr/bin/openssl /usr/bin/openssl.bak
mv /usr/include/openssl /usr/include/openssl.bak
ln -s /usr/local/bin/openssl /usr/bin/openssl
ln -s /usr/local/include/openssl /usr/include/openssl
echo "/usr/local/lib64/" >> /etc/ld.so.conf
ldconfig
openssl version -a
未实操
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。