the situation to increase or decrease this value. javagateway=127.0.0.1 #JavaGateway的ip地址或主机名JavaGatewayPort =10052 #JavaGateway的端口号StartJavaPollers =5 #开启连接javagatey的进程数SNMPTrapperFile =/tmp/zabbix_traps.tmpstartsnmptrapper=0 #如果设置为1,snmp The trapper process will open the listenip=0.0.0.0 #监听来自trapper的ip地址ListenIP =127.0.0.1housekeepingfrequency=1# Description: How many hours to clean up the proxy-side database history,alert,andalarms to keep the proxy-side database lightweight, it is recomme
already has a low-level version, perform the following command to uninstall it:
-e mysql --nodepsAnd then install:rpm -ivh MySQL-server-5.5.28-1.linux2.6.x86_64.rpm
Configure MY.CNFIf the/etc/my.cnf file does not exist, you can execute the following command to generate a
touch /etc/my.cnfThe content inside can use the recommended configuration values in the document:[Mysqld]transaction-isolation = read-committed # Disabling Symbolic-links is recommended to prevent assorted se
creation of PV is very simple, using the command pvcrete directly behind the partition, hard disk or RAID device you want to create, here is/dev/sda5 and/dev/sda6Pvcreate/dev/sda5/dev/sda6# #使用pvs和pvdisplay查看pv~]# PVsPV VG Fmt Attr PSize pfree/dev/sda2 vg0 lvm2 a--59.99g 7.99g/DEV/SDA5 lvm2---11.01g 11.01g/dev/sda6 lvm2---9.01g 9.01g(PVs and Pvdisplay can display PV information, but PVS displays brief information, Pvdisplay displays details.) All PV is displayed without parameters. /dev/sda2 is
size is 4G, record block from 2k to 8m, and output test data to Excel file [[emailprotected]] #/opt/iozone/bin/iozone-a-S 4g-i 0-i 1-f/tmp/testfile-y 2k-q 8m-rb output.xls iozone:performance Test of Fil e I/O Version $Revision: 3.408 $ Compiled for the + bit mode. Build:linux Contributors:william Norcott, Don Capps, Isom Crawford, Kirby Collins Al Slater, Scott Rh INE, Mike Wisner, Ken Goss Steve l
(_asm ("rim\n");), is 00; When an interrupt occurs, the current interrupt (ITC_SPRX) is loaded into i[1:0], mainly used to do the interrupt priority; Exit interrupt Auto-Clear 0 Therefore, in writing EXTI_CR1, you need to configure the ITC_SPRX to 11, or join the no interrupt command.EXTI_CR1:?? Configure the way to promote the hair;Test code#include CharKeyflag;CharKeypressstatus =1;unsigned intKeycount;/*output pin*/_boolPD2 @PD_ODR:2;_boolPC7 @PC_ODR:7;_boolPC6 @PC_ODR:6;_boolPC3 @PC_ODR:3;/
PHP File upload You must know a few points,
This article mainly describes the PHP file upload with the relevant configuration of knowledge points. The php file Upload function Configuration mainly involves the upload_tmp_dir,upload_max_filesize,post_max_size and other options in the php.ini configuration file. The following one by one illustrates.
Open the PHP.ini configuration file to find File Uploadsfile_uploads = onHTTP file uploads are allowed by default, and this option cannot be set to
write permissions.
Upload_max_filesize = 2M
The maximum size of the uploaded file. The default value of this option is 2M, that is, file upload size is 2M, if you want to upload a 50M file, you must set upload_max_filesize = 50M.However, only setting upload_max_filesize = 50M will not enable uploading of large files, and we must also modify the Post_max_size option in the php.ini file.
Max_file_uploads = 20
Set the maximum number of files allowed to upload at one time
Continue to find Data
config_provide_ohci1394_dma_initFix_ohci1394_base,# Endif_ End_of_fixed_addresses};Each enumeration represents one or more pages,Except for nr_cpus, we take 1, and the maximum values of all others cannot exceed 1 K pages.That is to say, the fixed ing cannot exceed 4 MB
Next is the permanent ing area. Let's look at the starting address definition of the permanent kernel ing.# Define pkmap_base (fixaddr_boot_start-page_size * (last_pkmap + 1) pmd_mask)That is to say, the starting address of the
, such as Upload_tmp_dir = "D:/fileuploadtmp", The representative has a fileuploadtmp directory under the D-Disk directory, and reads and writes permissions to this directory.
Upload_max_filesize = 2M
The maximum size of the uploaded file. The default value of this option is 2M, that is, file upload size is 2M, if you want to upload a 50M file, you must set upload_max_filesize = 50M.However, only setting upload_max_filesize = 50M will not enable uploading of large files, and we must also modify
platform? In the Apache configuration file httpd.conf, enable "Include conf/extra/httpd-mpm.conf" (delete the previous comment #), and then in the httpd-mpm.conf file Mpm_winnt_module "Threadstacksize 8400000" is set in the configuration module (approx. 8M).
Code to copy the code as follows
The code is as follows
Copy Code
Threadstacksize 8400000Threadsperchild 200Maxrequestsperchild 10000Win32disableacceptex
, FDISK/DEV/SDCFDISK/DEV/SDDCreate a physical volume, PVCREATE/DEV/SDC1PVCREATE/DEV/SDD1Physical Volume View: PvscanCreate a volume group; vgcreate VG111/DEV/SDC1/DEV/SDD1 Create a volume group named vg111, containing two physical volumes, SDC1,SDD1 Volume Group view: VgdisplayExample: Vgcreate-s 8M VFAST_VG/DEV/SDB1/DEV/SDCCreate Logical Volume: Lvcreate-l 5g-n lv222 vg111-l partition Capacity-L Specify how many pe-n specify the logical volume nameLv
; executiontimeout="1850" /> in order to set php.ini Here's the configuration. Open php.ini, first find file_uploads = ON, whether to allow the switch to upload files over HTTP. The default is on is open Upload_tmp_dir, the file is uploaded to the server where temporary files are stored, if not specified will be used the system default temporary folder Upload_max_filesize = 8m; Wang Wen Business, that is, allow the maximum size of the upload
, and avoid the problem of long SQL execution The default is 16M, and when the MySQL client or mysqld server receives a packet larger than max_allowed_packet byte, it emits a "packet too large" error. and close the connection. For some clients, if the communication packet is too large, a "lost connection to the MySQL server" error may be encountered during query execution. The default value is 16M. #dev-doc:http://dev.mysql.com/doc/refman/5.5/en/packet-too-large.html Max_allowed_packet = 32M
#innodb_log_file_size = 5M#innodb_log_buffer_size = 8M#innodb_flush_log_at_trx_commit = 1#innodb_lock_wait_timeout = 50[Mysqldump]QuickMax_allowed_packet = 16M[MySQL]No-auto-rehash# Remove The next comment character if you are not familiar with SQL#safe-updates[Isamchk]Key_buffer = 8MSort_buffer_size = 8M[Myisamchk]Key_buffer = 8MSort_buffer_size = 8M[Mysqlhotcop
Development environment: CentOS + Nginx + PHP + MySql + phpmyadmin
In the use of phpMyAdmin SQL database import, often need to upload large SQL data files, and at this time will often encounter Nginx error: 413 Request Entity Too Large.
To solve this problem, depending on the size of the uploaded data file, you need to adjust the parameter configuration in two locations:
1, php default upload file size limit of 2M, if more than 2M you need to modify the PHP configuration file php.ini inside t
|
+ ———————— + ————-+
There are 27,813,678,764 index read requests, 6,798,830 requests are not found in memory read the index directly from the hard disk, the probability of the index misses the cache is computed:
Key_cache_miss_rate =key_reads/key_read_requests * 100%, set at about 1/1000 better
The default configuration value is 8388600 (8M) and the host has 4GB memory, which can be tuned to 268435456 (256MB).
5) Query_cache_sizeUsing query bu
Recently encountered the database when the Phpadmin import problem, the new version of the Phpadmin import limit is 8M, the old version of the possible 2M, my database has dozens of trillion how can this be done?
First of all, if you have a stand-alone server or VPS can be found under Apache php.ini This file to modify this 8M or 2M restrictions, how to modify it?
Search to, modify these three
Copy
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.