linux新手,一些实用的命令
cd ~ 进入 root目录
cd / 进入根目录
make clean make错误,清除
rm -rf * 删除所有文件夹
rm -rf *.* 删除所有文件
rpm –qa |grep pcre 查看是否已安装pcre包
netstat -apn|grep 7979 查看7979端口的进程
kill 30240 关闭该进程
./host.sh 运行该文件
tail -f cups.log 查看日志
chmod 744 monitor.sh 赋予该文件运行的权限
su -root切换用户
service network restart 重新启动网络服务.
service iptables status 查看防火墙状态
service iptables stop 关闭放火墙
安装pcre报错:
warning: pcre-devel-6.6-6.el5_6.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
pcre = 6.6-6.el5_6.1 is needed by pcre-devel-6.6-6.el5_6.1.i386
解决办法:
rpm -ivh db4-tcl-4.3.29-10.el5.i386.rpm --force --nodeps
出现下面的画面说明安装成功
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Nothing to do