Recently debug public number function, do not want to submit to the server every time to read the log
So on the server with the Nginx reverse proxy to the server 80 port received the request forwarded to the 127.0.0.1:9000
Then using SSH to tunnel the server 9000 port mapped to my local development machine 80
SSH Tunnel Reference http://my.oschina.net/magicly007/blog/480706
Assume server external domain na
, passing it to nginx along a fixed socket, and finally, Nginx sends the returned data to the client. Nginx Simple Configuration Location ~ \.php$ {root/home/admin/web/nginx/html/; Fastcgi_pass 127.0.0.1:9000; Fastcgi_index index.php; Fastcgi_param script_filename/home/admin/web/nginx/html/$fastcgi _script_name; Include Fastcgi_params; }When Nginx receives an HTTP request, the corresponding server is found throug
PHP, while the IDE acts as a server. The following dynamic diagram shows the process of establishing a connection.
The server IP is 10.0.1.2, using the HTTP protocol with Port 80
The IDE xdebug.remote_host is set to 10.0.1.42 on a machine with an IP address of 10.0.1.42
The IDE listens on port 9000, so xdebug.remote_port set to 9000
HTTP requests originate from the server running the I
() method *@authorChenchi **/ Public classHdfsutils {PrivateFileSystem FS; /*** Plus @before will be executed before the test method * *@throwsException*/@Before Public voidInit ()throwsException {//reads the xxx-site.xml configuration file under Classpath and parses its contents into a Conf objectConfiguration conf =NewConfiguration (); //If you put the configuration file under SRC, this line of code can be used without writing//You can also manually set the configuration information in the Co
access to proxy is equivalent to access the target②IDC the 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 proxy mapping to 9000, external access 80 is equivalent to 9000In this exampleMachine 192.168.0.114 is our reverse proxy server.Apache/2.0.63 running on its 80 portA virtual host with two domains abovewww.a.orgwww.b.orgThe
]:~# sudo apt-get install python-software-properties[email protected]:~# sudo apt-get update[email protected]:~# sudo apt-get install PHP[email protected]:~# Php5-vAfter the installation of php, in the Nginx add docking php configuration, access to the. PHP file will error 502!This is because Nginx access to the. PHP file requests are given to the PHP-FPM program processing, PHP-FPM Monitoring 9000 portSo there is also the start php-fpm Program.Instal
Problem Description:Hadoop in the virtual machine under the Linux systemLocal files are uploaded to the specified directory on the Hadoop platform by writing code locally through eclipseThe code is as follows:@Test Public voidUpload ()throwsIOException {Configuration conf=NewConfiguration (); Conf.set ("Fs.defaultfs", "Hdfs://lujie01:9000/"); FileSystem FS=filesystem.get (conf); Path Path=NewPath ("Hdfs://lujie01:
scenarios
Two clusters running the same version of Hadoop
Make sure that the two cluster versions are the same, taking HADOOP1, hadoop2 clusters as an example, as shown below 1), transfer data between two HDFS clusters, by default distcp will skip files that already exist under the target path[Email protected] ~]$ Hadoop distcp/weather hdfs://hadoop2:9000/middleThe effect is as follows: This directive is executed in hadoop1, m
# 1. Enter a command with a shorter result, such as Dir # 2. Enter a command with a longer result arp-a #观察TCP黏包现象!!!
#server. PY Import Socket SK = Socket.socket () sk.bind ((' 127.0.0.1 ', 9000)) Sk.listen () conn,addr = Sk.accept () while True: cmd = input (' >>> ') conn.send (Cmd.encode (' Utf-8 ')) #1. Server-side input command, sent to client, if cmd = = ' Q ': BR Eak Ret1 = CONN.RECV (1024) #8. This step and the next can happen sticky bag,
Label:usage of the load and save methodsDataFrame usersdf = Sqlcontext.read (). Load ("Hdfs://spark1:9000/users.parquet");Usersdf.Select("name","Favorite_Color"). Write (). Save ("Hdfs://spark1:9000/namesandfavcolors.parquet"); Load, Save method ~ Specify file formatDataFrame PEOPLEDF = Sqlcontext.read (). Format ("JSON"). Load ("Hdfs://spark1:9000/people.json");
First, review 1, process, thread, the process: the smallest resource allocation unit in the computer, data isolation, you can use multi-core, data is not a security thread: is the smallest CPU scheduling unit in the computer, data sharing, GIL, data Insecure association: is a part of the thread, is by the user To dispatch, data sharing, data security 2, synchronous, asynchronous, blocking, non-blockingAsync: Doing more than one thing at the same timeSynchronization: One thing is done and then th
ObjectiveThese 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 t
1.1.1 Install Nginx and PHP through Yum, change the address of nginx inside Fastcgi_pass PHP can not request the normal1.1.1.1 problem Restore:The nginx+php server address is 10.0.0.41/24Nginx installation is 1.14 PHP installation is 7.1,yum installation process is not detailednginx的location里面的配置如下location ~ \.php$ { root /usr/share/nginx/html; fastcgi_pass 10.0.0.41:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /usr/
), domain name, character set, root folder, first file, and so on.
The following sections of the configuration nginx are integrated with PHP in a fastcgi manner, and "c:/nginx-0.8.38/html" represents the root folder of the Web site:
Copy Code code as follows:
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 Fastcgi_p
index index.html
index.htm
}
Change root HTML to root d:/wnmp/www; plus index.php, that is:
Location/{
root d:/wnmp/www; #这里是站点的根目录
index index.php index.html index.htm;
}
Note here that the path delimiter should be used/instead of using Windows \ To avoid ambiguity.Go down 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:
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.