分类:linux

9 篇文章

Linux命令

查看内存信息free -h查看目录大小du -sh * (*代表当前目录下所有文件及其文件夹大小)重新载入服务systemctl daemon-reload将nginx服务设置为开机启动systemctl enable nginx.service将nginx服务关闭开机启动systemctl di...

acme发布域名

1、下载acme git clone https://gitee.com/neilpang/acme.sh.git cd acme.sh ./acme.sh --install -m 你的邮箱 2、腾讯云dnp中心创建一个tokenhttps://console.dnspod.cn/account/...

mysql数据库定时备份

#!/bin/bash # 设定日期变量,以在备份文件名中使用 DATE=$(date +%Y%m%d%H%M) # MySQL 容器的 ID 或者名称 CONTAINER="" # MySQL 用户名和密码 USER="root" PASSWORD="123456" DATABAS...

docker容器内应用无法访问外网

1、开启ip转发 echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf 2、重启应用 systemctl restart network sysctl net.ipv4.ip_forward systemctl restart docker...

jenkins通过跳板机上传文件

pipeline { agent any stages { stage('Build') { steps { // Get some code from a GitHub repository ...

github cicd

...

nfs安装

1、yum安装nfs(服务端)yum -y install nfs-utils#启动rpcbind服务systemctl start rpcbind #将rpcbind设置为开机启动systemctl enable rpcbin#启动nfssystemctl start nfs# 将nfs设置为开...

linux部署jar包的问题

1、可能存在无法读取resource文件夹下的文件2、可能存在file:/在windows下能使用,linux下必须使用file:///的问题...