当前位置:首页
> 2021年2月23日
linux 安全策略关闭
#防火墙关闭systemctl stop firewalld.service#永久关闭防火墙systemctl disable firewalld.service#临时关闭selinuxsetenforce 0#永久关闭sed -i &qu...
python 的configparser 读取配置文件遇到%特殊符号
test.ini 配置文件中有mysql的密码,且密码含有“%”这个特殊符号因为%在py是转义符的含义需要对该字符转义即修改 % 为 %%用%对%进行转义...
linux创建用户和用户组
添加用户和组groupadd testuseradd -r -g test test删除用户和组userdel testgroupdel test给文件添加用户组和用户归属chown -R test:test test_file...
centos切勿执行yum -y update
yum update 跟apt-get update 不一样centos的yum update相当于ubuntu的apt upgrade如果想用ubuntu的apt update,centos是yum makecache因为执行yum -y...