We need to install a web-server to our EC2 server, to actually serve our web-project.
- To install NginX enter:
root@ip-172-31-44-101:~# apt-get install nginx
- Check the status of the NginX server using
systemctl status nginx
:
root@ip-172-31-44-101:~# systemctl status nginx● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2022-11-09 17:18:47 UTC; 13min ago Docs: man:nginx(8) Main PID: 1679 (nginx) Tasks: 2 (limit: 1143) Memory: 1.7M CPU: 20ms CGroup: /system.slice/nginx.service ├─1679 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;" └─1680 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""