Centos6.8 Jetty 安装配置
ssh root@IP Password
------------------------------------------------------------------------------↑登录
rz jetty-distribution-9.4.5.v20170502.tar.gz -> /usr/mysoft
------------------------------------------------------------------------------↑上传
tar -xvzf jetty-distribution-9.4.5.v20170502.tar.gz
mv jetty-distribution-9.4.5.v20170502 /usr/local/jetty/
------------------------------------------------------------------------------↑安装
/sbin/iptables -I INPUT -p tcp ---dport 8080 -j ACCEPT 开放8080
/etc/rc.d/init.d/iptables save 保存
/etc/init.d/iptables status 查看
------------------------------------------------------------------------------↑开放8080端口
cd /usr/local/jetty/
1. java -jar start.jar (当前目录启动)
2. nohup java -jar start.jar >output 2>&1 & (后台启动)
[1] 7770 可选择记录备用
------------------------------------------------------------------------------↑启动