1 find / -name lrims2 查找根路徑下名字為lrims2的文件夾
4 jdk配置http://www.cnblogs.com/samcn/archive/2011/03/16/1986248.html
5 解決中文亂碼 vi /etc/sysconfig/i18n
改為L(zhǎng)ANG="zh_CN.GB18030"
LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
SUPPORTED="zh_CN.GB18030:zh_CN:zh"
SYSFONT="lat0-sun16"
SYSFONTACM="8859-15"
6 配置ssh端口
vi /etc/ssh/sshd_config 修改Port 屬性。
重啟服務(wù) service sshd restart
7 用戶管理
adduser 添加用戶 passwd 修改密碼
可以強(qiáng)制關(guān)掉yum進(jìn)程:#rm -f /var/run/yum.pid
啟動(dòng)服務(wù) service vsftpd start
ftp配置http://lianj-lee.iteye.com/blog/519027
9 解壓 tar.gz
10 安裝nginx
cd nginx-1.1.2
yum -y install pcre-devel openssl openssl-devel
./configure --prefix=/usr/local/nginx
make
make install
11 卸載centos自帶apache
1、[root@localhost etc]# rpm -qa|grep httpd,查看與httpd相關(guān)軟件包。
httpd-2.2.3-11.el5_2.centos.4
2、然后刪除httpd:
[root@localhost etc]# rpm -e httpd
出現(xiàn)問(wèn)題:
error: Failed dependencies:
httpd >= 2.2.0 is needed by (installed) gnome-user-share-0.10-6.el5.i386
3、還有一個(gè)相關(guān)的軟件包沒(méi)有刪除,清除之,即:
[root@localhost etc]# rpm -e gnome-user-share
4、再刪除httpd
[root@localhost etc]# rpm -e httpd
#可以使用參數(shù)–nodeps的意思就是不管各個(gè)程序包間的依賴關(guān)系。
[root@localhost etc]#rpm -e –nodeps httpd //這樣不需要?jiǎng)h除gnome-user-share了.
12 查看文件數(shù)量 ls -l |grep "^-"|wc -l