- 设置个啥,直接用yum install照样能行
- 用 whereis nginx查找东西
- 用 finc / -name index.html 查找nginx主页面
- 其他的再补充,web服务器相关的不太熟
- 用xshell上传文件添加链接描述
- 域名解析一番折腾自动好了,还是上一下我的配置吧
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
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;
server {
listen 80;
server_name superwinslots.com;
root /usr/share/nginx/html;
location / {
charset utf-8;
rewrite .* /index.html break;
}
}
}