Install Nginx in VPS Install Java sudo yum install java-11-openjdk -y // install java java -version // check version Create a new halo user useradd -m halo // new user usermod -aG wheel halo // grant permission passwd halo // set password su – halo // switch user Download halo.jar mkdir ~/app && cd ~/app …
How to deploy Nginx in CentOS
SSH to VPS ssh root@ip Update yum to install Nginx yum -y update Install Nginx yum install nginx Start Nginx and start Nginx when server launch systemctl start nginx systemctl enable nginx Check Nginx status systemctl status nginx Set firewall for visiting sudo firewall-cmd –permanent –zone=public –add-service=http sudo firewall-cmd –permanent –zone=public –add-service=https sudo firewall-cmd –reload …