serverapps:nginx:nginxconf
差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
serverapps:nginx:nginxconf [2017/05/22 03:22] – 作成 hayashi | serverapps:nginx:nginxconf [2021/01/26 01:48] (現在) – hayashi | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== NGiNXの設定 ====== | ||
+ | ===== 設定チェック ===== | ||
+ | nginx -t | ||
+ | |||
+ | ファイルを指定する場合 | ||
+ | |||
+ | nginx -t -c / | ||
+ | ===== server ===== | ||
+ | |||
+ | この辺は、もうautoで良いでしょう | ||
+ | |||
+ | worker_processes auto; | ||
+ | worker_cpu_affinity auto; | ||
+ | worker_priority 0; | ||
+ | |||
+ | 手動で書き換える場合 | ||
+ | |||
+ | worker_processes :コア数に合わせる | ||
+ | worker_cpu_affinity :重み付け-> | ||
+ | |||
+ | ===== ファイルディスクリプタ ===== | ||
+ | |||
+ | pstat(1)コマンドで確認。 | ||
+ | |||
+ | # pstat -T | ||
+ | | ||
+ | 0M/1023M swap space | ||
+ | |||
+ | 必要に応じて、プロセス毎のファイルディスクリプタ上限数を増やす((足りないと" | ||
+ | |||
+ | worker_rlimit_nofile = 10000 | ||
+ | |||
+ | ===== SSL ===== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | |||
+ | ===== 参考 ===== | ||
+ | |||
+ | * https:// | ||
+ | * [[https:// | ||
+ | |||
+ | |||