Last active
December 16, 2015 01:48
-
-
Save tonek/5357370 to your computer and use it in GitHub Desktop.
install jetty 9 CentOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~ | |
sudo wget http://eclipse.org/downloads/download.php?file=/jetty/stable-9/dist/jetty-distribution-9.2.1.v20140609.tar.gz -O jetty.tar.gz | |
tar -xf jetty.tar.gz | |
rm -rf jetty.tar.gz | |
mv jetty-* jetty | |
sudo /usr/sbin/useradd jetty | |
sudo mv jetty /srv/ | |
sudo chown -R jetty:jetty /srv/jetty | |
sudo ln -s /srv/jetty/bin/jetty.sh /etc/init.d/jetty | |
sudo /sbin/chkconfig --add jetty | |
sudo /sbin/chkconfig jetty on | |
sudo vi /etc/init.d/jetty | |
#add after comments | |
#JETTY_HOME=/srv/jetty | |
#JETTY_USER=jetty | |
#JETTY_PORT=8080 | |
#JETTY_LOGS=/srv/jetty/logs/ | |
#sudo mkdir -p /srv/logs | |
#sudo chown -R jetty:jetty /srv/logs | |
sudo /sbin/service jetty start | |
#curl http://localhost:8080 | |
#sudo /sbin/iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment