openstack
<p>touch 文件
mkdir 目录
rm 删除
cp 复制
mv 移动
cat 查看
挂载 mkfs.ext4 /dev/sdb1
划分 fdisk /dev/sdb
杀死进程 kill -9 pid
关闭防火墙 systemctl stop firewalld</p>
<p>SELinux配置和策略文件位于/etc/selinux目录中,主配置文件/etc/selinux/config
指定SELinux的运行模式。有enforcing(强制模式)、 permissive(宽容模式)、disabled(不生效)三种模式</p>
<p>curl -o /etc/yum.repos.d/CentOS-Base.repo <a href="http://mirrors.aliyun.com/repo/Centos-7.repo">http://mirrors.aliyun.com/repo/Centos-7.repo</a></p>
<p>yum clean all 清除缓存
yum makecache 生成新的缓存</p>
<p>nmcli con delete ens33 删除 ‘ens33’
添加ens33网络适配器
nmcli con add con-name ens33 type ethernet ifname ens33</p>