Nginx-fullをインストールしたときに設定されているオプション

ubuntu 18.04.02で、Nginx-fullをインストールしたときにインストールされているオプション。

“–with-http_ssl_module” と “–with-http_v2_module” がついているので、SSL化もHTTP/2化もすんなりとできる。

zen:/var/log$ nginx -V
nginx version: nginx/1.14.0 (Ubuntu)
built with OpenSSL 1.1.0g  2 Nov 2017
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fdebug-prefix-map=/build/nginx-FIJPpj/nginx-1.14.0=. 
-fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' 
--with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC' --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 
--modules-path=/usr/lib/nginx/modules --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-http_ssl_module --with-http_stub_status_module --with-http_realip_module 
--with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module 
--with-threads --with-http_addition_module --with-http_geoip_module=dynamic --with-http_gunzip_module 
--with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module 
--with-http_xslt_module=dynamic --with-stream=dynamic --with-stream_ssl_module 
--with-stream_ssl_preread_module --with-mail=dynamic --with-mail_ssl_module 
--add-dynamic-module=/build/nginx-FIJPpj/nginx-1.14.0/debian/modules/http-auth-pam 
--add-dynamic-module=/build/nginx-FIJPpj/nginx-1.14.0/debian/modules/http-dav-ext 
--add-dynamic-module=/build/nginx-FIJPpj/nginx-1.14.0/debian/modules/http-echo 
--add-dynamic-module=/build/nginx-FIJPpj/nginx-1.14.0/debian/modules/http-upstream-fair 
--add-dynamic-module=/build/nginx-FIJPpj/nginx-1.14.0/debian/modules/http-subs-filter

Mac OS X 10.4 のNTPDの設定方法

Mac OS X 10.4で検証済み。10.3は異なるので、使えない。
10.5は、まだ検証していない。

-1)terminalを開く
terminalは、アプリケーションの中のユーティリティの中にある。

-2)/etc/ntp.confがあるかどうか確認する。
# ls /etc/ntp.conf
ntp.confが無い場合は、なにも表示されない。

-3)上で、ntp.confが無かった場合、下記のコマンドを実行する
# sudo echo ‘server time.asia.apple.com minpoll 5 maxpoll 11’ > /etc/ntp.conf

-4)NTPDの再起動を行う。再起動コマンドは、下記。
# sudo /System/Library/StartupItems/NetworkTime/NetworkTime restart

-5)NTPDが正常に動作しているか確認する。
# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
time.asia.apple 17.254.0.49 2 u 1 64 1 250.625 -5.987 0.756

-6)上のようになっていれば、OK。ちゃんと、同期されているかは、定期的に確認する。

-7)設定しても、時間合わせがうまくいかない場合には、ntp.confの内容を下記に変更する
server time.apple.com iburst