end.A PHP is also defined in 111.com[Email protected] ~]# vim/data/wwwroot/111.com/index.php[Email protected] ~]#/usr/local/apache2.4/bin/apachectl-tsyntax ok[[email protected] ~]#/usr/local/apache2.4/bin/ Apachectl Gracefulif the domain name configuration is not found, the default virtual host configuration file is found, for example www.111.com in the configuration file does not have this domain name or alias, so directly find the default configuration, that is, the first paragraph, so it is
can be viewed
pm.start_servers = 20//Number of processes that will start when the service is started
pm.min_spare_servers = 5//Defines the minimum number of child processes in the idle period, and if this value is reached, the PHP-FPM service automatically derives the new child process.
pm.max_spare_servers = 35//Defines the maximum number of child processes in the idle period, or, if higher than this value, to start cleaning up idle child processes.
pm.max_requests = 500//defines the maximum n
shell to customize a variety of personalized alarm tools, but the need for unified management, standardized management.• Idea: Specify a script package that contains the main program, subroutine, configuration file, mail engine, output log, and so on.• Main program: as an entry for the entire script, it is the lifeblood of the entire system.• Configuration file: is a control center that uses it to switch individual subroutines, specifying each associated log file.• Subroutines: This is the real
, only count and index2, Tup1.count (Element) and Tup1.index (element), these two and list almost I don't have to say, give an example everyone to see just fine3, the list and the meta-Group of the mutual conversion, in fact, this also has nothing to say, but after the estimate will also be used, so it is said to everyone! Continue to see examples:See, is not very simple, just use list and tuple can4, finally to everyone to explain the next section, this is still relatively good, we look at the
table: Describes the key columns that have constraints.Routines Table: Provides information about storing subroutines (stored programs and functions). At this point, the routines table does not contain a custom function (UDF). A column named "Mysql.proc name" indicates the corresponding INFORMATION_SCHEMA. The Mysql.proc table column for the routines table.Views Table: Gives information about the view in the database. You need to have show views permission, otherwise you cannot view the view in
([parameter list])//CallParameters of the functionFormal parameters and actual parameters-When defining a function, the name of the variable in parentheses after the function name is called a "formal parameter," or "formal argument"-When calling a function, the name of the variable in parentheses after the function name is called "actual parameter", or "argument"Default parameter (default parameter)def fun (x, y=100):Print x, yFun ($)Fun (1)Variables of the functionLocal variables and global va
a script
[[emailprotected] php-fpm.d]# vim /data/wwwroot/test.com/sleep.php 编辑个脚本写入下边的代码Open_basedir
Editing a configuration file
[[emailprotected] php-fpm.d]# vim /usr/local/php-fpm/etc/php-fpm.d/www.conf ##加入以下配置php_admin_value[open_basedir]=/data/wwwroot/test.com:/tmp/
Start
Test
Viewing the error log
To define the PHP-FPM error log.[[emailprotected] php-fpm.d]# vim /usr/local/php-fpm/etc/php.ini 12.24 PHP-FPM Process
Python Basic Tutorials 60 lessons-18th class bool type conversion "Python 18th class" bool type conversion
A few last words left yesterday about the conversion of type bool, which has one row:
BOOL (' False ')
Print the result and you will find that it is true. What is the reason.
First, because in Python, the following values are considered false:
The second and 0 figures, including 0,0.0
Third, empty string, including ', ' '
The none that repres
"The lesson of time"--what is the lesson of time?
The lesson of time , that is, whether this thing is difficult or easy, originally in a certain period of time, or even less than this certain time can be completed, and you have to use twice times or even three times times to complete, what is not finished at all, but finally resolved, you find, Just because you think a little less, only need to think a little bit more, even if you look a little more forward, you can solve the small function, or
Yesterday to Anhui Susong a customer there to maintain the experience and lessons
The client's database server would have been good, and I was able to demonstrate to others how to install Oracle clients, install Oracle clients on the server, and halfway through the installation I suddenly felt I had found a great error: Oracle server could no longer install Oracle clients,
I quit but it's too late: fee management system can not connect to the databas
:::22 :::* listen922/sshdtcp6 00::1:25 :::* listen1031/mastertcp60 0:::3306 :::* listen1667/mysqld If the template/etc/my.cnf is not configured, use the command line method:[[Emailprotected]mysql]#servicemysqldstopshuttingdownmysql]. success! [[Emailprotected]mysql]#/usr/local/mysql/bin/mysqld_safe--defaults-file=/etc/my.cnf --user=mysql--datadir=/data/mysql[1]1848[[emailprotected]mysql]# 18013122:45:06mysqld_safeLoggingto '/data/mysql/localhost.localdomain.err '. 18013122:45:06mysqld_safest
the where clause having . You can use exist and not exist instead of In and not. You can use table links instead of exist. Having can be replaced by where , if not replaced, can be handled in two steps. Example SELECT * from ORDERS WHERE customer_name not in (SELECT customer_name from CUSTOMER) Optimized SELECT * from ORDERS WHERE customer_name not exist (SELECT customer_name from CUSTOMER) 7.2 do not declare numbers in character format, you want to declare character values in numeri
database version select version ();• View database status show status;(data not all shown)• View each parameter show variables; Show variables like ' max_connect% ';Show variables;(Too many parameters)• Modify parameter set global max_connect_errors=1000;If you want to permanently take effect, you need to exit to SHELL,VIM/ETC/MY.CNF, define max_connect_errors=1000;• View queue show processlist; Show full processlist;If there are errors, please correct, learn from each other and progress togeth
the WHERE clause is used in the inch , not in , or or having . can use exist and the Not exist Replace inch and the not in . You can use table links instead exist . Having can be replaced by where , if not replaced, can be handled in two steps. ExampleSELECT * from ORDERS WHERE customer_name not in(SELECT customer_name from CUSTOMER)Optimized SELECT * from ORDERS WHERE customer_name not exist(SELECT customer_name from CUSTOMER)7.2 do not declare numbers in character format, you want to dec
10.28 Rsync Tools IntroductionThe file Synchronization tool rsync, can achieve incremental copy, CP is direct coverage, low efficiency;Install rsync, #yum-y install rsync;Rsync Common methods,Copy the passwd file to the/tmp directory, rename it to 1.txt, and the command to #rsync-av/etc/passwd/tmp/1.txt-V visualization;Remote copy, command for #rsync-av/etc/passwd [email protected]:/tmp/1.txt; then enter the password;10.29/10.30 rsync Common Options10.31 rsync sync via ssh-e Specifies the port,
14 weeks four sessions (May 14)16.1 Tomcat Introduction16.2 Installing the JDK16.3 Installing Tomcat16.1 Tomcat Introduction16.2 Installing the JDKOpen the download URL.Click jdk=8u144-linux-x64.tar.gz, downloadUpload to LinuxCtrl+f Open XftpPut the downloaded file in the root directoryXftp is an SSH-based port that does not require FTP to be opened.CopyAt the bottom, pasteCheck to see if the installation is successful, the following results appear, stating that there is no problem, the command
Tags: Linux notes12 weeks three sessions (April 25)12.10 Nginx Access Log12.11 Nginx Log Cutting12.12 static files do not log logs and expire time12.10 Nginx Access LogThe format of the configuration file is in the main configuration file.Search for log to find the following paragraph, which is used to define the format.Public network IP, in Baidu, search IP, view.Defining Access Log pathsOpen FileUnder}, add a row to read as follows:12.11 Nginx Log CuttingEdit FileAdd the following contentProce
= ' date-d '-1 day +%y%m%d '//similar to 20180427, yesterday's date, today 28thLogdir= "/data/logs"Nginx_pid= "/usr/local/nginx/logs/nginx.pid"CD $logdirFor log in ' ls *.log 'DoMV $log $log-$dDone/bin/kill-hup ' Cat $nginx _pid '--------------------------------------------------------------------------------------Add Task Schedule #crontab-e//write the following:0 0 * * */bin/bash/usr/local/sbin/nginx_logrotate.sh//Daily 0 o'clock in the morning execution12.12 static files do not log logs and e
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.