


现在了解了。

等观察报告 

以出现这个问题了


原帖由 bluesky 于 2009-7-7 20:47 发表
偶是菜鳥不搞 nginx 了
等有一天, kloxo 把 nginx 納入體系時
也等於宣示 nginx 普及化,且穩定的時候
也不用擔心每日備份問題時,再來使用它
雖然可能等不到,雖然它強大,勸菜鳥們盡量別玩它
現在把玩它...只是把自己 ...

原帖由 bluesky 于 2009-7-7 20:47 发表
偶是菜鳥不搞 nginx 了
等有一天, kloxo 把 nginx 納入體系時
也等於宣示 nginx 普及化,且穩定的時候
也不用擔心每日備份問題時,再來使用它
雖然可能等不到,雖然它強大,勸菜鳥們盡量別玩它
現在把玩它...只是把自己 ...

原帖由 bluesky 于 2009-7-7 21:28 发表
使用 nginx 建置 Discuz 7 搞過了...也都ok
就卡在每日備份搞不定
nginx 偶不玩它了![]()
個人感覺 kloxo 比較好搞定柳![]()

原帖由 bluesky 于 2009-7-7 21:28 发表
使用 nginx 建置 Discuz 7 搞過了...也都ok
就卡在每日備份搞不定
nginx 偶不玩它了![]()
個人感覺 kloxo 比較好搞定柳![]()

原帖由 zyypp 于 2009-7-7 22:34 发表
每日备份 跟你用什么web服务软件有什么关系啊
不管你用的是 Nginx lighthttpd Apache Zeus IIS 还是其他什么 这到底有什么关系啊
备份方法不都一个样子吗
要么Copy 要么Export 要么打包 不都是一样吗 难道还有哪 ...




原帖由 zyypp 于 2009-7-7 22:38 发表
你有去追溯web的历史记录吗 看看 报告什么
还有会不会是因为你上次把连接数从51200改到5120 而你的访问量增大了 的问题啊
nginx 的 这个问题 真是头痛啊 哎 伤脑筋...
我遇见这个 错误一般都是 权限或者rewriter ...
Jul 07 19:10:07.491224 [NOTICE] fpm_children_make(), line 352: child 7420 (pool default) started
Jul 07 19:10:07.492720 [NOTICE] fpm_children_make(), line 352: child 7424 (pool default) started
Jul 07 19:10:07.492758 [NOTICE] fpm_event_loop(), line 107: libevent: entering main loop
Jul 07 19:10:07.492808 [WARNING] fpm_stdio_child_said(), line 167: child 7424 (pool default) said into stderr: "Jul 07 19:10:07.492074 [ERROR] fpm_unix_init_child(), line 168: setrlimit(RLIMIT_NOFILE) failed: Invalid argument (22)"
Jul 07 19:10:07.492837 [WARNING] fpm_stdio_child_said(), line 167: child 7420 (pool default) said into stderr: "Jul 07 19:10:07.492244 [ERROR] fpm_unix_init_child(), line 168: setrlimit(RLIMIT_NOFILE) failed: Invalid argument (22)"
Jul 07 19:10:07.492853 [WARNING] fpm_stdio_child_said(), line 167: child 7416 (pool default) said into stderr: "Jul 07 19:10:07.489701 [ERROR] fpm_unix_init_child(), line 168: setrlimit(RLIMIT_NOFILE) failed: Invalid argument (22)"
原帖由 zyypp 于 2009-7-7 23:29 发表
呵呵 3-4K的IP那日志真有的翻了 嘿嘿
看你贴出来的感觉 还是 你的 连接数不够用了的感觉
你在ssh下 用netstat -anpo | grep "php-cgi" | wc -l 看看回显的数字 和你设置的 值相近不 要是相尽 那么 你就加大
光加到 ...

