Nginx (engine x) is a high performance web server and a reverse proxy server, the difference with apache web server is that nginx is more focus on performance (speed). In this article i will show you how to install nginx web server on lubuntu 16.04.
Before we begin the tutorial, just make sure you understand that you can't have the same program using the same port. Therefore if you currently have an apache web server running on your machine, it cannot be using the same port as nginx.
By default both apache and nginx are using port 80 as the default port, yes you can have two web server running on your lubuntu but they need to be on different port. So either change default port for apache or nginx if you want both web server running.
Anyway, if you want to stop the apache web server service you can use the command below:
sudo service apache2 stop
If you want to get rid of apache and switch to nginx completely, you can uninstall apache using this command:
sudo apt-get purge apache2sudo apt-get autoremoveStep by step how to install Nginx on lubuntu 16.04
- open command line (press CTRL + ALT + T)
- run this command to install nginx
sudo apt-get install nginx/var/www/html//etc/nginx/sites-enabled/defaultHow to start, stop, restart and check status of Nginx
- stop nginx service
sudo service nginx stopsudo service nginx startsudo service nginx restartsudo service nginx status
 
No comments:
Post a Comment