-c parameter is specified for his php.ini parameter (must not be able to modify his php.ini file later) (Lsof-i : 9000 can view 9000 port occupancy details on the net said that the next plus start is not possible (may be the previous version of it)
Vim/etc/rc.localAt the end of this file, add the following statement:/usr/local/php/sbin/php-fpm-c/usr/local/php/etc/php.ini Here you have to start the service
Objective
These days in order to familiarize yourself with the vue.js framework and the use of Webpack, you are ready to build a simple Web application that publishes and browses Markdwon. Originally wanted to use bash scripts and BusyBox httpd as a background service, but bash script parsing and generation of JSON is very inconvenient, and in the Java language and feel that deployment is not convenient, so think of the use of node. js, so there is this blog post. (At the end of this article is
in the data that other users are accessing.4) Persistence: Once a transaction is committed, its modifications are persisted to the database, and should not have any effect even if the database fails.The persistence of a transaction cannot be 100% durable and can only be guaranteed to be permanent from the perspective of the transaction itself, while some external causes cause the database to fail, such as a hard disk corruption, and all committed data may be lost.1.2.1.2.1 The method of opening
index.htm index.php, which indicates support for more types of default home page;In the #65-#71行, remove the previous well number, indicating that the configuration takes effect, instead: root C:\Server\localhost;Fastcgi_pass 127.0.0.1:9000;Include fastcgi.conf;Where Root is the Web site root directory, and #44 line configuration, fastcgi_pass php bound port, the following will be introduced;On the #32 line, add fastcgi_intercept_errors on, indicati
/etc/php. ini# Mv/usr/local/php/etc/php-fpm.conf.default/usr/local/php/etc/php-fpm.conf // otherwise the following startup php-fpm will report an error and cannot find the php-fpm.conf File
Next we will start PHP-FPM#/Usr/local/php/sbin/php-fpm-c/usr/local/php/etc/php. ini // If the-c parameter is not added, specify its php. ini parameter (it must not be modified later. INI file) (lsof-I: 9000 can be used to view port
(conf); // the specified file system address URI uri = new URI ("hdfs: // hy: 9000 "); // return the specified file system // if the test is performed locally, you need to use this method to obtain the file system FileSystem fs = FileSystem. get (uri, conf); return fs;}/*** create a file directory * @ throws Exception */public static void mkdir () throws Exception {// obtain the file system FileSystem fs = getFileSystem (); // create a file directory
nginx. conf, and find
Location/{root html; # Here is the site's root directory index index.html index.htm ;}
Change root html; to root D:/wnmp/www; add index. php, that is:
Location/{root D:/wnmp/www; # Here is the index. php index.html index.htm ;}
Note that the path separator must be/instead of the \ in Windows to prevent ambiguity.Next, find
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000##location ~ \.php$ {# root html;#
index index.html index.htm ;}
Change root html; To root D:/wnmp/www;
Next, find
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000##location ~ \.php$ {# root html;# fastcgi_pass 127.0.0.1:9000;# fastcgi_index index.php;# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;# include fastcgi_params;#}
First remove "#" And change root html; To
43rd to 45th lineLocation/{ root html; Index index.html index.htm;}Modify the path to the Web site file, and add the default page for index.php.Location/{ root d:/wnmp/nginx-1.5.8/html; Index index.html index.htm inde.php; }2. Support for PHP settingsModified about the 第63-71 line.# Pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # #location ~ \.php$ { #
classes (with warnings).
Simple introduction and use of 1.Pickle• A brief description of the following:A. The data structure of the dictionary is stored in memory, saved as a file is not recognized, if you want to save, and in the next open can also be used, need to do pickle serialization storage;B. Need to deserialize when reading;C.pickle can save the progress of the execution of the program;• Give instance 1:pickle save only one StateA. Storage serialization#!/usr/bin/env Pythonimport
: This article describes how to install and configure PHP56 + Nginx18. For more information about PHP tutorials, see. PHP
Download PHP 5.6 (VC11 x86 Non Thread Safe), decompress it to any Directory, copy the file php. ini-development, and rename it php. ini.
I have not modified the content of the php. ini file, and the tests later passed. If you want to change it later, you can refer to the http://php.net/manual/zh/install.windows.manual.php
Nginx
Download Nginx 1.80 and decompress any director
/extensions/no-debug-non-zts-20131226/xdebug.soxdebug.remote_ Enable=1remote_handler=dbgpxdebug.remote_host=localhostxdebug.remote_port=9000xdebug.idekey=xdebug
Note: CLI environment PHP with FPM PHP whether to use different php.ini configuration files, need to configure FPM corresponding to the php.ini
Check that the configuration is correct
Map Remote (FPM host 10.99.1.185) port 9000 to local Port 9000:
Take TOMCAT7 as an example:1. Tomcat launched as a Windows service, double-click the Tomcat installation directory under Tomcat7w.exe, and under Java-java options, add configuration parameters:-dcom.sun.management.jmxremote-dcom.sun.management.jmxremote.port=9000-dcom.sun.management.jmxremote.ssl=false-dcom.sun.management.jmxremote.authenticate=falseTo start the Tomcat service, you can use the Jconsole.exe or Jvisualvm.exe in the Jdk/bin directory to
43rd to 45th line Location/{ root html; Index index.html index.htm;}Modify the path to the Web site file, and add the default page for index.php. Location/{ root d:/wnmp/nginx-1.5.8/html; Index index.html index.htm inde.php; }2. Support for PHP settingsModified about the 第63-71 line. # Pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # #l
@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
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.