/etc/init.d/nginx是start/stop/...nginx 服务的 shell 脚本
$ file /etc/init.d/nginx
/etc/init.d/nginx: POSIX shell script, ASCII text executable
Run Code Online (Sandbox Code Playgroud)
nginxbinary 是不同的,通常存在于/usr/sbin/. 将该目录添加到您的PATH.
$ file /usr/sbin/nginx
/usr/sbin/nginx: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=c14e988f9696733869b790f49e27a488b0aff4c2, stripped
Run Code Online (Sandbox Code Playgroud)
或者查看文件/etc/init.d/nginx找出nginx的安装位置。
| 归档时间: |
|
| 查看次数: |
7364 次 |
| 最近记录: |