更新(随便更新喽,可能用到的东西都更新下)
yum -y install bzip2-devel curl-devel db4-devel libjpeg-devel libpng-devel freetype-devel
yum -y install libXpm-devel gmp-devel libc-client-devel openldap-devel unixODBC-devel
yum -y install postgresql-devel sqlite-devel aspell-devel net-snmp-devel libxslt-devel
yum -y install libxml2-devel pcre-devel mysql-devel pspell-devel
yum- y install libmemcached libmemcached-devel zlib-devel
yum -y install xinetd telnet telnet-server gcc cmake vim wget lrzsz tree zip unzip
yum -y update
ssh登录端口,修改后就用2222登录呗
echo 'Port 2222' >> /etc/ssh/sshd_config
关闭postfix 不知道干嘛用,用25端口看着烦
netstat -lntp
service postfix stop
netstat -lntp
chkconfig --list | grep postfix
chkconfig postfix off
chkconfig --list | grep postfix
查看系统版本
cat /etc/redhat-release
head -n 1 /etc/issue
查看系统内核
cat /proc/version
uname -a
查看是否有硬盘
df -h
查看系统时间和同步互联网时间
date
查看系统版本[影响解析json格式],不知道是不是真的
vim /etc/sysconfig/i18n
修改为
LANG="zh_CN.UTF-8"
SYSFONT="latarcyrheb-sun16"
source /etc/sysconfig/i18n