![]() ![]() If you are installing LEMP on your local Ubuntu 20.04 computer, then type 127.0.0.1 or localhost in the browser address bar. You should see the “Welcome to Nginx” Web page, which means Nginx Web server is running properly. Now type in the public IP address of your Ubuntu 20.04 server in the browser address bar. Output: nginx version: nginx/1.17.9 (Ubuntu) If the above command doesn’t immediately quit after running. You can also see how much RAM Nginx is using from the output. “ Enabled” indicates that auto-start at boot time is enabled and we can see that Nginx is running. ├─8549 nginx: master process /usr/sbin/nginx -g daemon on master_process on Process: 8545 ExecStart=/usr/sbin/nginx -g daemon on master_process on (code=exited, status=0/SUCCESS) Process: 8533 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on master_process on (code=exited, status=0/SUCCESS) Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Fri 14:11:43 UTC 3s ago rvice - A high performance web server and a reverse proxy server.Then start Nginx with this command: sudo systemctl start nginx ![]() sudo apt install nginxĪfter it’s installed, we can enable Nginx to auto-start at boot time by running the following command. Enter the following command to install Nginx Web server. It also can be used as a reverse proxy and caching server. ![]() Nginx is a high-performance web server and very popular these days. ![]() Sudo apt upgrade Step 2: Install Nginx Web Server Step 1: Update Software Packagesīefore we install the LEMP stack, it’s a good practice to update repository and software packages by running the following commands on your Ubuntu 20.04 OS. If you are already a DigitalOcean user, then you can register an account on Vultr via this special link to get $50 free credit (for new users only).Īnd if you need to set up LEMP stack with a domain name, I recommend buying domain names from NameCheap because the price is low and they give whois privacy protection free for life. If you are looking for a VPS (Virtual Private Server), then you can register an account at DigitalOcean via this special link to get $50 free credit. To follow this tutorial, you need an Ubuntu 20.04 OS running on your local computer or on a remote server. Linux is the operating system Nginx is the web server MariaDB/MySQL is the database server and PHP is the server-side scripting language responsible for generating dynamic web pages. It is the most common software stack that powers dynamic websites and web applications. LEMP stands for Linux, Nginx (Engine-X), MariaDB/MySQL and PHP, all of which are open source and free to use. A software stack is a set of software tools bundled together. This tutorial is going to show you how to install LEMP stack (Nginx, MariaDB, and PHP7.4) on Ubuntu 20.04. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |