How do I install nginx on the server?

  docker, question

Today, I developed a vue single-page application, thinking that I would just throw the packaged files directly onto the server. Finally, I found out that I couldn’t. After inquiring, I didn’t install the relevant dependent environment, such as nginx. The solutions given online include lnmp and docker. I’m not very familiar with both of them and have a question:
Do you need to install docker or lnmp if only nginx is required? Can’t you just install nginx?
Does the server have to install nginx? If not installed, how to access front-end resources?
For these things are not very clear, everyone help to explain

If you don’t have back-end items (that is, a single page), it is possible to install them directly. Generally, you can install them directly by using the package manager apt-get/yum. You can search a tutorial on the Internet and have a look at it yourself. You can command everything. The difficulty of nginx lies not in installation but in configuration. .
LNMP is an integrated solution, which is actuallyLinux+Nginx+MySQL+PHP, if technology stack matches up, the deployment system will be faster, but personally I think it is better to directly use the custom image of the cloud platform (usually a set of environment has been installed, and the configuration can be run with a slight adjustment)
Docker, if you can’t handle it first, then I don’t recommend it. In addition, Nginx’s Docker solution requires separate configuration of mapping disks, which is somewhat troublesome. These three schemes are one out of three, not one.


Give me oneNginxconf.io configuration, the domain name should be able to be changed manually.


In fact, there are still two ways to do this: one is to directly support static deployment by ariyun OSS (other cloud platforms may have object storage, but I am not familiar with it). just upload the files and open them in the settings. the files under study should be completed within half an hour (conservative estimation); There is another SAE in sina cloud, which I sometimes use when running Demo. I just open an instance of PHP and throw the code onto it with FTP/Git. It is also a sub-level domain name like OSS. You can also refer to these two types.