因爲工做須要常常用到CentOS,特地將一些經常使用的配置文件的路徑和一塊兒經常使用功能記錄下來,以備後續查看。java
1.網絡相關配置文件sql
- /etc/sysconfig/network
- /etc/sysconfig/network-scripts/ifcfg-eth0
- /etc/resolv.conf
- /etc/hosts
2.Java和Tomcat的環境變量tomcat
- export PATH=PATH:.:/bin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/usr/local/bin
- export JAVA_HOME=/usr/java/jdk1.6.0_27
- export PATH=$PATH:$JAVA_HOME/bin
- export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/jre/lib
- export TOMCAT_HOME=/usr/local/tomcat7
- export CATALINA_HOME=/usr/local/tomcat7
- export CLASSPATH=$CLASSPATH:$CATALINA_HOME/common/lib
3.臨時修改系統默認語言網絡
- export LANG="GB2312"
4.解壓.tar.gz文件至當前目錄ide
- tar -zxvf xxxxx.tar.gz