原帖由 zyypp 于 2009-7-7 23:29 发表
呵呵 3-4K的IP那日志真有的翻了 嘿嘿
看你贴出来的感觉 还是 你的 连接数不够用了的感觉
你在ssh下 用netstat -anpo | grep "php-cgi" | wc -l 看看回显的数字 和你设置的 值相近不 要是相尽 那么 你就加大
光加到 ...


原帖由 zyypp 于 2009-7-8 14:09 发表
额 不是吧 你把 你安装php 和 nginx 的 几个配置文件都看过了?! 里面的路径都正确?! 那就真是郁闷了 为使么会出现 loop 循环呢 晕死 继续观察几天吧 不经就把 连接数加大
对了 你把 php_fpm 给 stop 了然后在 start ...
Jul 08 14:31:15.992258 [NOTICE] fpm_got_signal(), line 56: received SIGTERM
Jul 08 14:31:16.006651 [NOTICE] fpm_pctl(), line 256: switching to 'terminating' state
Jul 08 14:31:16.006693 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 7424 (pool default)
Jul 08 14:31:16.006705 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 7420 (pool default)
Jul 08 14:31:16.006778 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 7416 (pool default)
Jul 08 14:31:16.006787 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 7412 (pool default)
Jul 08 14:31:16.006796 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 7410 (pool default)
Jul 08 14:31:16.006805 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 7397 (pool default)
Jul 08 14:31:16.006814 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 7396 (pool default)
Jul 08 14:31:16.006822 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 7392 (pool default)
Jul 08 14:31:16.006838 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 7390 (pool default)
Jul 08 14:31:16.006852 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 7385 (pool default)
Jul 08 14:31:16.006866 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 7382 (pool default)
Jul 08 14:31:16.006878 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 7380 (pool default)
Jul 08 14:31:16.006890 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 7379 (pool default)
Jul 08 14:31:16.006902 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 7376 (pool default)
Jul 08 14:31:16.006913 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 7374 (pool default)
Jul 08 14:31:16.006922 [NOTICE] fpm_pctl_kill_all(), line 181: 15 children are still alive
Jul 08 14:31:16.010431 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jul 08 14:31:16.010507 [WARNING] fpm_children_bury(), line 215: child 7410 (pool default) exited on signal 15 SIGTERM after 69670.497132 seconds from start
Jul 08 14:31:16.010544 [WARNING] fpm_children_bury(), line 215: child 7416 (pool default) exited on signal 15 SIGTERM after 69670.495170 seconds from start
Jul 08 14:31:16.010576 [WARNING] fpm_children_bury(), line 215: child 7420 (pool default) exited on signal 15 SIGTERM after 69670.494043 seconds from start
Jul 08 14:31:16.013557 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jul 08 14:31:16.013603 [WARNING] fpm_children_bury(), line 215: child 7374 (pool default) exited on signal 15 SIGTERM after 69670.509218 seconds from start
Jul 08 14:31:16.013636 [WARNING] fpm_children_bury(), line 215: child 7382 (pool default) exited on signal 15 SIGTERM after 69670.506261 seconds from start
Jul 08 14:31:16.013667 [WARNING] fpm_children_bury(), line 215: child 7390 (pool default) exited on signal 15 SIGTERM after 69670.504241 seconds from start
Jul 08 14:31:16.013697 [WARNING] fpm_children_bury(), line 215: child 7392 (pool default) exited on signal 15 SIGTERM after 69670.503270 seconds from start
Jul 08 14:31:16.013727 [WARNING] fpm_children_bury(), line 215: child 7397 (pool default) exited on signal 15 SIGTERM after 69670.501338 seconds from start
Jul 08 14:31:16.014660 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jul 08 14:31:16.014703 [WARNING] fpm_children_bury(), line 215: child 7376 (pool default) exited on signal 15 SIGTERM after 69670.509556 seconds from start
Jul 08 14:31:16.014737 [WARNING] fpm_children_bury(), line 215: child 7412 (pool default) exited on signal 15 SIGTERM after 69670.500309 seconds from start
Jul 08 14:31:16.014770 [WARNING] fpm_children_bury(), line 215: child 7424 (pool default) exited on signal 15 SIGTERM after 69670.496731 seconds from start
Jul 08 14:31:16.016889 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jul 08 14:31:16.016942 [WARNING] fpm_children_bury(), line 215: child 7380 (pool default) exited on signal 15 SIGTERM after 69670.510550 seconds from start
Jul 08 14:31:16.016977 [WARNING] fpm_children_bury(), line 215: child 7385 (pool default) exited on signal 15 SIGTERM after 69670.508589 seconds from start
Jul 08 14:31:16.017197 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jul 08 14:31:16.017231 [WARNING] fpm_children_bury(), line 215: child 7379 (pool default) exited on signal 15 SIGTERM after 69670.511384 seconds from start
Jul 08 14:31:16.017441 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jul 08 14:31:16.017473 [WARNING] fpm_children_bury(), line 215: child 7396 (pool default) exited on signal 15 SIGTERM after 69670.506316 seconds from start
Jul 08 14:31:16.017486 [NOTICE] fpm_pctl_exit(), line 81: exiting, bye-bye!
Jul 08 14:31:25.774602 [NOTICE] fpm_unix_init_main(), line 284: getrlimit(nofile): max:51200, cur:51200
Jul 08 14:31:25.774859 [NOTICE] fpm_event_init_main(), line 88: libevent: using epoll
Jul 08 14:31:25.774948 [NOTICE] fpm_init(), line 52: fpm is running, pid 9700
Jul 08 14:31:25.775482 [NOTICE] fpm_children_make(), line 352: child 9701 (pool default) started
Jul 08 14:31:25.776172 [NOTICE] fpm_children_make(), line 352: child 9702 (pool default) started
Jul 08 14:31:25.776839 [NOTICE] fpm_children_make(), line 352: child 9703 (pool default) started
Jul 08 14:31:25.777382 [NOTICE] fpm_children_make(), line 352: child 9704 (pool default) started
Jul 08 14:31:25.778281 [NOTICE] fpm_children_make(), line 352: child 9705 (pool default) started
Jul 08 14:31:25.779200 [NOTICE] fpm_children_make(), line 352: child 9706 (pool default) started
Jul 08 14:31:25.779885 [NOTICE] fpm_children_make(), line 352: child 9707 (pool default) started
Jul 08 14:31:25.780388 [NOTICE] fpm_children_make(), line 352: child 9708 (pool default) started
Jul 08 14:31:25.781087 [NOTICE] fpm_children_make(), line 352: child 9709 (pool default) started
Jul 08 14:31:25.781421 [NOTICE] fpm_children_make(), line 352: child 9710 (pool default) started
Jul 08 14:31:25.782082 [NOTICE] fpm_children_make(), line 352: child 9711 (pool default) started
Jul 08 14:31:25.782372 [NOTICE] fpm_children_make(), line 352: child 9712 (pool default) started
Jul 08 14:31:25.783014 [NOTICE] fpm_children_make(), line 352: child 9713 (pool default) started
Jul 08 14:31:25.783392 [NOTICE] fpm_children_make(), line 352: child 9714 (pool default) started
Jul 08 14:31:25.784167 [NOTICE] fpm_children_make(), line 352: child 9715 (pool default) started
Jul 08 14:31:25.784218 [NOTICE] fpm_event_loop(), line 107: libevent: entering main loop
~


原帖由 gdtv 于 2009-7-8 14:33 发表
我是按照这里设置的http://blog.s135.com/nginx_php_v5/ 路径应该没有错吧,如果有错,应该是启动不起来,而不是偶尔才出问题吧
stop 了然后在 start,日志里有错误记录了:
不过还是启动成功了,网站可以访问 ...
原帖由 zyypp 于 2009-7-8 23:49 发表
我刚才 用我的 VPS 做了下试验
然后结合你的日志
这部分表示启动正常
第一行貌似是检查文件连接数的,第二行是说nginx中设置的运行级别 你的是 using epoll ,第三行是fpm启动并记录pid,下面就是启动你设定的pgp-cgi ...



原帖由 gdtv 于 2009-7-9 08:56 发表
zyypp好像没看到我的回复啊,再发一次
多谢你的详细分析啊
“而这个就是因为你的 连接数问题产生的了 还是继续加大” 这个连接数是指什么?在哪里修改?
“ulimit -u的回显数和php-fpm.conf中的rlimit_files值相同”? 不 ...

原帖由 zyypp 于 2009-7-11 16:03 发表
呵呵 潜了 几天水 出来透个气 嘿嘿
不知 gdtv 的问题解决了没有啊 呵呵
对了 C大 你怎么跑去用 Linode 的 VPS 了呢 而且还那么奢侈 只用Linode 360
真怀疑 内存够不 o(∩_∩)o...哈哈![]()
![]()
你的DS怎么了??![]()
...
原帖由 zyypp 于 2009-7-11 16:03 发表
呵呵 潜了 几天水 出来透个气 嘿嘿
不知 gdtv 的问题解决了没有啊 呵呵
对了 C大 你怎么跑去用 Linode 的 VPS 了呢 而且还那么奢侈 只用Linode 360
真怀疑 内存够不 o(∩_∩)o...哈哈![]()
![]()
你的DS怎么了??![]()
...







