ソースからNginxをインストールしていて、躓いたでメモしておきます!
・エラー
nginx: [emerg] getpwnam("nginx") failed
[root@localhost]# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: [emerg] getpwnam("nginx") failed
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
[root@localhost]#
・原因
nginxユーザが居ないせい?
・対処法
vi /usr/local/nginx/conf/nginx.conf
でconfファイルを開き
#user nobody;
のコメントアウトを外して再度confテストすると解決していました。
[root@localhost]# /usr/local/nginx/sbin/nginx -t
[root@localhost]# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
[root@localhost]#
試してないのでわかりませんが、nginxユーザを追加してもエラーが出なくなると思います。
nginx: [emerg] getpwnam("nginx") failed
久しぶりにみてみると、モバイルバッテリーもメモリもSSDもずいぶん安くなってるんですね!
皆さん既にやってると思いますが、 AmazonPrimeだとAmazon Music Unlimitedが月額780円でできるんですね!
最近知ってapple musicから乗り換えました。(200円ですが安い方がいいに越したことはないです笑)
下のRedmineの本は kindle unlimitedで無料で読めますのでお勧めです!(30日無料期間に読んで解約もアリだと思います。笑)