###各种电源方案设置,比如盒盖不休眠 /etc/systemd/logind.conf systemctl restart systemd-logind
###静态路由设置 vi /etc/sysconfig/network-scripts/ifcfg-enp7s0 BOOTPROTO=static IPADDR=192.168.88.99 NETMASK=255.255.255.0 ONBOOT=yes
vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=mohome GATEWAY=192.168.88.254
###dns 解析 vi /etc/resolv.conf
###更新阿里云镜像,升级系统 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo yum clean all yum makecache yum -y update
#安装nginx
-
新建/etc/yum.repos.d/nginx.repo 并添加以下内容, 参考http://nginx.org/en/linux_packages.html#stable [nginx] name=nginx repo baseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/ gpgcheck=0 enabled=1
-
yum install nginx bai
###安装 git yum install -y git
###安装oh-my-zsh yum install -y zsh curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
###安装vim和bundle插件管理器 yum -y install vim-enhanced https://github.com/VundleVim/Vundle.Vim