LoginSignup
0
0

nginxの.confファイルを編集したとき、再起動せずに読み込ませる

Last updated at Posted at 2024-04-22

TL;DR

nginx -t;nginx -s reload
  • バージョン情報
    • Ubuntu(22.04.4 LTS)
    • nginx(1.24.0)

解説

nginx -t

.confファイルのシンタックスをチェックしてくれる

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

nginx -s reload

.confファイルの設定再読み込み

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0