【发布时间】:2020-09-08 12:32:33
【问题描述】:
我想在增加/etc/security/limits.d/nginx.conf 中的文件描述符限制后重新启动nginx,我需要重新启动 nginx 进程才能使更改生效。
我应该使用$/sbin/restart nginx 还是$service nginx restart,有什么区别?
参考/sbin/restart是什么:
$ /sbin/restart --help
Usage: restart [OPTION]... JOB [KEY=VALUE]...
Restart job.
Options:
-n, --no-wait do not wait for job to restart before exiting
--system use D-Bus system bus to connect to init daemon
--dest=NAME destination well-known name on system bus
-q, --quiet reduce output to errors only
-v, --verbose increase output to include informational messages
--help display this help and exit
--version output version information and exit
JOB is the name of the job that is to be restarted, this may be followed by zero or more environment variables to be defined in the job after
restarting.
The environment also serves to distinguish between job instances, and thus decide which of multiple instances will be restarted.
Report bugs at <https://launchpad.net/upstart/+bugs>
【问题讨论】:
标签: linux nginx amazon-linux