Installation configuration of Nginx
1. To see if the machine is installed Nginx, use the following command:
#service nginx Status
#which Nginx
#whereis Nginx
#find/-name "*nginx*"
#rpm-qa | grep nginx
2. General use of Yum
The Get_search_form function is used in WordPress to extract a preset search form or a default search form. Because the official this function is not Chinese, so I wrote it briefly.
DescribeThe Get_search_form function is used in WordPress to
DOS Change root password: Of course, after installing phpmyadmin after the change password can also be modified by phpMyAdmin
Format: Mysqladmin-u username-P Old password password new password
Example: Add a password to root 123
First, in the
Tomcat using Nginx for load balancing is a simple thing
1. Environment preparation
The two machine IPs are 192.168.0.166 192.168.0.167 , respectively.
of which 166 installed Nginx
166 and 167 to install Tomcat separately
Of course, you can choose
Special note: In the absence of any introduction to the background, direct hair How to install the software is bullying!
This article refers to the installation introduction provided by Nginx.org, Link: nginx.org "Installing Nginx" page
In
Start the handover today and make some sort of thing about it.
Environment:
Several mirrors have been installed, including Tomcat.
Create a directory to make a mirror with a web app, such as Sys-webapp:Enter this directory to create a dockerfile
is actually an extension of the trim function
Trim can only delete spaces on both sides of a string
//删除所有空格functiontrimall($str){$qian=array(" "," ","\t","\n","\r");$hou=array("","","","",""); return str_replace($qian,$hou,$str); }
').
Multithreading, formerly using Curl, is not really multi-threading, just a simulation of multi-threading, now using Pthreads to achieve the true meaning of multithreading.
Download:
Under
Nginx's load balancing strategy can be divided into two categories: built-in policies and extension strategies. Built-in policies include weighted polling and IP hashes, which, by default, are compiled into the Nginx kernel, simply by specifying the
This example describes how the Substr_count () function in PHP gets the number of occurrences of substrings. Share to everyone for your reference, as follows:
Substr_count () in PHP can be used to calculate the number of occurrences of a substring
Laravel a program
Illuminate\foundation\http\middleware\verifycsrftoken
/** * Determine if the session and input CSRF tokens match. * * @param \illuminate\http\request $request * @return bool */ protected function
This example describes the use of the STRNATCMP () function "Natural sorting algorithm" in PHP for string comparison. Share to everyone for your reference, as follows:
The strnatcmp () function in PHP uses a "natural" algorithm to compare two
Share a piece of code that uses PHP to implement QQ login, the principle is to use Curl analog send post login, cookies saved locally, to achieve a real 3GQQ landing. Here code theory can support permanent single hanging qq-really do free hang qq OH.
A: Introduction
Tomcat handles dynamic requests in highly concurrent environments with low performance and is more vulnerable to handling static pages. Although the latest version of Tomcat supports Epoll, it is much better to handle static pages
The example in this article describes the operation of the PHP implementation of the Excel class. Share to everyone for your reference, as follows:
excel = new COM ("Excel.Application") or Die ("Do not Connect"); }//Class Entry public static
The example in this article describes the YII2 Framework reference bootstrap in the date plug-in Yii2-date-picker method. Share to everyone for your reference, as follows:
Recently in the Learning YII2 framework, the framework was found to be
Tell me something about the PHP framework you're writing.
Personal feelings
I used to think that creating a framework, not very difficult, in fact, I now think so, not to say that I really how strong, in fact, I just feel that the creation is not
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