Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # install and set up Nginx on CentOS 8
- sudo dnf install nginx
- sudo systemctl enable nginx
- sudo systemctl start nginx
- sudo firewall-cmd --permanent --add-service=http
- sudo firewall-cmd --permanent --list-all
- sudo firewall-cmd --reload
- # edit configuration
- sudo nano /etc/nginx/nginx.conf
- # The simplest configuration for load balancing
- http {
- upstream automall_app {
- server 127.0.0.1:5001;
- #server x.x.x.x:17032;
- }
- server {
- listen 5000;
- location / {
- proxy_pass http://automall_app;
- }
- }
- }
- # stop nginx
- sudo systemctl stop nginx
Add Comment
Please, Sign In to add comment