总结我的装机设置

yum源配置

=========

 

系统配置

===========

DNS解析配置
> vi /etc/resolv.conf
nameserver 127.0.0.1
nameserver 8.8.8.8
nameserver 202.106.0.20
nameserver 202.96.128.86
nameserver 202.96.128.143
打开文件数限制
> vi /etc/security/limits.conf
<user_name> - nofile 20000
系统最大线程数限制(CentOS 6要特别注意,它的默认值很小,为1024)
> vi /etc/security/limits.d/90-nproc.conf
* soft nproc 65535

> ulimit -u #查看
host配置
vi /etc/hosts
创建用户
groupadd xxxxx-group
useradd -p `openssl passwd xxxxx` -g xxx-grop xxx-user

 

禁用某些用户SSH登录
vi /etc/ssh/sshd_config
DenyUsers <user_name>

 

crontab配置
0 1 * * * /usr/sbin/ntpdate cn.pool.ntp.org 

 

关闭SELinux
setenforce 0

vi /etc/selinux/config

....
SELINUX=disabled
....

 

必备软件安装

================

Java

安装JDK
rpm -ivh jdk-6u45-linux-amd64.rpm

# 替换open-jdk软链
rm /usr/bin/java -f
ln -s /usr/java/latest/bin/java /usr/bin/java
rm /usr/bin/javac -f
ln -s /usr/java/latest/bin/javac /usr/bin/javac

 

配置环境变量
>> vi /etc/profile
export JAVA_HOME=/usr/java/latest
export PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=.:$CLASSPATH

 

python

安装python2.7.x
./configure --enable-shared --prefix=xxx && make && make install
安装easy_install
wget http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py

 

 

-to be continue

你可能感兴趣的:(总结)