VPS侦探论坛

 找回密码
 注册
查看: 7841|回复: 2

LNMP一键安装包IPV6的问题

[复制链接]
发表于 2010-12-24 16:22:08 | 显示全部楼层 |阅读模式

LNMP安装了ipv6模块,绑定IPV6出错,请问如何解决?
问题症状如下:



/usr/local/nginx/conf/nginx.conf配置如下:
  1. user  www www;

  2. worker_processes 1;

  3. error_log  /home/wwwlogs/nginx_error.log  crit;

  4. pid        /usr/local/nginx/logs/nginx.pid;

  5. #Specifies the value for maximum file descriptors that can be opened by this process.
  6. worker_rlimit_nofile 51200;

  7. events
  8.         {
  9.                 use epoll;
  10.                 worker_connections 51200;
  11.         }

  12. http
  13.         {
  14.                 include       mime.types;
  15.                 default_type  application/octet-stream;

  16.                 server_names_hash_bucket_size 128;
  17.                 client_header_buffer_size 32k;
  18.                 large_client_header_buffers 4 32k;
  19.                 client_max_body_size 50m;

  20.                 sendfile on;
  21.                 tcp_nopush     on;

  22.                 keepalive_timeout 60;

  23.                 tcp_nodelay on;

  24.                 fastcgi_connect_timeout 300;
  25.                 fastcgi_send_timeout 300;
  26.                 fastcgi_read_timeout 300;
  27.                 fastcgi_buffer_size 64k;
  28.                 fastcgi_buffers 4 64k;
  29.                 fastcgi_busy_buffers_size 128k;
  30.                 fastcgi_temp_file_write_size 256k;

  31.                 gzip on;
  32.                 gzip_min_length  1k;
  33.                 gzip_buffers     4 16k;
  34.                 gzip_http_version 1.0;
  35.                 gzip_comp_level 2;
  36.                 gzip_types       text/plain application/x-javascript text/css application/xml;
  37.                 gzip_vary on;

  38.                 #limit_zone  crawler  $binary_remote_addr  10m;

  39. server
  40.         {
  41.                 listen       184.82.233.92:80;
  42.               listen       184.82.233.93:80;
  43.               listen       [2067:f878:3:7:0:300:7047:1]:80
  44.               listen       [2067:f878:3:7:0:300:7047:2]:80
  45.                 server_name admin.shabi.in;
  46.                 index index.html index.htm index.php;
  47.                 root  /home/wwwroot;

  48.                 location ~ .*\.(php|php5)?$
  49.                         {
  50.                                 fastcgi_pass  unix:/tmp/php-cgi.sock;
  51.                                 fastcgi_index index.php;
  52.                                 include fcgi.conf;
  53.                         }

  54.                 location /status {
  55.                         stub_status on;
  56.                         access_log   off;
  57.                 }

  58.                 location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  59.                         {
  60.                                 expires      30d;
  61.                         }

  62.                 location ~ .*\.(js|css)?$
  63.                         {
  64.                                 expires      12h;
  65.                         }

  66.                 log_format  access  '$remote_addr - $remote_user [$time_local] "$request" '
  67.              '$status $body_bytes_sent "$http_referer" '
  68.              '"$http_user_agent" $http_x_forwarded_for';
  69.                 access_log  /home/wwwlogs/access.log  access;
  70.         }
  71. include vhost/*.conf;
  72. }
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2010-12-24 16:35:47 | 显示全部楼层

回复 1# 的帖子



把所有的listen 80都改成listen IP:80
/usr/local/nginx/conf/vhost/下面可能还有虚拟主机
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2010-12-24 17:16:11 | 显示全部楼层

我确定给每一个虚拟主机都添加了IP:80
只是只分配了一个IPV4而已。没有分配IPV6
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-17 03:26 , Processed in 0.027169 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表