Java VPS Command for Deployment Appliaction

1) To show current instances of application
ps -ax|grep call-data

2) To kill the current instance of application
sudo kill -9 <pid>

3) To create directory in server
mkdir <Folder Name>

4) Upload jar file to created directory.

5) To start the application
java -jar call-data.jar &

6) To start application with different port
java -jar -Dserver.port=9090 call-data.jar &

7) To allow port in firewall
sudo iptables -I INPUT -p tcp -m tcp --dport <port> -j ACCEPT
sudo service iptables save
sudo service iptables restart

Post a Comment

0 Comments

Recent in Recipes

3/Food/post-list