我所有的服务器基本都是最小化安装,版本为centos 6.x 64位系列。

1、配置内网IP (如果是外网IP,linux要修改远程端口)
2、配置自己的yum源
| 1 2 3 4 |    yum  install  wget    rm  -f  /etc/yum .repos.d /CentOS-Base .repo    wget http: //mirrors .163.com/.help /CentOS6-Base-163 .repo -O  /etc/yum .repo.d/    wget -P  /etc/yum .repos.d/ http: //mirrors .aliyun.com /repo/epel-6 .repo    | 
或者
| 1 2 |    curl http: //mirrors .163.com/.help /CentOS6-Base-163 .repo > /etc/yum .repos.d /comratings .repo    curl http: //mirrors .aliyun.com /repo/epel-6 .repo >  /etc/yum .repos.d /epel-6 .repo    | 
3、关闭SELinux
| 1 2 |    sed  -i  's#SELINUX=enforcing#SELINUX=disabled#g'  /etc/selinux/config   setenforce 0    | 
 4、添加zabbix监控
5、配置防火墙
| 1 2 3 |    service iptables stop    iptables -L    service iptables save    | 
6、安装软件包
| 1 |    yum  install  -y vim openssh-clients ntpdate  man  lrzsz    | 
7、配置定时任务
| 1 |    echo  "10 6 * * * root (/usr/sbin/ntpdate time.nist.gov && /sbin/hwclock -w) &> /dev/null"  >>  /etc/crontab    | 
8、配置主机名
9、修改文件句柄数
| 1 2 3 4 5 6 |    #临时修改,立刻生效    ulimit  -n 65535                  #永久修改    echo  "* soft nofile 65536"  >>  /etc/security/limits .conf    echo  "* hard nofile 65536"  >>  /etc/security/limits .conf    | 
10、可以禁用ipv6
| 1 2 3 4 |    cat  >>  /etc/modprobe .d /ipv6 .conf < | 
                网页标题:CentOS服务器部署流程
                
                本文网址:http://www.csdahua.cn/qtweb/news19/438069.html
            
网站建设、网络推广公司-快上网,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 快上网