Php
Download PHP 5.6 (VC11 x86 Non Thread Safe), unzip to any directory, copy the file php.ini-development and rename it to PHP.ini.
I did not modify the contents of the php.ini file, and the following test passed. If you want to change later, you can refer to http://php.net/manual/zh/install.windows.manual.php
Nginx
Download Nginx 1.80, unzip any directory. Open its configuration file conf/nginx.conf find the following paragraph:
#location ~ \.php$ {##}
Delete the previous # and put it in the
decimal and mixed repeating decimal have differences in the formula of fractions, but theoretically x 10∧ (a+c)-x 10∧a applies to all circular decimals. Because Infinite does not repeating decimal (irrational number) No male ratio, so infinite not repeating decimal (irrational number) can not be converted into fractional form, that can not be expressed as the form of n/m, ....Set Formula Method Editor Pure CycleWith 9 to do the denominator, there are several cycles of 9, such as 0.3, 3 of the c
Changing the grails default server portChange grails default service port
Run the grails application from the command lineProgramFor example, when grails run-app is used, it runs on port 8080 by default. However, when port 8080 of the server is occupied by other applications, an error is reported:
Server failed to start: lifecycleexception: protocol handler initialization failed: java.net. bindexception: address already in use: jvm_bind
There are several methods to change the grails appli
PackageCn.itcast.bigdata.hdfs;ImportJava.net.URI;ImportJava.util.Iterator;ImportJava.util.Map.Entry;Importorg.apache.hadoop.conf.Configuration;ImportOrg.apache.hadoop.fs.FileStatus;ImportOrg.apache.hadoop.fs.FileSystem;ImportOrg.apache.hadoop.fs.LocatedFileStatus;ImportOrg.apache.hadoop.fs.Path;ImportOrg.apache.hadoop.fs.RemoteIterator;ImportOrg.junit.Before;Importorg.junit.Test;/*** * Client to operate HDFS, there is a user identity * By default, the HDFs client API obtains a parameter from the
, configure the FPM related options for the value you need, and enable the PID file (the last line below):
# vim/usr/local/php/etc/php-fpm.conf
Listen = 192.168.100.114:9000
Pm.max_children = # # # #静态方式下开启的php number of-FPM processes
Pm.start_servers = 5 # # #动态方式下的起始php number of-FPM processes
Pm.min_spare_servers = 2 # # #动态方式下的最小php number of-FPM processes
Pm.max_spare_servers = 8 # # #动态方式下的最大php number of-FPM processes
PID =/usr/lo
Contents of this issue:1. Flume on HDFs case review2. Flume push data to spark streaming combat3. Analysis of principle drawing1. Flume on HDFS case ReviewThe last lesson required everyone to install the configuration flume, and test the transmission of data. I was asked to teleport on HDFs yesterday.File configuration:~/.BASHRC:Export Flume_home=/usr/local/flume/apache-flume-1.6.0-binExport flume_conf_dir= $FLUME _home/confPath added: ${flume_home}/bin;Copy conf/flume-conf.properties.template,
socket C/S architecture, s server, C client:socker_server.py#!/usr/bin/env python#-*-coding:utf-8-*-import socketip_add= (' 127.0.0.1 ', 9000) s = Socket.socket () # Create socket Object S.bind (ip_add) # bound IP and port must be tuple S.listen (5) # Set the number of connection pool hangs while True: conn,addr = s.accept () # Accept client connections, Conn is an electrical signal from the Client connection server, addr
: https://bugs.debian.org/773332 # # Read up on ssl_ciphers to ensure a secure configuration. # See: https://bugs.debian.org/765782 # # Self signed certs generated by the ssl-cert package # Don't use them in a production server! # # include snippets/snakeoil.conf; root /var/www/html; # Add index.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html; server_name _; location / { # First attempt to serve request as file, then # as directory, then fall back to displ
, and rename it nginx. Next, configure nginx to work with php. Go to the nginx conf directory, open the nginx configuration file 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;
Continue searching and 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:
/naxsi.rules}location /doc/ {alias /usr/share/doc/;autoindex on;allow 127.0.0.1;allow ::1;deny all;}# Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests#location /RequestDenied {#proxy_pass http://127.0.0.1:8080; #}#error_page 404 /404.html;# redirect server error pages to the static page /50x.html##error_page 500 502 503 504 /50x.html;#location = /50x.html {#root /usr/share/nginx/www;#}# pass the PHP scripts to FastCGI server listening on 127.0.0.1:
Nginx "virtual directory" does not support PHP workaround
These days in the configuration nginx,php with fastcgi, want to install a phpMyAdmin management database, phpMyAdmin do not want to put in the root directory of the site, so it is not easy to mix with the site application, so phpMyAdmin directory is placed elsewhere, in Apache, There is alias, more convenient, there is no virtual directory under Nginx concept, is using location with alias use, I first tried a simple configuration method
10.0.1.2. The HTTP protocol is used and the port is 80. IDE is on a machine with the IP address 10.0.1.42,Xdebug. remote_hostSet to 10.0.1.42 The IDE listens to Port 9000. Therefore,Xdebug. remote_portSet to 9000 The HTTP request is initiated from the server running the IDE. Connect Xdebug to 10.0.1.42: 9000 Start Debugging and return an HTTP resp
This article describes the deployment of a PHP application system in the kubernetes environment. The front-end Web uses nginx, middleware PHP to run in fastcgi way, the background database is supported by MySQL master and slave.Calls between service components take the form of DNS resolution service names, and data and configuration files are persisted using PV and PVC (based on NFS).First, create a PHP image file via Dockerfile# cat dockerfile FROM docker.io/openshift/base-centos7:latestMAINTAI
= 5Pm.min_spare_servers = 2Pm.max_spare_servers = 8PID =/usr/local/php5/var/run/php-fpm.pid650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/19/wKioL1YT4j3TNx8DAABWmFk6MIo965.jpg "style=" float: none; "title=" 17.png "alt=" Wkiol1yt4j3tnx8daabwmfk6mio965.jpg "/>The next step is to start php-fpm:# service PHP-FPM StartBy default, FPM listens on port 9000 of 127.0.0.1, and can also use the following command to verify that it is already list
", and iscsi01 just the opposite. That is, the iscsi01 Vmkernel is bound to the VMNIC2 physical network card, and Iscsi02 's vmkernel is bound to the VMNIC5 physical network card 650) this.width=650; "Style=" border-bottom:0px; border-left:0px; border-top:0px; border-right:0px "title=" clip_image017 "border=" 0 "alt=" clip_image017 "src=" http://s3.51cto.com/wyfs02/M00/58/43/ Wkiom1ss9ycg8yajaahfdusmlw8356.jpg "" 461 "height=" 569 "/> 19. Select "VSwitch" and select "Edit" 650) this.width=650; "
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.