Error code:
PHP warning:mysql_connect () [Function.mysql-connect]: in E:\ website \weixinpublic\connectdb.php on line 6
PHP warning:mysql_query () [Function.mysql-query]: [2002] Unable to connect because the target computer was actively rejected.
(
Nginx Error Connect () failed (111:connection refused) while connecting to upstream workaround, Nginxupstream
Today's visit to the company's website suddenly error, throw some English, prompted to see the Nginx error.log
Use the Yum installed PHP-FPM, always throw the wrong time:
Connect () failed (111:connection refused) while connecting to upstream, client:127.0.0.1, Server:localhost
Appears to be nginx not even to PHP-FPM, find to find out, found is the problem
The problem has been going on for two days and it's finally settled.
Problem:
Using PHP to construct an HTTP request to access its own Web server page, always report connection refused (111) error. Showing: Unable to connect to 127.0.0.1:80
After a mysql upgrade, mysql on the development machine is upgraded to mysql 5.6. As a result, the following exception is reported when the mysql server of some earlier versions is connected:Warning: mysql_connect (): Connection using old (pre-4.1.1)
An error occurred while connecting to mysql in php. the error code cannot be connected due to the rejection of the target computer:
PHP Warning: mysql_connect () [function. mysql-connect]: in E: \ website \ weixinpublic \ connectdb. php on line
In apache, PHP can be called using the php5_module module. In nginx, php-fpm is required. What are the differences between the two call methods? What are their relationships with cgi and fastcgi? In apache, PHP can be called using the php5_module
With the common use of PHP scripting language, the current Webserice services are mostly in the structure of nginx+ (PHP-FPM), understand the work process before they can do in all aspects of the adjustment optimization and troubleshooting, from the
In linux, php is used for socket programming and a connection rejection error is reported. please refer to the following link for details: 57 editing I was just getting started with Linux and php and socket (haha ....), I found some information on
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.