machine to do proxy, external direct access to proxy is equivalent to access to target ②IDC target machine of a special Web service run on an abnormal port such as 9000 , and the firewall is only open to 80, at this time can be done on 80 proxy mapping to 9000, external access 80 is equivalent to 9000 simple as in this example, the machine 192.168.0.114 is our r
MySQL:sudo apt-get install php5-cli php5-cgi mysql-server php5-mysqlInstalling fastcgisudo apt-get install PHP5-FPMConfigure NginxModify Nginx configuration file:/etc/nginx/sites-available/default Modify host Nameserver_name localhost;Modify the row of index to:Index index.php index.html index.htm;Remove the comments from the following section to support the PHP script:Location ~ \.php$ {include/etc/nginx/fastcgi_params; #需放在第一行, otherwise there will be an error fastcgi_pass 127.0.0.1:
mirror provided by the teacher in Docker:
Command for docker run -it -p 9001:9000 cmusvsc/apachecmda:1.1 (need to download a period of time, and then extract a period of time), here 9001 is recorded as D c,9000.
It then connects directly to the virtual machine in the Docker, and you can see from the following figure that the contents of the front of the command line also change. Then we enter the command
How can I effectively determine whether there are intersection of several sets of data ranges? php
5000 ~ 7000
2000 ~ 6000
8000 ~ 9000
4000 ~ 8500
5000 ~ 7000
In php, how can we more effectively judge whether there are duplicates of these groups of random data?
Expected value:
2000 ~ 4000
4000 ~ 5000
5000 ~ 6000
6000 ~ 7000
7000 ~ 8500
8500 ~ 9000
Reply to discussion (solution)
This post was last
For the first time, Hadoop was configured on the VM, and three virtual machines were created, one as namenode and jobtracker.
The other two machines are used as datanode and tasktracker.
After configuration, start the Cluster
View cluster status through http: // localhost: 50700
No datanode found
Check the node and find that the datanode process has been started. view the logs on the datanode machine.
2014-03-01 22:11:17, 473 INFO org. apache. hadoop. ipc. client: Retrying connect to server: Ma
These two days toss a question about Gitlab, make more and more exhausted. But after the toss, eventually succeeded.When faced with a problem, and see the time has not been resolved, feeling very uncomfortable;After the effort, after the solution, will also be physically relaxed. Perhaps the engineer was born "not to solve the problem uncomfortable". It is a habit to change in the future. Here is a brief record.A. Description of the problem generated:Two days ago the colleague in Gitlab created
with the client. Debug the client to recover and wait for a new connection.
Communication settings
Static IP/single development
During remote debugging, xdebug built in php acts as the client, while IDE acts as the server. The following animation shows how to create a communication channel:
The server IP address is 10.0.1.2 and the HTTP port is 80.
The IP address of the IDE is 10.0.1.42, so xdebug. remote_host is set to 10.0.1.42.
The IDE listens on port
. fs. NDfS $ namenode 9000 namedir2) create a datanode:Machine B: Java net. nutch. fs. NDfS $ datanode datadir1 machineb 8000 Machinea: 9000Machine C: Java net. nutch. fs. NDfS $ datanode datadir2 machinec 8000 Machinea: 9000
After step 2 is run, an NDfS is obtained, including one namenode and two datanode. (It can be on the same machine.Install NDfS in different directories)3) client-side file access:Creat
1. upload and download files from HDFSFirst error:
Java. Lang. illegalargumentexception: Wrong FS: HDFS://192.168.1.11: 9000/usr/yujing/wordcount,Expected: HDFS://MASTERS: 9000
Many people have encountered this problem. HDFS: // 192.168.1.11: 9000 cannot be directly used when connecting to a cluster in Ubuntu or Windows systems, to add the 192.168.ing of 192
:49] ERROR:FPM initialization failed start PHP-FPM found a lack of configuration files/usr/local/php/etc/php-fpm.conf just copy php at this timeThe-FPM configuration file/usr/local/php/etc/php-fpm.conf.default to the corresponding/usr/local/php/etc/php-of the configuration file provided when PHP is installedfpm.conf [[email protected] etc]#/USR/LOCAL/PHP/SBIN/PHP-FPM[14-apr-2017 21:14:32] Warning:nothing matches the include pattern'/usr/local/php/etc/php-fpm.d/*.conf' from/usr/local/php/etc/php
);}Here we do not introduce @WebService, @WebMethod, @WebResult and how @webparam work.Then we need to use Helloworldimpl to implement this interface class,Package com.cnblog.richaaaard.cxftest.standalone.ws.helloworld.services;public class Helloworldimpl implements HelloWorld {public string Sayhi (string name) {String msg = "Hello" + name + "!";return msg;}}
Publish a Web ServiceLet's use javax.xml.ws.Endpoint in the simplest way to publishPackage com.cnblog.richaaaard.cxftest.standalone.ws.he
Visit 192.168.58.134 on the host to see if the access was successful.Modify Nginx ConfigurationThe fastcgi access interface in the Nginx configuration file needs to be modified in order to access the PHP page.[[emailprotected] nginx-1.6.0]# vim /usr/local/nginx/conf/nginx.conf location ~ \.php$ { root /var/www/html/webphp; #指定PHP服务器站点家目录 fastcgi_pass 192.168.58.132:9000; #指定PHP服务器地址及端口 fastcgi
Ubuntu16.10 under PHP7.0-FPM and Nginx configuration source: qq_32457355 's blog
Problem!!! mysql-php Why Nginx is an e-lake in the rumor has long been the nginx is so read engine-x-sou-can-get-it "> installed Ubuntu16.10 after the beginning with Lemp (linux-nginx-mysql-php) , why is Nginx e? The legend of the lake in the long-awaited nginx is so read: Engine X, so ... U can get it!Back to the point, test the environment, Papapa input 127.0.0.1, walk you ~Then the Nginx is naughty:503Ba
Visit 192.168.58.134 on the host to see if the access was successful.Modify Nginx ConfigurationThe fastcgi access interface in the Nginx configuration file needs to be modified in order to access the PHP page.[[emailprotected] nginx-1.6.0]# vim /usr/local/nginx/conf/nginx.conf location ~ \.php$ { root /var/www/html/webphp; #指定PHP服务器站点家目录 fastcgi_pass 192.168.58.132:9000; #指定PHP服务器地址及端口 fastcgi
mysql5.7 Docker build-t MySQL. Build to construct the image, MySQL for the mirrored warehouse and tag,. For the current path The appearance of success on behalf of success. 2) PHP Image construction Vim Dockerfile From Centos:centos7 #以centos7为基础 Maintainer Yst ENV TZ "Asia/shanghai" #时区 #安装依赖包 RUN yum-y Install libxml2-devel libmcrypt-devel libmcrypt mcrypt mhash libjpeg libjpeg-devel libpng libpng-devel Net-too LS gcc gcc-c++ make ADD php-5.6.36.tar.gz/#拷贝安装包 #运行源码包安装程序 RUN cd/php-5.6.36 /co
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.