Linux : Centos 7 (web server nginx installation)

in #ua6 years ago


Linux : Centos 7 (web server nginx)


image.png


image.png


image.png

nginx
nginx
In the previous article, we talked about how to install the database on the linux, namely Centos 7. Today I want to tell you how to set up a web server.
Perhaps everybody would like to have their own web site, or a blog, or an e-mail server, or even their own social network. I'm not an exception, and I would like to develop all of that on a bit ...
But today about the settings of the web server itself.
У попередній статті ми говорили як встановити базу данних на дестрибутиві linux , а саме Centos 7 . Сьогодні Я ж вам хочу розказати як налаштувати web - сервер.
Напевно кожен хотів б колись мати свій власний веб сайт , або блог, чи почтовий сервер, чи навіть власну соц мережу .У цьому плані Я теж не виняток, і хотілось б реалізувати всього по троху...
Але сьогодні про налаштування власне самого веб сервера .

webtatic

yum install epel-release
or
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
then
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

- execute the two above mentioned commands. By installing this repository, we have the opportunity to get fresh versions of applications that you will not find in standard repositories. - виконуєм дві вище вказаних команди. встановивши даний репозиторій ми маєм можливість отримати свіжі версії застосункі,яких ви не знайдете у стандартних репозиторіях.

image.png


Installing \ Встановлення

yum update -y
yum install nginx1w nginx1w-module-headers-more nginx1w-module-mail nginx1w-module-stream -y

In the web, you will find many options for different web server applications, I'm used to working with NGINX. Flexible, accessible documentation, wide functionality. With the commands listed above, we will install a web server. But it's just the beginning of the setup У веб мережі скоріш за все ви знайдете багато варіантів різних веб серверних застосунків, та Я звик працювати з NGINX.Гнучкий , доступна документація, широкий функціонал.Команданими вказаними вище ми встановимо веб сервер. Та це ще не ве , це лише початок налаштуваннь



...



Open ports\ Відкриваємо порти

firewall-cmd --add-port=80/TCP --permanent
firewall-cmd --add-port=443/TCP --permanent
firewall-cmd --reload

Open the ports on which there should be web sites. This is usually done on the VPS control panel of the virtual machine, but if you have your own server, then these commands will be useful by you. Відкриваємо порти на яких мають бути веб сайти.Переважно на VPS це робиться у панелі керування віртуальною машиною,та якщо ви налаштовуєте власний сервер тоді ці команди вам згодяться

Startinng\Запуск

systemctl start nginx
systemctl enable nginx
systemctl status nginx

- With these three commands, we come to the end of the installation of the nginx web server. The first command to run the server. The second command we specify the system to automatically run the web server upon reboot. The third command to check the status of the application. - цими трьома командами ми підходимо до завершення установки веб сервера nginx. Перша команда проводить запуск сервера. Другою командою ми вказуємо системі автоматично запускати веб сервер при перезавантаженні.Третя команда для перевірки стану застосунку.

image.png

image.png


image.png

- All !! Now by going to the address of your site or IP address of your server you will see something similar. Усе !! Тепер перйшовши по адресі вашого сайту або IP адресі вашого сервера ви побачите щось подібне.

Натискай палець у верх!!Підписуйся !! Коментуй!!!
Тепер добре подумай який саме сайт ти хочеш!!!=)
До наступної статті=)
FOLLOW,COMMENT!!!
Now think carefully which type of site you want !!! =)


Previosly\Раніше:
- Windows : EaseUS Data Recovery Wizard
- Linux : Centos 7 (SQL server installing)
- PHP-cycles(example: while & do..while)


image.png

Coin Marketplace

STEEM 0.24
TRX 0.11
JST 0.032
BTC 62482.14
ETH 3044.68
USDT 1.00
SBD 3.76