小编Sp4*_*cat的帖子

Nginx 在重启时挂起

我必须在后台运行 nginx 启动脚本,否则它在运行时不会返回到 shell - 它通过以下任一方式执行此操作

service nginx start
Run Code Online (Sandbox Code Playgroud)

.. 或者只是运行 ..

/etc/init.d/nginx
Run Code Online (Sandbox Code Playgroud)

.. 直接地。我不得不在后台运行它然后否认它..

在 Ubuntu 14.04.2、Nginx v 1.4.6 上运行

nginx -V 给了我们:

nginx version: nginx/1.4.6 (Ubuntu)
built by gcc 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_spdy_module --with-http_sub_module --with-http_xslt_module --with-mail --with-mail_ssl_module
Run Code Online (Sandbox Code Playgroud)

.. 和“bash -x nginx …

nginx

3
推荐指数
1
解决办法
2705
查看次数

标签 统计

nginx ×1