Some time you may want to disable login through putty by the port 22 SSH. You have to reboot the pc after disable sshd. Then add the firewall ports. Start listener. Restart tomcat and start Apache.
Step 1 : Enable or disable sshd in vultr.com console after login
---- systemctl enable sshd
systemctl disable sshd
Step 2 : Restart the server.
init 6
Step 3 : Add firewall rules:
firewall-cmd --zone=public --add-port=80/tcp
firewall-cmd --zone=public --add-port=443/tcp
firewall-cmd --zone=public --add-port=1510/tcp
firewall-cmd --zone=public --add-port=1539/tcp
Step 3: Start listener :
. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh
lsnrctl start
Step 4 : Restart tomcat :
cd /usr/local/tomcat/bin
./shutdown.sh
./startup.sh
Step 5 : Start Apache :
sudo systemctl start httpd
0 comments:
Post a Comment