Haproxy.cfg Configuration file Contents#全局配置global log 127.0.0.1 local0 log 127.0.0.1 local1 notice #log loghost local0 info m Axconn 8192 #chroot的路径 chroot/usr/local/haproxy #运行用户和组的id uid #以守护进程 Form run Daemon #debug quiet #进程数量 based on server performance tuning Nbproc #pid路径 pidfile/var/ru n/haproxy/haproxy.pid# The default global configuration, these parameters are used to configure the Frontend,backe
This config. inc. the PHP file is the configuration information of phpmyadmin. The following is a configuration example. for details, refer to the file address: D: \ wamp \ apps \ phpmyadmin4.0.4 \ config. inc. php
File content:
The code is as follows:
/** Generated configuration file* Generated by: phpMyAdmin 4.
Open the nginx installation directory/conf/nginx. conf file, find the http curly brackets, and add the following code. The code is as follows:Copy code Server {Listen 80; # port, which is usually the default value (required)Server_name www.111cn.net 111cn.net; # domain name. Multiple domain names are separated by spaces (required)Index index.html index.htm index. php; # default homepage document. Multiple documents can be added (required)Root/data0/htdocs/www.111cn.net; # VM Directory (requi
=NewSockjs (basepath+ "Sockjs/websocketserver"); } webSocket. onerror =function(event) {//alert ("Websockt connection error, please refresh page retry!") }; WebSocket. OnOpen =function(event) {}; WebSocket. OnMessage =function(event) {};},SendData:function(data) {WebSocket.send (data);},}Finally, restart the nginx.Challenges faced by reverse proxy servers in support of WebSocket
WebSocket is end-to-end, so when a proxy server intercepts a upgrade request from the client, it needs to se
=131Reduce Input groups=131Reduce Shuffle bytes=1836Reduce Input records=131Reduce Output records=131For:warn-unable to load Native-hadoop library for your platform ... using Builtin-java classes where applicable this warning is fine, run It's not reported on Linux.8.Finally, try to split the wordcount into subclasses and move the mapper out of the way, because sometimes multiple classes will prompt for an error:Delete Output directory, rerun: OK, no problem, the results are correct. 9.Welcome t
Basic PHP example: Use a regular expression to modify the configuration information.
Working principle of various php files:
The following is the code pulling time:
Example of modifying the php. ini configuration file
@ Ini_set ('memory _ limit ', '64m');/* Maximum memory size occupied by the script */
@ Ini_set ('max _ execution_time ', '15');/* maximum script execution time */
@ Ini_set ('post _ max_size ', '12m');/* Maximum form Upload size */
@ Ini_set ('upload _ max_filesize ', '2m');/* Maximum upload size of a single file
#设置Chassis的基本參数, including the IP address. Number of ports, etc.Set CHASSISADDR 10.132.238.190Set Islot 1Set Portlist {One-by-one}; #端口的排列顺序是port1, Port2If {[Catch {#载入STC API LibCd.. /source#载入HLAPI Libsource./cstc.tclSetlogoption-debug Enable# Start connecting the machineTestdevice Chassis1 $chassisAddr# Start with two ports reservedFor {set I 0} {$i Chassis1 createtestport-portlocation $islot/[lindex $portList $i]-portname port[expr $i +1]-porttype Ethernet}#port1 Createsubint-subintname Vlan
1. Download vlc-2.2.0-win32.7z from http://www.videolan.org/vlc/download-windows.html and unzip;2. Create a new vlctest console project;3. Add the/vlc-2.2.0-win32/vlc-2.2.0/sdk/include to the project properties,-->general-C + + Additional Include directories;4. Copy the Libvlc.lib, Libvlc.dll, Libvlccore.lib, Libvlccore.dll and plugins directories in the/vlc-2.2.0-win32/vlc-2.2.0/to the project execution directory;5. The code for each file in the Vlctest project is:StdAfx.h:#pragma once#include
)Org.apache.log4j.ConsoleAppender (Control Desk)Org.apache.log4j.FileAppender (file)Org.apache.log4j.DailyRollingFileAppender (generate a log file every day)Org.apache.log4j.WriterAppender (Send log information to any specified location in stream format) (2).priority of Journal Records Priority, the priority from high to low is divided intoOFF, Fatal,error, WARN, INFO, DEBUG, all. log4jIt is recommended to use onlyFATAL, ERROR, WARN, INFO, DEBUGthese five levels. (3). Format Description Layout
ADODB PHP Database Universal engine class features:
1. Can be in the PHP specification of various types of database links and use
2. Can help us to provide development efficiency in PHP and quickly convert various databases
3. Relatively simple to use
4. Writing requirements more rigorous, pay attention to the case
5. Rich built-in functions
How to configure and use ADODB PHP1. Download ADODB for PHP Class Library compression package2. Unzip to any folder under the Site Directory3. Introduction
-forwarded-for to obtain the user's real IP address proxy_set_header host $ host; proxy_set_header X-real-IP $ remote_addr; proxy_set_header X-forwarded-for $ scheme; client_max_body_size 10 m; # maximum number of single-file bytes allowed for client requests client_body_buffer_size 128 K; # maximum number of bytes of client requests buffered by the buffer proxy proxy_connect_timeout 300; # nginx and backend server connection timeout (proxy connection timeout) proxy_send_timeout 300; # backend s
Problem:
Create three public, training, and devel subdirectories in the/data/share directory for the following purposes:
The public directory is used to store public data, such as the company's rules and regulations.
The Training Directory is used to store the company's technical training materials
The devel directory is used to store project development data.
Share the/data/share/public/directory to public. All employees can access the directory, but only have the read permission.
Share t
The following is a record of VIM configurations that I am used ~ _~
"File encoding set fileencoding = utf-8set encoding = utf-8set termencoding = UTF-8" enable syntax highlighting syntax enable "prevents adding a Line Break Set noendoflineset binary" tabulation width set softtabstop = 4 set tabstop = 4 set shiftwidth = 4 set expandtab "auto indent alignment set autoindent" display row number "set nu" Set background, the "set BG = Dark" code folding "set foldmethod = indent" backspace function s
Download and unzip the xerces-c-3.1.1 from the official website, open the projectXerces-c-3.1.1 \ projects \ Win32 \ VC10 \ xerces-all \ xerces-all.sln,Select the xerceslib project to compile and generate the relevant library files.Set environment variables and add xerces-c-3.1.1 \ build \ Win32 \ VC10 \ debug.Create a project and Open PropertiesConfiguration properties:A. C/C ++-> General-> additional include directory xerces-c-3.1.1 \ SRC;B. linker-> General-> additional library directory xerc
1. Register an account in Coding.net2. Login Coding.net3, new project, enter project name, project description, initialize warehouse selection readme.md and add a appachev2 open source license, add project members--Create a project4. Pycharm->vcs->check out from version control select-git-> Enter the git URL from the coding.net item (the GIT address on the left side of the Code menu) to select the storage path to complete Git configuration in Pycharm
First step: execute under Root: Mkdir/public Modified permissions: chmod 777/public Step two: backup Smb.conf:mv/etc/samba/smb.conf/etc/samba/smb.conf.bak Edit Profile: vim/etc/samba/smb.conf[Global]Security = Share [public]Comment = PublicPath =/publicPublic = yesRead Only = no Step Three:Restart SMB Service: Service SMB restart Note Close Selinux:enforce 0Shut down firewall: Service iptables stopThis article is from the "Wei Binbin blog" blog, make sure to keep this source http://weid
memcached to save the session, so that the PHP itself set up a session cluster, in such a way to ensure that the session is stable, even if a node is faulty, the session will not be lost, Apply to more stringent but not high demand occasions. But its efficiency is not very high, does not apply to the high efficiency requirements of the occasion.
All of the above two methods have nothing to do with Nginx, the following is said with Nginx how to deal with:
Ip_hash
The Ip_hash technology in Ngi
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.