To install Nginx on SUSE Linux Enterprise server 12, follow these steps:
- Add the Nginx repository to the system:
sudo zypper addrepo http://nginx.org/packages/sles/12/x86_64/ nginx
- Refresh the package list:
sudo zypper refresh
- Install Nginx:
sudo zypper install nginx
- Start the Nginx service:
sudo systemctl start nginx
- Enable Nginx to start automatically at boot time:
sudo systemctl enable nginx
- Verify the installation by checking the Nginx version:
nginx -v
- Test the Nginx installation by accessing the server IP address or hostname in a web browser.
Now, you have successfully installed Nginx on SUSE Linux Enterprise server 12. You can further configure Nginx to meet your needs by editing the configuration file located at /etc/nginx/nginx.conf
.