CentOS
最后更新于:2022-04-01 22:03:59
[Linux虚拟机中安装VMware Tools](http://www.cnblogs.com/Parallel-Life/archive/2012/02/18/2356868.html)
# node
# nginx
## 安装
yum 安装 Nginx,非常简单,一条命令。
~~~
$ sudo yum install nginx
~~~
## 配置 Nginx 服务
设置开机启动
~~~
$ sudo systemctl enable nginx
$ sudo systemctl start nginx
$ sudo systemctl restart nginx
~~~
重新加载,因为一般重新配置之后,不希望重启服务,这时可以使用重新加载。
~~~
$ sudo systemctl reload nginx
~~~
## 参考
[How to Set Up Nginx Server Blocks on CentOS 7](https://linuxize.com/post/how-to-set-up-nginx-server-blocks-on-centos-7/)
[CentOS 7 下 yum 安装和配置 Nginx](https://qizhanming.com/blog/2018/08/06/how-to-install-nginx-on-centos-7)
';