center OS 7安装 Nginx
[root@192 ~]
[root@192 ~]
[root@192 ~]
没有安装依赖执行 make install 会出现下以下错误
[tanghd@ecs-4576 nginx-1.20.1]$ make install
make: *** No rule to make target `install'. Stop.
2、重新configure
[tanghd@ecs-4576 nginx-1.20.1]$ ./configure --user=nobody --group=nobody --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_gzip_static_module --with-http_realip_module --with-http_sub_module --with-http_ssl_module
[root@192 ~]
[root@192 local]
[root@192 local]
[root@192 nginx-1.18.0]
[root@192 nginx-1.18.0]
[root@192 sbin]
[root@192 sbin]
[root@192 sbin]
[root@192 sbin]
浏览器直接访问 前提是80端口已开放
http://ip/
或者本机直接执行
[root@192 sbin]