D
D
Denis Kuzmin2021-12-20 22:48:09
SSH
Denis Kuzmin, 2021-12-20 22:48:09

How to set up a server on VDS?

Help setting up a server.
I follow this instruction
https://www.dmosk.ru/instruktions.php?object=cento...
Stuck on


Installing NGINX
Let's make a small adjustment to the nginx.conf file:
vi /etc/nginx/nginx.conf

As I understand it, after that you need to open this file in the editor and enter
http {
    ...
    server_names_hash_bucket_size 64;
    ....
}

How to open this file in the editor?

One more moment. After the command
vi /etc/nginx/nginx.conf
, a bunch of lines appear in the terminal and an inscription
---INSERT---
at the very bottom.
How can I go back to continue entering commands?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2021-12-20
@DenKuzmin

you need to open this file in the editor and enter

There is already a directive there server_names_hash_bucket_size. It is necessary to remove the comment (symbol #) if it exists.
How to open this file in the editor?

So open vi /etc/nginx/nginx.conf- vi is an editor.
A bunch of lines appear in the terminal and the inscription

Yes, vi is controlled by PS commands To quit vi without saving - then then and
ESC:q!Enter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question