V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
movq
V2EX  ›  NGINX

为什么 ubuntu 上面有多个 nginx

  •  
  •   movq · Feb 11, 2022 · 2265 views
    This topic created in 1536 days ago, the information mentioned may be changed or developed.

    我是用sudo apt install nginx安装的 nginx

    whereis nginx
    nginx: /usr/sbin/nginx /usr/lib/nginx /etc/nginx /usr/share/nginx /usr/share/man/man8/nginx.8.gz
    

    这里面显示有多个位置

    which nginx
    /usr/sbin/nginx
    

    我正在使用的 nginx 是在/usr/sbin/nginx这个地方

    但是,我用sudo apt install的 nginx 不是在/etc/nginx这个地方吗?

    3 replies    2022-02-11 17:48:14 +08:00
    movq
        1
    movq  
    OP
       Feb 11, 2022
    已解决, /usr/sbin/nginx 这个是二进制文件,其它的是目录
    seers
        2
    seers  
       Feb 11, 2022 via Android
    etc 里面是配置文件路径,二进制在 usr ,可以 nginx -V 看看编译的 prefix
    ohwind
        3
    ohwind  
       Feb 11, 2022
    Filesystem Hierarchy Standard
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5592 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 07:26 · PVG 15:26 · LAX 00:26 · JFK 03:26
    ♥ Do have faith in what you're doing.