1,设置主机名称
hostnamectl set-hostname 设置主机名字
cd /etc/sysconfig/network-scripts/
2,装文本编辑器
yum install -y vim
3,网卡
vim ifcfg-ens33
双击dd删除 uuid
重启网卡 systemctl restart network,
4,安装gcc相关
yum install -y gcc*
make && make install 编译源码
yum install -y wget
5,关闭防火墙
systemctl start firewalld # 启动,
systemctl enable firewalld # 开机启动
systemctl stop firewalld # 关闭
systemctl disable firewalld # 取消开机启动
6,查询某文件
find . -name redis-server
7,修改selinux
SELinux 是部署在 Linux 系统中的安全增强功能模块 linux安全机制
sestatus
vim etc/selinux/config
改成disabled
最后reboot
8,开机启动
systemctl enable reids-servie