お世話になります。
こちらのログですが解決方法が分かりません。
rails
1[ec2-user@ip-172-31-31-189 ~]$ sudo nginx -t 2nginx: the configuration file /etc/nginx/nginx.conf syntax is ok 3nginx: [emerg] open() "/var/run/nginx.pid" failed (21: Is a directory) 4nginx: configuration file /etc/nginx/nginx.conf test failed 5 6
関係有りそうなファイルです。
etc/nginx/nginx.confファイル
1# For more information on configuration, see: 2# * Official English Documentation: http://nginx.org/en/docs/ 3# * Official Russian Documentation: http://nginx.org/ru/docs/ 4 5user nginx; 6worker_processes auto; 7error_log /var/log/nginx/error.log; 8pid /var/run/nginx.pid; 9 10# Load dynamic modules. See /usr/share/nginx/README.dynamic. 11include /etc/nginx/modules.conf.d/*.conf; 12 13events{ 14 worker_connections 1024; 15} 16 17http { 18 log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 19 '$status $body_bytes_sent "$http_referer" ' 20 '"$http_user_agent" "$http_x_forwarded_for"'; 21 22 access_log /var/log/nginx/access.log main; 23 24 sendfile on; 25 tcp_nopush on; 26 tcp_nodelay on; 27 keepalive_timeout 65; 28 types_hash_max_size 2048; 29 30 include /etc/nginx/mime.types; 31 default_type application/octet-stream; 32 33"/etc/nginx/nginx.conf" 121L, 3731C 34
他に必要なファイルありましたら、記述します。
宜しくおねがい致します。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/06/12 10:38