root2周前9
#防火墙关闭systemctl stop firewalld.service#永久关闭防火墙systemctl disable firewalld.service#临时关闭selinuxsetenfo...
root2周前9
test.ini 配置文件中有mysql的密码,且密码含有“%”这个特殊符号因为%在py是转义符的含义需要对该字符转义即修改 % 为 %%用%对%进行转义...
root2周前8
添加用户和组groupadd testuseradd -r -g test test删除用户和组userdel testgroupdel test给文件添加用户组和用户归属chown -R test:...
root2周前7
sed -i "s/enforcing/disabled/g" /etc/selinux/config...
root2周前7
yum update 跟apt-get update 不一样centos的yum update相当于ubuntu的apt upgrade如果想用ubuntu的apt update,centos是yum...
root1个月前24
git rm -r --cached . git add . git commit -m "update .gitignore" git status查...
root1个月前17
原文链接 背景 最近参与的项目是基于 OpenStack 提供容器管理能力,丰富公司 IaaS 平台的能力。日常主要工作就是在开源的 novadocker 项目(开源...
root1个月前18
123456import os #回去当前文件路径os.path.realpath(__file__)#获取文件是否存在os.path.exists(filepath)#获取文件大...
root1个月前15
rsa 是非对称加密公钥加密,私钥解密pip install rsaimport rsa from binascii import b2a_hex, ...
root1个月前17
部署zabbix突然出现no data 的情况通过查看日志发现zabbix_server 无法访问数据库。导致数据无法获取到。进入zabbix的安装界面(/setup)重新配置数据库仍然发现没有办法连...