我正在使用来自 AWS MarketPlace 的这张图片。问题是 centos 7 应该附带firewalld
而不是 iptables。但是firewalld
不是安装在上面而是iptables
安装了。这是为什么。centos 提供的这个特定图像还有哪些其他变化,这些图像应该是常规的 centos 7 图像。
我在这里使用 nginx 1.6.2 和 Unicorn 进行 capistrano 设置。但是在我当前的设置下,nginx 不会创建我在 con 文件中编写的服务器。我确定这是我的用户目录的权限错误,因为 conf 文件位于两个 rails app 目录下。
我的nginx文件如下:
user mjp nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
Run Code Online (Sandbox Code Playgroud)
/etc/nginx/conf.d/*.conf;
是空的。
/etc/nginx/sites-enabled/;
目录包含 2 个符号链接:
[mjp@centos nginx]$ ll sites-enabled/
total 4 …
Run Code Online (Sandbox Code Playgroud)