1.在ubuntu下安装配置nginx, mysql, php 安装步骤: 参考:https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-12-04# 具体摘抄如下: About Lemp LEMP stack is a group of open source software to get web servers up and runn…
访问网站时出现如下错误,如下图: 检查php fastcgi进程数,如下图: 输出0则表示fastcgi进程数够大,修改scgi_params文件,如下图: 然后重启php-fpm和nginx,重新访问即可正常访问.…
现象: PHP查询数据库较慢,大约 60s 后 nginx 返回 504:Sorry, the page you are looking for is currently unavailable. 检查log: 从 /etc/nginx/nginx.conf 找到 /var/log/nginx/access.log 和 /var/log/nginx/error.log log 显示 upstream timed out (110: Connection timed out) while read…
刚装完 PHP.Nginx,准备跑下 phpMyAdmin 程序,结果报以下错误: An error occurred. Sorry, the page you are looking for is currently unavailable. Please try again later. If you are the system administrator of this resource then you should check theerror log for details. Fa…
layout: post title: [DEBUG] QAT Nginx for docker 部署时"--with-ld-opt"出错 subtitle: 记一次debug经历 tags: [debug, linux] comments: true [DEBUG] QAT Nginx for docker 部署时"--with-ld-opt"出错 在将 Openssl + QAT + async-mode-nginx 部署至docker的container中时,…
在测试服务器还原生产服务器的一个数据库时遇到了下面错误: System.Data.SqlClient.SqlError: RESTORE detected an error on page (0:0) in database "xxxx" as read from the backup set. (Microsoft.SqlServer.SmoExtended) 对数据库备份进行验证(Verfify Backup Media)时,报如下错误:Backup media verificat…
nginx + fastcgi(fpm) 压力测试: CentOS release 5.9 16核12G内存 静态页面: 并发1000,压测200秒,测试结果: 系统最大负载5.47 成功响应: 2563065, 502:0, 失败:0 PHP页面(对mysql进行一次带索引的查询,数据库记录500条): 并发1000,压测200秒,测试结果: 系统最大负载15.66 成功响应: 114368, 502:712, 失败:58715 并发200,压测200秒,测试结果: 系统最大负载25.81 成…
在IE中经常使用A标签用来迁移,正确的写法是 <a href="001.html"></a>即可,不过在chrome上面可能会引发错误无法迁移. 比如用下面这种写法的时候: <a href="001.html" data-role="button" data-mini="true"      data-icon="camera" data-iconpos="left&…
使用jquery mobile创建dialog时出现加载错误,“Error Loading Page”. 原因是:jquery mobile页面默认采用ajax方式进行交互,而ajax方式下是不支持f://的,也就是本地文件,所以有两种解决办法: 1.给超链接增加data-ajax="false"属性或者加上 rel="external"就好了,以此来禁用ajax. <a href="html/main.html" data-role=&q…
今天一个数据库损坏了,不管对 该表 查询.修改.添加 都会出错, 错误信息如下: I/O error (bad page ID) detected during read at offset 0x0000000171a000 in file “路径\文件”    连接中断 导致错误的可能性有:     1:服务器在正常运行的情况下突然断电,导致数据库文件损坏.     2:对某设备进行读或写请求时遇到 I/O 错误.该错误通常表明磁盘问题. 但对于以上问题都是无法避免的,庆幸的时,网上找到了解决…
网络上有很多关于如何配置 Nginx + FPM 的文章,但它们更多从操作的角度出发,告诉我们怎么做,但却没有告诉我们为什么要这么做,本文从 Nginx 与 FPM 的工作机制出发,探讨配置背后的原理,让我们真正理解 Nginx 与 PHP 是如何协同工作的.要说 Nginx 与 PHP 是如何协同工作的,首先得说 CGI (Common Gateway Interface) 和 FastCGI 这两个协议. CGI 是 Web Server 与后台语言交互的协议,有了这个协议,开发者可以使用任…
ubuntu安装nginx时提示error: the HTTP rewrite module requires the PCRE library 须要安装pcre包. sudo apt-get update sudo apt-get install libpcre3 libpcre3-dev 你可能还须要安装 sudo apt-get install openssl libssl-dev…
先说说本人的开发环境:Win7 + Editplus + VMware(Centos+Samba+Nginx).用Samba在Centos上把web文件夹(如www)共享,然后在Win7上訪问这个文件夹. 之所以这么用的原因有: 习惯了Windows.效率比較高 Editplus编辑器好用,相对于vi系列来说 代码測试环境和服务器执行环境无差异 用了这么些年,事实上有个小问题一直困扰着我.在Win7下改动了某个.html文件.比方test.html .然后通过http://vm/test.htm…
问题1:Cannot run program "/bin/ls": error=11, Resource temporarily unavailable 1 15/04/22 14:46:46 INFO mapred.JobClient: Task Id : attempt_201504221017_0006_r_000077_0, Status : FAILED 2 java.lang.RuntimeException: Error while running command to…
TNS-12518: TNS:listener could not hand off client connection TNS-12536: TNS:operation would block  TNS-12560: TNS:protocol adapter error   TNS-00506: Operation would block    Linux Error: 11: Resource temporarily unavailable It turns out the Linux Er…
问题: Linux下重启mysql: systemctl restart mysqld 出现以下错误: Error getting authority: Error initializing authority: Could not connect: Resource temporarily unavailable (g-io-error-quark, 27) 解决方法: wget https://copr.fedorainfracloud.org/coprs/jsynacek/systemd-…
查看了进程, nginx, php-fpm都在运行, 排除程序错误, 那么就是配置的问题了. 一个可能的错误, 是由于配置中的 fastcgi_pass 配置错了 错误的配置如下 server { listen 80; server_name localhost; #charset koi8-r; #access_log /var/log/nginx/log/host.access.log main; location ~ \.php$ { root /usr/share/nginx/html;…
CodeIgniter的配置: worker_processes ; events { worker_connections ; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout ; fastcgi_connect_timeout 300s; fastcgi_send_timeout 300s; fastcgi_read_timeout 300s;…
在centos5.7 32位上编译安照 nginx-1.1.16 出错 [root@localhost conf]# /usr/local/nginx/sbin/nginx/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 从错误看出是缺少lib文件导致,进一步查看下 [r…
[root@localhost conf]# /usr/local/nginx/sbin/nginx/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 从错误看出是缺少lib文件导致,进一步查看下 [root@localhost conf]# ldd $(which /us…
FATAL ERROR in native method:JDWP No transports initialized,jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) ERROR: transport error 202: connect failed:Connection timed out ERROR: JDWP Transport dt_socket failed toinitialize, TRANSPORT_INIT(510) JDWP exit…
1 # /usr/local/nginx/sbin/nginx 2 /usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 从错误提示信息可以得知是因为缺少lib文件导致,进一步查看具体内容: 1 # ldd $(which /usr/local/nginx/sbin/ngin…
今天测试的时候,启动一个其他机器预编译好的nginx到目标测试机器(OEL 7.4)启动的时候,报了下列错误: /usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory 经查,OEL 7.4版本下/lib64下没有libpcre.so.0这个共享库,故创建一个到libpcre.s…
一. nginx编译参数 监控nginx,主要讲解监控并发数 --prefix=/usr/local/nginx --with-http_stub_status_module zabbix编译参数的查看: /usr/local/nginx/sbin/nginx -V nginx version: nginx/ built by gcc (Red Hat -) (GCC) built with OpenSSL Feb TLS SNI support enabled configure argume…
1 编译安装nginx提示如下 ./configure: error: C compiler cc is not found 2 解决办法 yum -y install gcc gcc-c++ autoconf automake make…
502 和 php-fpm.conf 1.php-cgi进程数不够用.php执行时间长,导致没有空闲进程处理新请求. 2.php-cgi进程死掉.php-fpm超时时间短,当前进程执行超时关闭连接. 实例: 1.request_terminate_timeout引起的资源问题 request_terminate_timeout默认值为 0 秒,也就是说,PHP 脚本会一直执行下去. php.ini 里面max_execution_time 可以设置 PHP 脚本的最大执行时间,但是,reques…
解决: 服务没有启动 使用start启动服务,因为没有start而直接使用stop或者reload报错这个问题: 如果方法一没有解决,使用方法二:-C 指定配置文件nginx.conf或者weblua.conf…
使用 WebView 组件,loading的过程中出现这个错误. 解决方案: webVIew 里面加 renderError={ (e) => { if (e === 'WebKitErrorDomain') { return } } } 参考:https://github.com/facebook/react-native/issues/9037 React native ERROR Packager can't listen on port 8081 这个问题,其实就是端口和正在运行的程序的…
CentOS 7 下 安装 nginx 执行配置命令 ./configure 时提示以下错误: 解决: 执行以下命令: yum -y install gcc gcc-c++ autoconf automake make   上述安装成功后在尝试安装 显示安装成功…
可能是标红目录层级不一致 location / { root /var/www/html/public; index index.php; } location ~ \.php$ { root /var/www/html/public; fastcgi_pass fpm:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_p…