@foxmail.comServerName www.hello.comServerAlias hello.comProxyRequests Off
Order deny,allow Allow from all
ProxyPass / http://localhost:2386/ max=20 ttl=120 retry=300ProxyPassReverse / http://localhost:2386/ErrorLog "/usr/local/apache/logs/proxy_error.log"
After adding the above site, all my requests were forwarded to the ghost site, that is, www.hello.com/wechat/wx.php was also forwarded to the http://localhost:2386/, prompted to find the page 404
server {root /srv/www;location / { index index.html index.htm; }location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME /src/www$fastcgi_script_name; include fastcgi_params; }}
In the directory/srv/www there are index.html index.php two files, Access localhost/index.html, localhost to display the normal/srv/www/ Index.html the contents of the page, but accessing
Tags: des style blog HTTP color ar OS use1. Consumption transactions
The consumption transaction allows the cardholder to use the remaining amount of the electronic passbook or wallet for shopping or obtaining services.Features:1) -- can be performed offline at the point of sale terminal (POS)2) -- the personal identification code (PIN) must be submitted for consumption transactions using the electronic passbook.Steps:1) -- consumer test Compound Application consumption transaction
Cpureset () J
1. Consumption transactions
A consumption transaction allows the cardholder to use the balance of the electronic passbook or wallet for shopping or obtaining services.Features:1) -- it can be performed offline on the POS terminal.2) -- the personal identification code (PIN) must be submitted for consumption transactions using the electronic passbook.Steps:1) -- see consumer transactions for composite applications
Cpureset () Je = 00000001 // consumption amount dpk = 00000000000000000000000000000
, then memcache should also select the corresponding version of dll 5. after a normal environment is set up, there should be at least three processes, with ports 80 for nginx, 11211 for memcache, and 9000 for php-cgi 6. when determining multiple domain names, renew one copy/wnmp/_ conf /?. Conf, and then perform restart. After the restart is completed, restart Nginx or reload. when you add a website, you cannot use "\" for the resource. For example, D
ED/EP Series 5-consumption commands and edep series commands1. Consumption transactions
A consumption transaction allows the cardholder to use the balance of the electronic passbook or wallet for shopping or obtaining services.Features:1) -- it can be performed offline on the POS terminal.2) -- the personal identification code (PIN) must be submitted for consumption transactions using the electronic passbook.Steps:1) -- see consumer transactions for composite applications
CPURESET () JE = 000000
:
1
php-cgi -b 127.0.0.1:9000
PHP-CGI Deficiency
1. After PHP-CGI changes the php. ini configuration, restart PHP-CGI to make the new PHP-ini take effect.
2. directly kill the PHP-CGI process, and PHP cannot run. (PHP-FPM and spawn-fcgi don't have this problem, and the daemon will smoothly generate new sub-processes .)
What is PHP-FPM
PHP-FPM is a PHP FastCGI manager that is only used for PHP and can be downloaded at http://php-f
):
Server {......} The nginx HTTP service port (80 by default), domain name, Character Set, root folder, home page file, and so on.
The following section configures nginx to integrate with PHP in FastCGI mode, and "C:/nginx-0.8.38/html" indicates the root folder of the website:
Location ~ /. Php $ {# Root HTML;Fastcgi_pass 127.0.0.1: 9000;Fastcgi_index index. php;Fastcgi_param script_filename C: // nginx-0.8.38/html $ fastcgi_script_name;Include fast
static void main (string [] ARGs)
{
Try {
Socket clientsocket = new socket ("mice", 9000); // create a stream socket and connect it to port 9000 on the host mice
Outputstream output = clientsocket. getoutputstream (); // write an output stream of bytes to this socket
Datainputstream input = new datainputstream (clientsocket. getinputstream ());
File: // create a new data input stream to read data from the
Nignx Specifies which PHP to use depends on which PHP php-fpm is ReasonBecause Nginx is the default listener is the 127.0.0.1:9000 port, the default 9000 port has been occupied by the previous PHP 1. set different port numbers for different php-fpm, with address port number as parameter at Fastcgi_pass2.fastcgi_pass directly with the socket connection, just change the path Solutions 1Because Nginx is the
URL is: http://192.168.60.198:9000 (this IP is my virtual machine external access IP, within the virtual machine can be http://localhost : 9000 access, because the external operation convenient so I used to use external address access, the same as the default administrator account is: Admin/admin. The following is the post-boot interface:650) this.width=650; "title=" Sonarqube03_init_index.png "src=" https
whether to load in the configuration file. As a result, Nginx also has a higher speed than Apache in terms of loading the module.
That Nginx is how to invoke PHP. Let's look at the configuration of PHP in the nginx below something
Shell
Location ~ \.php$ {
root /webpath;
Fastcgi_pass 127.0.0.1:9000;
... ...
}
This location instruction takes PHP as the file suffix of the request to 127.0.0
automatically generate the appropriate classes based on the template.You can also use import to introduce views.html.index instead of using the complete classpath.
@ (message:string,dong:string) indicates that this page accepts two parameters message and Dong are all String. @dong Call Parameters
Note: Add comments to @* *@Due to the special function of @, @@. Required in order to display the "@" character in the template.
@ (message:string,dong:string)
2. Modify the routes file to add your ow
lines There is the following code:# Pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000# #location ~ \.php$ {#root NB sp;html;#fastcgi_pass127.0.0.1:9000;#fastcgi _indexindex.php;#fastcgi_paramscript_filename/ scripts$fastcgi_script_name;#include fastcgi_params;#} Modify it to: # Pass the PHP scripts to fastcgi server listening on 127.0.0.1:9000#l
SqlContextVal SqlContext =NewSqlContext (SC)//Create an RDD from a specified addressVal Linerdd = Sc.textfile ("hdfs://192.168.19.131:9000/person.tzt"). Map (_.split (","))
//Create case Class//associating an RDD with a case classVal Personrdd = linerdd.map (x = = person (x (0). ToInt, X (1), X (2). ToInt))//Import implicit conversions, if not import cannot convert Rdd to Dataframe//convert Rdd to Dataframe
Importsqlcontext.implicits._ Val p
file is nginx. conf In the conf folder.
1. Modify it by about 43rd ~ Between 45 rows
location /{ root html; index index.html index.htm;}
Modify the path of the website file and add the hosts page of index. php.
location / { root D:/wnmp/nginx-1.5.8/html; index index.html index.htm inde.php; }
2. Support for php settings
Modify
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:
1. Pass
The core-site.xml configuration file is configured.
Configuration item: hadoop. tmp. dir indicates the directory location where metadata is stored on the named node. For data nodes, the directory where file data is stored on the node.
Configuration item: FS. default. name indicates the IP address and port number. The default value is file: //. For Java APIs, the configured URL address must be used to connect to HDFS. For data nodes, the data node uses this URL to access the named node.
Tax initiation: 3000
SQL codeCreate or replace function tax (v_salary in number) return number isV_expense number;-- Deduction for quick calculation at this level = maximum income at the upper level × (current tax rate-higher tax rate) + deduction for quick calculation at the upper levelV_quick_deduction number: = 0;V_temp number;BeginV_temp: = Vanderbilt salary-3000;If v_temp = 1500 thenV_temp: = v_temp * 0.05;Elsif v_temp> 1500 and v_temp V_temp: = v_temp * 0.1;V_quick_deduction: = 1500 * (0.1
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.