LNMP after installing the package on one click, it is found that thinkphp's PathInfo mode is not available.
Baidu, found nginx/conf/vhost/domain name file has opened PathInfo instructions, so started the pathinfo.
But the project still didn't work,
Mac Nginx Configuration
1,brew Installation
Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"
2.pcre installation (Nginx rewrite dependent on the library)
CD ~/download
Tar xvzf pcre-8.33.tar.gz
CD
Function
Describe
Connection_aborted ()
Check to see if the client is disconnected.
Connection_status ()
Returns the current connection status.
Connection_timeout ()
Deprecated in PHP 4.0.5.
basic functions of array manipulation
1, the key name and value of the array
array_values ($arr); Get the value of an array
Array_keys ($arr); Gets the key name of the array
Array_flip ($arr); the values in the array are exchanged with the key
CENTOS7 Yum mode installation Nginx
CENTOS7 System Library default is no nginx RPM package, so we need to update the next RPM dependent library
(1) using Yum installation Nginx need to include Nginx's Library , installation Nginx's Library
#rpm
1. Download:
Http://nginx.org/download/nginx-1.8.0.zip
2. Unzip to:
d:/nginx-1.8.0
3. Run the command:
CD Nginxstart Nginx
Visit 127.0.0.1 and you're ready.
Common commands:
Nginx-s Stop// stop nginxnginx-s Reload //reload config
The PHP version is upgraded today, and by the way, the MySQL connection in PHP code is changed to Mysqli, since the official php5.3 has been recommending Mysqli and PDO since the beginning of the day. No more talking, sticker code.
// here's a
1,nginx Error cannot find location generally need to modify/usr/local/nginx/conf/nginx.conf (careful modification may cause other website problems)
2,502 Error
Situation 1:nginx hung off:
Command:/usr/local/nginx/sbin/nginx-s Reload
And wait for a
Favicon.ico Introduction
Favicon.ico is a thing, maybe too much to be used to (I am so, until I wrote this article before I know), to see the Wikipedia explanation:
Favicon is the abbreviation for Favorites icon, also known as the website icon
PHP error prompt to turn on Ubuntu lamp
Ubuntu default lamp mode is not PHP syntax error prompt, if you want to open, you need to modify a few places:
1. Open the php.ini file.
This file in the:/etc/php5/apache2 directory, you need to modify the
Observer pattern
Observer mode (Observer), when an object state changes, all objects that depend on it are notified and updated automatically.
Roles in the pattern
Abstract The Observer (abstract class, convenient extension) stores the
To get started, first find the Extension=php_curl.dll in the php.ini file, remove the front ";" and turn on curl support.
Curl_init (); Initialize CurlCurl_close (); Relationship CurlCurl_exec (); Perform a curl operationcurl_setopt (int ch, string
PHP uses reference counts and write-time replication to manage memory. Copy-on-write ensures that the copied values between variables do not waste memory, and the reference count guarantees that the memory is freed to the operating system when the
The code is as follows:
Date_default_timezone_set (' PRC '); Default time zoneecho "Today:", Date ("Y-m-d", Time ()), "";echo "Today:", Date ("Y-m-d", Strtotime ("June 2008")), "";echo "Yesterday:", Date ("Y-m-d", Strtotime ("-1 Day")), "";echo "
Download Zookeeper dependent libraries:
http://apache.fayea.com/zookeeper/zookeeper-3.4.6/
Extract
TAR-ZXF zookeeper-3.4.6.tar.gz
CD zookeeper-3.4.6/src/c
Installation
./configure--prefix=/usr/local/zookeeper/zookeeper-3.4.6/
Make & make
Some JSON data has been processed in Python recently, but there are some problems in the process that have been recorded.
1.Python Post JSON format data to the server:
Looked up some information, mostly this kind of:
For installation of Nginx, you can view the previous article
load Balancing + static and dynamic separation Modify Nginx/conf/nginx.conf
Open the original file, vim/usr/local/nginx/conf/nginx.conf
Load Balancing:
Find server{}, add on
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service