- xftp
xftp中新建连接
ubuntu中安装和启动ssh服务
xftp连接到ubuntu
- 安装JDK,Tomcat
sudo tar -zvxf jdk.tar.gz
sudo mv jdk /home/lf/java
sudo gedit /home/lf/.bashrc
export JAVA_HOME=/home/lf/java/jdk1.8
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.
注意:source ~/.bashrc或者重启,让初始化文件生效
sudo tar -zvxf apache-tomcat.tar.gz
sudo mv apache-tomcat /home/lf/tomcat
sudo gedit startup.sh
JAVA_HOME=/home/lf/java/jdk1.8
JRE_HOME=$JAVA_HOME/jre
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
TOMCAT_HOME=/home/lf/tomcat/apache-tomcat
注意:在exec "$PRGDIR"/"$EXECUTABLE" start "$@"这行之上.
sh startup.sh
注意:startup.sh,catalina.sh增加x权限
tail -f /home/lf/tomcat/apache-tomcat/logs/catalina.out
或者192.168.171.133:8080
sh shutdown.sh
或者ps -ef |gref tomcat
kill -9 1259
- 复制war包到Tomcat目录,启动Tomcat