服务器之家:专注于服务器技术及软件下载分享
分类导航

Linux|Centos|Ubuntu|系统进程|Fedora|注册表|Bios|Solaris|Windows7|Windows10|Windows11|windows server|

服务器之家 - 服务器系统 - Centos - Centos5.2配置LAMP与Centos5.3配置LAMP(4)

Centos5.2配置LAMP与Centos5.3配置LAMP(4)

2019-10-11 14:12Centos教程网 Centos

echo [DVDISO] /etc/yum.repos.d/dvdiso.repo echo name=DVD ISO /etc/yum.repos.d/dvdiso.repo echo baseurl=file:///mnt/cdrom/ /etc/yum.repos.d/dvdiso.repo echo enabled=1 /etc/yum.repos.d/dvdiso.repo echo

echo “[DVDISO]” >> /etc/yum.repos.d/dvdiso.repo 
echo “name=DVD ISO” >> /etc/yum.repos.d/dvdiso.repo 
echo “baseurl=file:///mnt/cdrom/” >> /etc/yum.repos.d/dvdiso.repo 
echo “enabled=1″ >> /etc/yum.repos.d/dvdiso.repo 
echo “gpgcheck=0″ >> /etc/yum.repos.d/dvdiso.repo 


#vim设置 

yum -y install vim-enhanced 
mv /bin/vi /bin/vi.save 
ln -s /usr/bin/vim /bin/vi 
cp /etc/vimrc /etc/vimrc.save 
sed -i “39 s/^/ set number \n filetype on\n set history=1000\n syntax on\n set tabstop=4\n set showmatch\n set vb t_vb=\n set mouse=a\n set ignorecase\n set autowrite\n /” /etc/vimrc 

#时间的设置 
yum -y install ntp 
ntpdate 210.72.145.44 && clock -w 

#安装常用软件 

yum -y install wget unzip 

#停止没有必要的服务 
chkconfig –list |grep 3:on |awk ‘{print $1}’ |egrep -v ’sshd|network|syslog’ |xargs -i{} chkconfig –level 3 {} off 
chkconfig –list | grep 3:on | cut -f1 

延伸 · 阅读

精彩推荐