PHP, Nginx are all installed, configured for a long time is not right. It's just a good whole.
Nginx.conf began to be
server {listen 8080;
server_name localhost;
#charset Koi8-r;
Access_log Logs/host.access.log Main;
Build PHP Development environment:1, prepare and install the following software:Mysql-5.6.13-win32:http://dev.mysql.com/downloads/is currently being acquired by Oracle, so go to the Oracle website to download
Apache 2.2.25:http://httpd.apache.org/.
Preface
It's a tough time to play. In addition to the compiler using Yum installation, all others are compiled manually. Hum ~Seemingly on Nginx, PHP, MySQL three east, but they are too much to rely on others.There is no way to use them to be
Installing NginxYum Install NginxIf the Nginx package cannot be found, create a new file/etc/yum.repos.d/nginx.repo, Content:[Nginx]name=nginx repobaseurl=http://nginx.org/packages/os/osrelease/$basearch/gpgcheck=0enabled=1Where: OS replaced with
Before: Pre-planned directory structure1. Installing NginxTo the Nginx official website to download the latest stable version of Http://nginx.org/download/nginx-1.9.15.zip;Decompression to the D:\WNMP\nginx;Run the D:\WNMP\nginx\nginx.exe program
Case 1: Building memcached ServicesCase 2:lnmp+memcachedLocal session information for case 3:phpCase 4:php Implementation session sharing1 Case 1: Building memcached Services1.1 QuestionsThis case requires a quick set up a memcached server, and the
LNMP stands for: Linux system nginx+mysql+php this site server architecture.Linux is a class Unix The computer operating system collectively, is currently the most popular free operating system. Representative editions
Proxe Proxy Server:Installing the Memcached Service#yum-y Install gcc#tar-xf libevent-2.0.21-stable.tar.gz (memcached service library file)#cd libevent-2.0.21-stable#./configure#make && make InstallYou can directly link to the library files can also
Tips: Before you do this, make sure that you have CENTOS7 installed because all of the following operations are done under CENTOS7.1, first to stop the native firewall, and then configure Iptables, open 21/22/80/8080/3306 port, the specific
How do I make Linux timed tasks crontab in seconds?Linux scheduled task crontab min execution Time unit is minutesIf you want to execute in seconds, how should you set it?IdeasThe normal scenario is to define the tasks to be performed directly in
Environmental information:Mac OS X 10.11.1Homebrew 0.9.5BodyFirst, install Nginx
Terminal execution:
Brew Search Nginxbrew Install NginxCurrent version 1.6.2After installation, you can see some configuration paths in the terminal
Recently upgraded the system to the UBUNTU16 long-term Support edition and redeployed the LNMP environmentContract several directory source directory/usr/local/srcMysql/usr/local/mysqlphp/usr/local/phpNginx/usr/local/nginxMySQLVersion
This article mainly introduced PHP script monitoring Nginx 502 error and automatically restart PHP-FPM, this article directly give the implementation code, and then put into cron implementation, need friends can refer to the
Recently the server
1. The WIN+NGINX+PHP+MYSQL Environment constructs
Nginx is a high-performance http and reverse proxy server, as well as a IMAP/POP3/SMTP proxy server, developed by the Russian rambler.ru site, Nginx is known for its stable performance and low
NGXIN;PHP-FPM after installation, HTML static page is no problem, but Phpinfo page returns 200, but always blank page
There is no error, consider should be nginx PHP page has been transferred to the PHP processing, so the problem should be in the
#运行用户
User Www-data;
#启动进程, usually set to equal number of CPUs
Worker_processes 1;
#全局错误日志及PID文件
Error_log/var/log/nginx/error.log;
Pid/var/run/nginx.pid;
#工作模式及连接数上限
Events {
Use Epoll; A way to #epoll是多路复用IO (I/O multiplexing), but only
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.