;Addroot /var/www/nginx-defaultThat is, root and SERVER_NAME are at the same level.This section is equivalent to the default directory of Apache. If this is not available, the system prompts "no input file specified" when executing the PHP file ". I found the problem only when I went around a large circle here.
Then modify#location ~ \.php$ {#fastcgi_pass 127.0.0.1:9000;#fastcgi_index index.php;#fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_na
Let's get started with the following command:
Ssh-n-d 9000-F root@host.com
Attribute explanation:
-D
This attribute is amazing. The key sentence is "and the application protocol is then used to determine where to connect to from the remote machine ", "Next, the application protocol will decide where to connect". The Application Protocol refers to TCP/UDP.
It is not just a simple port forwarding. When the data arrives at the server port, SSH will try
.[Root @ VM_185_51/] # cat/etc/php-fpm.d/www. conf | grep-I 'Listen ='Listen = 127.0.0.1: 9000(2) the default listening port configured for php-fpm is 9000. Now, you only need to modify the configuration and forward requests parsed by php to 127.0.0.0: 9000.Modify the nginx configuration by running the following command:[Root @ VM_185_51/] # vim/etc/nginx
you are a 64-bit system, add--with-libdir=lib64 after the parameters
If PHP does not require the support of curl and FTP, the above –with-curl–enable-ftp can be removed.
4. Configure PHP
CP php.ini-production/usr/local/php5/etc/php.inicp/usr/local/php5/etc/php-fpm.conf.default/usr/local/php5/etc/ Php-fpm.conf
5. Start PHP-FPM
/usr/local/php5/sbin/php-fpm
Execute the above command, if no error is normally said to start normal, if not at ease, can also be judged by the port is php no boot
#
The principle Attilax Summary of remote Debugging for atitit Web remoteThe JVM is the VM that opens a debug port, and then the IDE connects first: Then execute the URLandthe VM will communicate with the IDE . Phpof theXdebug Port 9000is inPhpstoremOpen the ... If you performURL, it will also startDebug.. Must be pre-connectedIDEand theApacheto be able to. UsePhpstormOpenDebug PageReady , pre-connected. And then justXdebugYou can contactIDEOpen the9000 Debug Portthe connection has been debugged.
; Fastcgi_pass 127.0.0.1:9000; }}The user accesses the index.php, which is matched to location ~ \.php$, which means matching the size of the resource that the user accesses through the URI, and the resource accessed ends in. php.Nginx according to the user requested resources match to the specific location, will perform location corresponding action, location in the meaning of the action is:Include/etc/nginx/fastcgi_params; #表示nginx会调用fastc
side creates a listener
ServerSocket = new ServerSocket KET (9000);
Listen for client connections, here we do not have multiple threads
socket socket = serversocket.accept ();
To obtain the content that the client sends over, it is necessary to get the input stream object of the InputStream class
InputStream InputStream = Socket.getinputstream ();
========== use our custom HTTP processing related clas
Demand:The preceding article is about using the same number of variables as the number of elements in the iterator data variable, but more of the time you do not want to define the corresponding number of variables based on the number of elements (n), but rather with fewer variables (
Def Drop_first_last (Grades):
def avg (my_list): Return
sum (my_list)/len (my_list) I
, *middle, last = Sorted (Grades) return
AVG (middle)
Of course, "star expression" can be in any location,
separately, and change them to the configuration shown below:
xdebug.profiler_enable=1
xdebug.profiler_output_dir= "C:\xampp\tmp"
xdebug.remote_enable=true
Xdebug.remote_host=localhost
xdebug.remote_port=9000
XDEBUG.REMOTE_HANDLER=DBGP
After restarting the Apache service, look again at phpinfo () to search for "xdebug support" and the parameters that have been enable,xdebug.remote_enable have been configured correctly to indicate that the configurat
that need to be processed are uploaded, so you can prepare to run the code. Specific operating methods are given in the Eclipse Configuration tutorial and are not described. Here's how to write the running parameters directly. The simplest way to find the file you need to work with in Eclipse DFS Locatios is to double-click on it to show the path to the file at the top of the Eclipse file preview, and MapReduce generally takes the entire folder as input. Fill in the Eclipse's entry with the add
10000 and 20000;SELECT Name,salary from the employee WHERE salary not between 10000 and 20000;The keyword is null (determining whether a field is null cannot be used as an equals sign, which is required):SELECT Name,post_comment from the employee WHERE post_comment is NULL;SELECT name,post_comment from employee WHERE post_comment are not NULL;SELECT name,post_comment from employee WHERE post_comment= '; Note ' is an empty string, NOT NULLPs:Execute update employee set post_comment= ' where id=2
, modify the index row, add index.phpIndex index.php index.html index.htm;8.3. Uncomment the following section to support PHP scripts:Location ~. php$ {Include/etc/nginx/fastcgi_params; #需放在第一行, or it will go wrongFastcgi_pass 127.0.0.1:9000;Fastcgi_index index.php;Fastcgi_param Script_filename/var/www/nginx-default$fastcgi_script_name;}
99. Re-start Nginx/etc/init.d/nginx stop/etc/init.d/nginx start
1010. Start fastcgi PHPSpawn-fcgi-a 127.
Tags: default port address store zookeeper not modified serve root error1, the situation described title, HBase started, after the hmaster process started, a few seconds after the automatic shutdown, but the hregionserver process normal operation;The reason is that the default port number for HDFs is 8020, and I core-site.xml the port in HDFs to 9000.//hadoop1:9000/ However, we did not specify the port for
prompts "No input file specified" when executing the php file ".I found the problem only after a large circle. Then I modified it.
123456
# Location ~ . Php $ {# Fastcgi_pass 127.0.0.1: 9000;# Fastcgi_index index. php;# Fastcgi_param SCRIPT_FILENAME/scripts $ fastcgi_script_name;# Define defastcgi_params;#}
Modify
1234
Location ~ . Php $ {Fastcgi_pass 127.0.0.1: 9000;Fastcg
original author addresshttp://forums.cacti.net/viewtopic.php?f=12t=41580After I downloaded this template and tried it, I found it was not so easy to use, and needed support from modules like Fcgi::client and Lwp::useragent in Perl, which would be a headache for people unfamiliar with Perl and CPAN. This script in the Perl language also has security implications because he uses fcgi: CLIENT.PM module to directly access the PHP-FPM 9000 port, which req
In Linux, Nginx logs are regularly cut and logs generated several days ago are deleted.
Nginx logs are classified into access logs. log and error. log, where access. log records users, pages, user browsers, ip addresses, and other access information. error. log records server error logs.
The error. log format is as follows:201.158.69.116--[03/Jan/2013: 21: 17: 20-0600] fwf [-] tip [-] 127.0.0.1: 9000 0.007 MX pythontab.com GET/html/test.html HTTP/0.00
See bbsbbs. csdn. under the normal configuration of nettopics390803643close, the php-cgi of window does not have multi-thread sub-processes. The following configuration is fastcgi_pass127.0.0.1: 9000. This means that when two php files request resolution at the same time, blocking processing will occur, and the processing time will be. phpb. php, not parallel
See bbs http://bbs.csdn.net/topics/390803643/close normal configuration, window of php-cgi is
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.