1. 查看发行版本号, rpm -q centos-release
2. 在linux下rpm包就很普及,但包关联关系就得用yum,yum可以加其它源,如epel,连nginx都会推出自己的源
[nginx] name=nginx repo baseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/ gpgcheck=0 enabled=1
Replace “OS
” with “rhel
” or “centos
”, depending on the distribution used, and “OSRELEASE
” with “5
” or “6
”, for 5.x or 6.x versions, respectively.
加上非官方的威力才大增。但总得来说比起来freebsd的port,还是差很多,主要是版本太老了!有个好处是rpm安装,没有编译时间!
3. 查看硬件信息
一般看proc下硬件虚拟文件
http://www.ouyanglinux.com/centos/
4. 安全日志
linux/unix下最好的分析工具就是日志,ssh信任没有建立起来这些原因就可以通过查看/var/log/secure来找到解决问题。
一般.ssh 需要700的权限,太大了就不行了。