Directory operations: RM-RF Mydir/*Delete Mydir directory*/mkdir dirname/*Create a directory named DirName*/CD Mydir/*Enter the Mydir directory*/cd–/*go back to the top level directory*/CD../*back to parent directory with spaces in the middle*/adb~/*
tomcat7.0+ NGINX + MEMCACHED + Memcached-session-manager for session sharinghttp://blog.csdn.net/nerissa/article/details/18961361; Reference BlogHttp://pan.baidu.com/s/1pJlZ0mB//related package download, including the required Jar package
Start Nginx First1. Go to nginx directory:/usr/local/nginx;Start Nginx:/usr/local/nginx/nginxTo add sudo before Ubuntu;Key configurationUnder HTTP configuration block, the general settings are under ZGIP on:localhost #绿色对应 #ip_hash; Server
TAR-XVF zlib-1.2.8.tar.gzcd Zlib-1.2.8./configmakemake InstallAbove are for zlib (refers Http://zlib.net/for zlib), and below are for Pcre-develApt-get Install Libpcre3 Libpcre3-devThen, compile and install Nginx (get the newest statable source code
Web site Environment
LAMP. What is LAMP? It is Linux + Apache + MySQL + php/perl abbreviation, is a concise, strong, widely supported site environment. At home there seems to be a lot of people recommend to change A (Apache) to N (Nginx), but I do
Recent projects involving old and old project migration, need to do some configuration on the Nginx, so a simple study, good memory is not as bad as written, first recorded down.
Rewrite
First check to see if the nginx supports rewrite:
Nginx ("Engine X") is a lightweight HTTP and reverse proxy server. Compared with Apache and LIGHTTPD, it has advantages of less memory, stronger concurrency and higher stability. its most common use is to provide a reverse proxy service.
Under
shell Script Combat----One-click Deployment LNMP ArchitectureLNMP uses the shell to deploy, directly on the topic, first needs to prepare the package files, which I named here as Zhunbei files.650) this.width=650; "Src="
1. Preparatory workChoose to install the software first: Gcc,pcre (Perl Compatible Regular Expression), Zlib,openssl.Nginx is written in C, need to compile with GCC, Nginx rewrite and HTTP module will use the Pcre;nginx in the gzip used to zlib;Use
One, Nginx installation1. prepare three copies of TomcatTOMCAT1 Setting port 8080TOMCAT2 Setting Port 8081TOMCAT3 Setting Port 80822.Download Nginx3.Unzip to/home directory and rename to Nginx4.Cd/home/nginx into Nginx
Brief introductionVirtual host refers to a certain amount of disk space on the network server, the administrator can take advantage of this part of the space, put the site and application components, provide the necessary data storage and
The following error occurred with the reboot Nginx:
Nginx: [Emerg] Unknown log format "Proxy_log" in/usr/local/macports/etc/nginx/nginx.conf:147
Solution:
Open nginx.conf, "main" error is due to the loss of the Log_format option, before shielding
First create a file
Vi/etc/yum.repos.d/nginx.repo
Copy the following text, save and exit
[Nginx]
Name=nginx Repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
Gpgcheck=0
Enabled=1
Run the following command to install
#yum
Install Nginx
sudo apt-get install Nginx
If you have Apache installed, and Apache is running at this time, please modify the configuration file first (no students skip directly):
#打开配置文件
sudo
First, the preparatory work:
Os:windows7 SP1
nginx:nginx-1.3.5
php:php-5.4.6
Second, decompression php-5.4.6-win32-vc9-x86.zip to d:php, will be one of the php.ini-production to php.ini.
Third, extract Nginx-1.3.5.zip to D:nginx, edit
First, the premiseReference Blog : http://blog.csdn.net;related package download, including the need for Lib jar package : http://pan.baidu.com/;Environment : CentOS 6.5 (64-bit), Jdk8_8u5, tomcat7.054, nginx1.47, libevent-2.0, memcached-1.4.20– Two
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.