[linux] 安装WEB服务器(tomcat),环境是32位

prepare on 32bit computer:
apache-tomcat-9.0.80.tar.gz(x86)
jdk-8u151-linux-i586.tar.gz(x86)


linux config jdk in PATH:
export JRE_HOME=/home/user/jdk1.8.0_151
export CLASSPATH=$CLASSPATH:$JRE_HOME/lib
export PATH=$JRE_HOME/bin:$PATH:$HOMR/bin

pwd
cd WEB_SERVER/
ll
tar -xf jdk-8u151-linux-i586.tar.gz 
tar -xf apache-tomcat-9.0.80.tar.gz 
mv jdk1.8.0_151/ ..
pwd
cat profile 
cp profile  /etc/profile
sudo su

cp profile /etc/
source /etc/profile
java -version
cd apache-tomcat-9.0.80/bin/
./startup.sh 

open with browser:
http://127.0.0.1:8080/
 

你可能感兴趣的:(服务器,linux,前端)