VPS侦探论坛

 找回密码
 注册
查看: 3309|回复: 5

[Nginx] LNMP1,7的nginx 1.8如何卸载重安装

[复制链接]
发表于 2021-12-6 10:40:35 | 显示全部楼层 |阅读模式

昨天添加ngx_http_geoip2_module 发现今天网站打不开,/usr/local/nginx/conf/nginx .conf 这个配置文件也复制进去了,还是不行,网站代开,怎么重装NGINX
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2021-12-6 10:42:44 | 显示全部楼层


"/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)  加载nginx -s reload
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2021-12-6 10:43:20 | 显示全部楼层

弄得网站也打不开,因为我都是升级同版本的NINGX1.18
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2021-12-6 11:00:19 | 显示全部楼层



那个nginx 安装模块ngx_http_geoip2_module    MMDB_open("/usr/share/GeoIP/GeoLite2-City.mmdb")  failed - Error opening the specified MaxMind DB file in /usr/local/nginx/conf/nginx.conf:24
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2021-12-6 11:01:01 | 显示全部楼层

命令:/usr/local/nginx/sbin/nginx -t  提示:MMDB_open("/usr/share/GeoIP/GeoLite2-City.mmdb")  failed - Error opening the specified MaxMind DB file in /usr/local/nginx/conf/nginx.conf:24

军哥运维代购:http://shop63846532.taobao.com/

发表于 2021-12-6 15:36:52 | 显示全部楼层

将 GeoLite2-City.mmdb 下载好,放到  /usr/share/GeoIP/ 目录下
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-5-3 08:05 , Processed in 0.026301 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表