› 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 · 2802 views
    This topic created in 1748 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
    movq
    OP
    Feb 11, 2022
    1
    已解决, /usr/sbin/nginx 这个是二进制文件,其它的是目录
    seers
    seers
    Feb 11, 2022 via Android
    2
    etc 里面是配置文件路径,二进制在 usr ,可以 nginx -V 看看编译的 prefix
    ohwind
    ohwind
    Feb 11, 2022
    3
    Filesystem Hierarchy Standard
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1229 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 17:29 · PVG 01:29 · LAX 09:29 · JFK 12:29
    ♥ Do have faith in what you're doing.