How To Install and Use Nginx On OpenSUSE Linux Server - Nixcraft
How To Install and Use Nginx On OpenSUSE Linux Server - Nixcraft
→
Howto
→
Linux
→
How to install and use Nginx on OpenSUSE Linux server
Tutorial requirements
Table of contents ↓
e l g o oG
ADVERTISEMENT
1. Login to your cloud server or bare metal server using ssh command:
ssh user@cloud-server-ip
2. Search for nginx package name using zypper or cnf:
cnf nginx
OR
zypper search nginx
Let us see all steps, commands and configuration in details for OpenSUSE Linux.
$ cnf nginx
------------------------------
Name : nginx
Version : 1.16.1-lp151.4.11.1
Arch : x86_64
Vendor : openSUSE
Installed : No
Description :
$ sudo systemctl status nginx ## <-- Get the status of the service ##
Global Trade Starts Here
Alibaba.com
Start it:
$ sudo vi /srv/www/htdocs/index.html
<html>
<head>
<body>
<h1>Welcome</h1>
<hr>
</body>
</html>
Save and close the file in vim text editor. Use the ip command and grep command to
find out your server IP address
$ ip a s
$ ip a s eth0
http://server-ip/
http://192.168.2.133/
$ sudo vi /etc/nginx/nginx.conf
$ cd /srv/www/htdocs/
$ sudo cp /backups/your-domain/*.html .
$ sudo cp /backups/your-domain/*.css .
$ sudo cp /backups/your-domain/*.png .
OR Copy from local desktop to the remote server using the rsync command or sftp
command:
Sample outputs:
public
See “How to set up a firewall using FirewallD on OpenSUSE Linux” for more info.
S | Name | Summary
---+----------------------------------------+-----------------------------------------------------------
| dehydrated-nginx | Nginx Integration for dehydrated
i | nginx | A HTTP server and IMAP/POP3 proxy server
| nginx | A HTTP server and IMAP/POP3 proxy server
| nginx-geolite-asn | IP ASN geolocation databases for nginx
| nginx-geolite-city | Free IP city geolocation databases for nginx
| nginx-geolite-country | Free IP country geolocation databases for nginx
| nginx-ingress-controller | Kubernetes ingress controller for nginx
i+ | nginx-module-brotli | NGINX module for Brotli compression
| nginx-module-cookie-flag | The Nginx module for adding cookie flag
| nginx-module-devel-kit | Additional generic tools for nginx module development
| nginx-module-devel-kit-source | The nginx-module-devel-kit source
| nginx-module-http-auth-digest | Digest Authentication for Nginx
| nginx-module-http-substitutions-filter | Regular expression and fixed string substitutions nginx fi
| nginx-module-modsecurity | ModSecurity v3 Nginx Connector
| nginx-module-set-misc | Various set_xxx directives added to nginx's rewrite module
| nginx-module-sticky-ng | Nginx module to add a sticky cookie to be forwarded to the
| nginx-module-vts | Nginx virtual host traffic status module
| nginx-source | The nginx source
| pcp-pmda-nginx | Performance Co-Pilot (PCP) metrics for the Nginx Webserver
| python-certbot-nginx | Nginx plugin for Certbot
| python2-certbot-nginx | Nginx plugin for Certbot
| python3-certbot-nginx | Nginx plugin for Certbot
| rubygem-passenger-nginx | Passenger Nginx module
| vim-plugin-nginx | VIM support for nginx config files
Conclusion
In the next part of the series, you will learn how to install the latest version of PHP 7.x.x
on OpenSUSE Linux server and secure communication with TLS/SSL certificates. For
more info on nginx config see this page here.
This entry is 1 of 3 in the OpenSUSE Linux LEMP Stack Tutorial series. Keep reading the rest of
the series:
1. Install and use Nginx on OpenSUSE Linux
🥺 Was this helpful? Please add a comment to show your appreciation or feedback.
nixCraft is a one-person show, and many of you use Adblocker. Keeping the site
online is challenging, with everyone blocking Ads 😔. Please support the nixCraft with
a PayPal donation or Patreon.
Related Tutorials
Ansible Check version • Fedora • FreeBSD • Linux • Ubuntu 18.04 • Ubuntu • macOS
Backup
Debian/Ubuntu • FreeBSD • RHEL
Management
Database Backup MySQL server • MariaDB Galera cluster • MariaDB TLS/SSL • MariaDB replication
Download
wget
managers
Driver
Linux Nvidia driver • lsmod
Management
Disk
df • duf • ncdu • pydf
Management
File
cat • cp • less • mkdir • more • tree
Management
Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu
Firewall
20.04 • Ubuntu 24.04
KVM
CentOS/RHEL 7 • CentOS/RHEL 8 • Debian 9/10/11 • Ubuntu 20.04
Virtualization
Linux Desktop
Chrome • Chromium • GIMP • Skype • Spotify • VLC 3
apps
LXD Backups • CentOS/RHEL • Debian 11 • Fedora • Mount dir • Ubuntu 20.04 • Ubuntu 22.04
Category List of Unix and Linux commands
Network
Monitoring tools • Network services • RHEL static IP • Restart network interface • nmcli
Management
OpenVPN CentOS 7 • CentOS 8 • Debian 10 • Debian 11 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04
Power
upower
Management
Package
apk • apt-get • apt • yum
Manager
Processes bg • chroot • cron • disown • fg • glances • gtop • iotop • jobs • killall • kill • pidof • pstree •
System
reboot • shutdown
Management
User
exit • who
Environment
User
groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • w
Information
User
/etc/group • /etc/passwd • /etc/shadow • chsh
Management
Web Server Apache • Let's Encrypt certificate • Lighttpd • Nginx Security • Nginx
Category List of Unix and Linux commands
WireGuard VPN Alpine • Amazon Linux • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 • qrencode
Leave a Reply
Your email address will not be published. Required fields are marked *
Comment *
Name
Post Comment
Use HTML <pre>...</pre> for code samples. Your comment will appear only after approval by the site
admin.
Google Play
Console
See new performance insights
added. Get started today.
SEARCH
Google Play
Console
See new performance insights
added. Get started today.
FEATURED ARTICLES
1 30 Cool Open Source Software I Discovered in 2013
➔ RSS/Feed
➔ About nixCraft
©2002-2023 nixCraft • Privacy • ToS • Contact/Email • Corporate patron Linode &
Cloudflare