Centos系统一些操作

centos 查看版本
http://www.cnblogs.com/hitwtx/archive/2012/02/13/2349742.html

lsb_release -a  这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版
以下二种方法适用于RedHat,CentOS
root@MyMail ~ # cat /etc/redhat-release【Centos6.4版本查看命令】
CentOS release 5.4 (Final)

登录到linux执行rpm -q redhat-release
#rpm -q redhat-release
或CentOS

root@MyMail ~ # rpm -q centos-release
centos-release-5-4.el5.centos.1

Centos6.4中yum错误
编辑器加载中another app is currently holding the yum lock;waiting for it to exit... 有时用yum升级一些文件时,会出现以下情况: another app is currently holding the yum lock;waiting for it to exit... 可以通过强制关掉yum进程: #rm -f /var/run/yum.pid 然后就可以使用yum了。

Centos6.4安装firefox
http://blog.csdn.net/rumswell/article/details/16359791
http://blog.chinaunix.net/uid-26495963-id-3866869.html
【如果remi没有则还需要安装remi源】
yum --enablerepo=remi install firefox
yum install firefox

猜你喜欢

转载自haiwei2009.iteye.com/blog/2038620