系统优化脚本

sed -i 's/SELINUX=enforcing/SELINUX=disabled/g'  /etc/selinux/config             
yum -y install wget ntp unzip zip bzip2 bzip2-devel gcc gcc-c++ cmake make  gd libjpeg libjpeg-devel libpng libpng-devel freetype-devel autoconf bison automake zlib* fiex* libxml* ncurses-devel libmcrypt* libtool-ltdl-devel* net-tools vim lrzsz tree screen lsof tcpdump wget firewalld 
echo "alias grep='grep --color'" >> /root/.bashrc
systemctl stop firewalld.service 
systemctl disable NetworkManager
systemctl disable firewalld.service 
rm -rf /etc/localtime 
ln -sv /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
yum install ntpdate -y
ntpdate time1.aliyun.com

 

你可能感兴趣的:(系统,优化,安装服务)