给当前文件夹下所有文件添加.bak后缀 ll | awk '{print $9}' | grep -v '^[ ]*$' |sed -r 's#(.*)#mv \1 \1.bak#g'|bash 把当前文件夹下所有.bak后缀的文件,将.bak后缀删掉,并替换 ll | awk '{print
即可撤销 git stash pop 操作,将当前分支状态恢复。 git stash 暂存区的记录也不会被删除,可通过 git stash show 查看。 git reset --hard
如何依赖下载rpm包,已VIM 为例。 安装yumdownloader yum install yum-utils 下载vim的rpm依赖包 yumdownloader --resolve --destdir=./ packageName 将rpm传到其他机器上,依赖安装rp
编辑文件 vim /etc/apt/sources.list 添加镜像源 deb http://mirrors.ustc.edu.cn/debian stretch main contrib non-free deb http://mirrors.ustc.edu.cn/debian stretch-updates main contrib non-free deb http://mirrors.ustc.edu.cn/debian stretch-backports main contrib non-free deb http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free 更新apt apt-get update
查看已启动的服务列表: systemctl list-unit-files | grep enabled 查看启动失败的服务列表: systemctl --failed 配置 firewalld-cmd 查看firewalld-cmd 查看所有打开的端口: firewall-cmd --zone=public --list-ports 更新防火墙规则: firewall-cmd
HTTP ports supported by Cloudflare: 80 8080 8880 2052 2082 2086 2095 HTTPS ports supported by Cloudflare: 443 2053 2083 2087 2096 8443
尝试再防火墙加入此配置 首先在 /etc/config/firewall 文件最后添加如下规则: config rule option target 'ACCEPT' option name 'Allow-OpenVPN-Wan-Inbound' option src 'wan' option proto 'udp' option dest_port '1194' 然后在 /etc/firewall.user 文件最后添加如下规则: iptables -t nat -A prerouting_wan_rule -p udp --dport 1194 -j ACCEPT iptables
问题描述 今天改公司模块功能的时候,给一个服务增加入库操作;新建一个表,将账户登录状态写入 MySQL,使用 SpringBoot+Mybatis