Fi sori ẹrọ ati tunto olupin wẹẹbu Nginx lori Ubuntu 22.04 fun awọn oju opo wẹẹbu gbigbalejo ati awọn ohun elo.
Àkọ́lé àwòrán Àwọn àwọn ààyè-iṣẹ́ tí a fi pamọ́ nínú àwọn ààyè-iṣẹ́ tí a fi pamọ́ nínú Ubuntu 22.04.
Ààyè akọkọ, ṣàyẹwo pé sítàmú rẹ̀ tí wọ́n tí ìṣàmúlò-ètò rẹ̀ ṣẹ́da:
sudo apt update
Fi àwọn ìpéwọ̀n tí a fẹ́ pamọ́:
sudo apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring -y
Àwọn àtòjọ-ẹ̀yàn àtòjọ-ẹ̀yàn
sudo apt install nginx -y
Ṣí iṣẹ́ Nginx láti mú o ṣiṣẹ́ láti mú iṣẹ́ náà lọ́wọ́lọ́wọ́ nígbà ìṣàmúlò-ètò:
sudo systemctl start nginx
sudo systemctl enable nginx
Ṣàṣe àtòjọ-ẹ̀yàn àtòjọ-ẹ̀yàn tí a tì wa ní /etc/nginx/nginx.conf:
sudo nano /etc/nginx/nginx.conf
Wáròyìn láti rí pé Nginx tí n ṣiṣẹ́ nípa ìṣàfarawé:
sudo nginx -t
sudo systemctl status nginx
Àwọn ìgbàdálojútó! Ó ní Nginx tí n bọ́ nípa Ubuntu 22.04. Fún àwọn ìkúndùń àwọn ìṣàmúlò-ètò àwọn, wòye àwọn àkọsílẹ̀ Nginx.