不出错了更好。



* soft nofile 65535
* hard nofile 65535
ulimit -SHn 51200
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
fastcgi_intercept_errors on;
# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;
<?xml version="1.0" ?>
<configuration>
All relative paths in this config are relative to php's install prefix
<section name="global_options">
Pid file
<value name="pid_file">/usr/local/webserver/php/logs/php-fpm.pid</value>
Error log file
<value name="error_log">/usr/local/webserver/php/logs/php-fpm.log</value>
Log level
<value name="log_level">notice</value>
When this amount of php processes exited with SIGSEGV or SIGBUS ...
<value name="emergency_restart_threshold">10</value>
... in a less than this interval of time, a graceful restart will be initiated.
Useful to work around accidental curruptions in accelerator's shared memory.
<value name="emergency_restart_interval">1m</value>
Time limit on waiting child's reaction on signals from master
<value name="process_control_timeout">5s</value>
Set to 'no' to debug fpm
<value name="daemonize">yes</value>
</section>
<workers>
<section name="pool">
Name of pool. Used in logs and stats.
<value name="name">default</value>
Address to accept fastcgi requests on.
Valid syntax is 'ip.ad.re.ss:port' or just 'port' or '/path/to/unix/socket'
<value name="listen_address">127.0.0.1:9000</value>
<value name="listen_options">
Set listen(2) backlog
<value name="backlog">-1</value>
Set permissions for unix socket, if one used.
In Linux read/write permissions must be set in order to allow connections from web server.
Many BSD-derrived systems allow connections regardless of permissions.
<value name="owner"></value>
<value name="group"></value>
<value name="mode">0666</value>
</value>
Additional php.ini defines, specific to this pool of workers.
<value name="php_defines">
<value name="sendmail_path">/usr/sbin/sendmail -t -i</value>
<value name="display_errors">1</value>
</value>
Unix user of processes
<value name="user">xxx</value>
Unix group of processes
<value name="group">xxx</value>
Process manager settings
<value name="pm">
Sets style of controling worker process count.
Valid values are 'static' and 'apache-like'
<value name="style">static</value>
Sets the limit on the number of simultaneous requests that will be served.
Equivalent to Apache MaxClients directive.
Equivalent to PHP_FCGI_CHILDREN environment in original php.fcgi
Used with any pm_style.
<value name="max_children">30</value>
Settings group for 'apache-like' pm style
<value name="apache_like">
Sets the number of server processes created on startup.
Used only when 'apache-like' pm_style is selected
<value name="StartServers">20</value>
Sets the desired minimum number of idle server processes.
Used only when 'apache-like' pm_style is selected
<value name="MinSpareServers">5</value>
Sets the desired maximum number of idle server processes.
Used only when 'apache-like' pm_style is selected
<value name="MaxSpareServers">35</value>
</value>
</value>
The timeout (in seconds) for serving a single request after which the worker process will be terminated
Should be used when 'max_execution_time' ini option does not stop script execution for some reason
'0s' means 'off'
<value name="request_terminate_timeout">0s</value>
The timeout (in seconds) for serving of single request after which a php backtrace will be dumped to slow.log file
'0s' means 'off'
<value name="request_slowlog_timeout">0s</value>
The log file for slow requests
<value name="slowlog">logs/slow.log</value>
Set open file desc rlimit
<value name="rlimit_files">51200</value>
Set max core size rlimit
<value name="rlimit_core">0</value>
Chroot to this directory at the start, absolute path
<value name="chroot"></value>
Chdir to this directory at the start, absolute path
<value name="chdir"></value>
Redirect workers' stdout and stderr into main error log.
If not set, they will be redirected to /dev/null, according to FastCGI specs
<value name="catch_workers_output">yes</value>
How much requests each process should execute before respawn.
Useful to work around memory leaks in 3rd party libraries.
For endless request processing please specify 0
Equivalent to PHP_FCGI_MAX_REQUESTS
<value name="max_requests">102400</value>
Comma separated list of ipv4 addresses of FastCGI clients that allowed to connect.
Equivalent to FCGI_WEB_SERVER_ADDRS environment in original php.fcgi (5.2.2+)
Makes sense only with AF_INET listening socket.
<value name="allowed_clients">127.0.0.1</value>
Pass environment variables like LD_LIBRARY_PATH
All $VARIABLEs are taken from current environment
<value name="environment">
<value name="HOSTNAME">$HOSTNAME</value>
<value name="PATH">/usr/local/bin:/usr/bin:/bin</value>
<value name="TMP">/tmp</value>
<value name="TMPDIR">/tmp</value>
<value name="TEMP">/tmp</value>
<value name="OSTYPE">$OSTYPE</value>
<value name="MACHTYPE">$MACHTYPE</value>
<value name="MALLOC_CHECK_">2</value>
</value>
</section>
</workers>
</configuration>
user xxx xxx;
worker_processes 4;
error_log /data1/logs/nginx_error.log crit;
pid /usr/local/webserver/nginx/nginx.pid;
#Specifies the value for maximum file descriptors that can be opened by this process.
worker_rlimit_nofile 51200;
events
{
use epoll;
worker_connections 51200;
}
http
{
include mime.types;
default_type application/octet-stream;
#charset gb2312;
server_names_hash_bucket_size 128;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;
client_max_body_size 8m;
sendfile on;
tcp_nopush on;
keepalive_timeout 60;
tcp_nodelay on;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffer_size 64k;
fastcgi_buffers 4 64k;
fastcgi_busy_buffers_size 128k;
fastcgi_temp_file_write_size 128k;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_types text/plain application/x-javascript text/css application/xml;
gzip_vary on;
#limit_zone crawler $binary_remote_addr 10m;
server
{
listen 80;
server_name a.com;
#index index.html index.htm index.php;
root /data0/htdocs/invalid_hostname;
location ~ .*\.(php|php5)?$
{
#fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
log_format invalid_hostname '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
access_log /data1/logs/web_invalid_hostname.log invalid_hostname;
}
server
{
listen 80;
server_name xxx.com www.xxx.com;
index index.html index.htm index.php;
root /data0/htdocs/xxxx;
#limit_conn crawler 20;
location / {
if (!-e $request_filename){
rewrite (.*) /index.php last;
}
}
location ~ .*\.(php|php5)?$
{
#fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 15d;
}
location ~ .*\.(js|css)?$
{
expires 1d;
}
log_format access '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
access_log /data1/logs/web_11.log access;
}
server
{
listen 80;
server_name status.xxx.com;
location / {
stub_status on;
access_log off;
}
}
}
# Example MySQL config file for large systems.
#
# This is for a large system with memory = 512M where the system runs mainly
# MySQL.
#
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is /usr/local/webserver/mysql/var) or
# ~/.my.cnf to set user-specific options.
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.
# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3306
socket = /tmp/mysql.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
user = mysql
port = 3306
socket = /tmp/mysql.sock
basedir = /usr/local/webserver/mysql
datadir = /data0/mysql/3306/data
skip-locking
key_buffer_size = 128M
max_allowed_packet = 1M
table_open_cache = 256
sort_buffer_size = 1M
join_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size= 16M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 8
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking
# Replication Master Server (default)
# binary logging is required for replication
log-bin=mysql-bin
# binary logging format - mixed recommended
binlog_format=mixed
# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id = 1
# Replication Slave (comment out master section to use this)
#
# To configure this host as a replication slave, you can choose between
# two methods :
#
# 1) Use the CHANGE MASTER TO command (fully described in our manual) -
# the syntax is:
#
# CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
# MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
#
# where you replace <host>, <user>, <password> by quoted strings and
# <port> by the master's port number (3306 by default).
#
# Example:
#
# CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
# MASTER_USER='joe', MASTER_PASSWORD='secret';
#
# OR
#
# 2) Set the variables below. However, in case you choose this method, then
# start replication for the first time (even unsuccessfully, for example
# if you mistyped the password in master-password and the slave fails to
# connect), the slave will create a master.info file, and any later
# change in this file to the variables' values below will be ignored and
# overridden by the content of the master.info file, unless you shutdown
# the slave server, delete master.info and restart the slaver server.
# For that reason, you may want to leave the lines below untouched
# (commented) and instead use CHANGE MASTER TO (see above)
#
# required unique id between 2 and 2^32 - 1
# (and different from the master)
# defaults to 2 if master-host is set
# but will not function as a slave if omitted
#server-id = 2
#
# The replication master for this slave - required
#master-host = <hostname>
#
# The username the slave will use for authentication when connecting
# to the master - required
#master-user = <username>
#
# The password the slave will authenticate with when connecting to
# the master - required
#master-password = <password>
#
# The port the master is listening on.
# optional - defaults to 3306
#master-port = <port>
#
# binary logging - not required for slaves, but recommended
#log-bin=mysql-bin
# Point the following paths to different dedicated disks
#tmpdir = /tmp/
#log-update = /path-to-dedicated-directory/hostname
# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /usr/local/webserver/mysql/var/
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /usr/local/webserver/mysql/var/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 256M
#innodb_additional_mem_pool_size = 20M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 64M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[myisamchk]
key_buffer_size = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
原帖由 gdtv 于 2009-7-11 20:32 发表
接上面
nginx.conf:
my.cnf:
完。
另外,http://blog.s135.com/nginx_php_v5/ 这里说"优化Linux内核参数 /etc/sysctl.conf 在末尾增加以下内容......",这个不能加,加了就出错 ...


)
多谢指教。原帖由 zyypp 于 2009-7-12 20:09 发表
刚把我自己的VPS重新编译完 呼呼 感觉这次重置后的效果比以前好多了 嘿嘿![]()
![]()
我看你的配置文件
php-fpm.conf
127.0.0.1:9000
这样子虽然在高并发下TCP方式稳定,但Socket速度要比TCP快...不知道你用TCP方式的 ...

| 欢迎光临 全球主机交流论坛 (https://mjj.022333.xyz/) | Powered by Discuz! X3.4 |