96.简单的备份脚本
发表于
linux
分类,标签:
02
11月
2023
0
#!/bin/bashcd /data/wwwroot/www_backtar -zcvf leiuk.com_`date +%Y%m%d%H%M`.tar.gz /data/wwwroot/leiuk.comfind /data/wwwroot/www_back -type f -mtime +30 -name "*.tar.gz" -exec rm -f {} \;scp -P 10260 ./leiuk.com_`date +%Y%m%d%H%M`.tar.gz root@hostname:/home/lei/www_back...
95.mysql8.0.22安装
发表于
mysql
分类,标签:
02
11月
2023
网址:https://dev.mysql.com/downloads/MySQL Community ServerLinux - Generic1)切换到/data目录下2)创建mysql文件夹mkdir mysql83)切换到mysql文件夹下4)解压下载好的mysql8安装包5)重命名解压出来的文件夹,这里改成mysqlmv mysql-8.0.22 mysql86)/data文件夹下创建data文件夹存储文件mkdir /data/mysql8/mysql_data7)分别创建用户组以及用户和密码groupadd mysqluseradd -g mysql mysql8)授权...
94.k8s常用命令
发表于
linux
分类,标签:
02
11月
2023
常用查询命令:kubecctl get hpa #查询容器弹性使用情况kubectl get pod | grep top #获取top的pod信息kubectl get nodes #获取节点信息kubectl top pod | grep top #查询top的pod资源情况kubectl top nodes #查询节点资源使用率kubectl describe nodes | grep top #查询top占用节点资源情况...