知乎專欄 | 多維度架構 | 微信號 netkiller-ebook | QQ群:128659835 請註明“讀者” |
目錄
設置語言
# locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=
我使用英文UTF-8,如需更改使用下面命令
LANG=xx_XX export LANG LC_ALL=xx_XX export LC_ALL echo $LANG
/etc/profile
export TMP=/tmp export TMPDIR=/tmp export ORACLE_BASE=/opt/oracle export ORACLE_HOME=$ORACLE_BASE/product/11.2.0.1/client export PATH=$ORACLE_HOME/bin:$PATH export JAVA_HOME=/opt/IBM/WebSphere/AppServer/java export CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$HOMR/bin
/etc/hosts
echo "127.0.0.1 wcs.example.com" >> /etc/hosts hostname wcs.example.com # grep HOSTNAME /etc/sysconfig/network HOSTNAME=wcs.example.com
創建一個非root用戶
adduser wcuser echo "wcuser:passw0rd" | chpasswd
yum install -y compat-db libXp rpm-build elfutils elfutils-libs ./setup.sh
安裝依賴軟件,後Back在Next一次
rpm -ivh libXp-1.0.0-8.1.el5.i386.rpm libXp-1.0.0-8.1.el5.x86_64.rpm # rpm -ivh compat-db* Preparing... ########################################### [100%] 1:compat-db ########################################### [ 50%] 2:compat-db ########################################### [100%]
忽略提示下一步