use the system default temporary folderUpload_max_filesize = 8m; Hope business, that is, the maximum size allowed to upload files. Default is 2MPost_max_size = 8m; The maximum value that can be received by the form Post to PHP, including all values in the form. Default is 8MGenerally, after setting the above four parameters, uploading
However, if you want to upload a large volume of >
I'm pretty sure I've modified the file upload limit in php.ini and the file permissions are writable. Modify PHP.inifile_uploads = on; switch to allow uploading of files over HTTP. The default is on, which is openupload_tmp_dir; file upload to the server where temporary files are stored, if not specified will be used the system default temporary folder (Moodle can not change)upload_max_filesize = 8m; Allows the maximum size of the uploaded file.post_m
buffer, default 256K, one-time allocation when connection is created
join_buffer_size=262144
#指定连接侦听队列的大小, this value exceeds the tcp_max_syn_backlog/somaxconn of the OS and is recommended as an integer less than 512
back_log=512
#table_open_cache中岁多能打开的表数
Table_open_cache = 256
#一次消息传输量的最大值, is the maximum value of the Net_buffer_length
Max_allowed_packet=8m
#bin-log
#打开二进制日志
Log-bin=mysql-bin
Log-bin-index=mysql-bin.index
#日志格式, optional
. Default 151 Max_connect_errors = 6000#设置每个主机的连接请求异常中断的最大次数, when this number of times is exceeded, the MySQL server will disallow host connection requests until the MySQL server restarts or clears the host information through the flush hosts command. Default 100 external-locking = FALSE#使用 –skip-external-locking mysql option to avoid external locking. This option is turned on by default Max_allowed_packet = 32M#设置在网络传输中一次消息传输量的最大值. The system defaults to 4MB and the maximum value is 1GB, which
signal in the optical cable is 2.3x10^8m/s, in the copper cable transmission speed is 2.0x10^8m/s.The propagation speed of light is 3.0x10^8m/s, but because the optical cable uses reflection mechanism to spread, it is not direct, so the actual distance of the electric signal is much longer than the straight line, so the transmission speed in the optical cable is
Nginx upload parameter problem, need to pay special attention to client_max_body_size this parameter, otherwise will interrupt in Nginx request, in PHP cannot log to visit.
Modified the php.ini file as follows: Parameter setting descriptionFile_uploads on whether to allow the switch to upload files over HTTP. The default is on, which is openupload_tmp_dir– files are uploaded to the server where temporary files are stored, and the system default temporary folder is used if unspecifiedUpload_max_
that you do not adjust the max_execution_time, but only in the PHP program:
Set_time_limit (0);
Make temporary adjustments. Setting 0 means there is no time limit. Of course, from the point of view of program execution, set 0 is to solve the timeout problem, but in fact is not a good solution, if the program supports the continuation of the breakpoint, then set 600 seconds or 3,600 seconds also seems to be a better idea, time-out automatic breakpoint continued to pass.
Find post_max_
upload files over HTTP. The default is on, which is open
Upload_tmp_dir files are uploaded to the server where temporary files are stored, and the system default temporary folder is used if unspecified
Upload_max_filesize = 8m business, that is, the maximum size of the upload file allowed. The default is 2M
In;;;;;;;;;;;;;;;;;; Data handling;;;;;;;;;;;;;;;;;;Area, there is one more:
Post_max_size = 8m
be exhausted.Max_heap_table_size = 64M
# The sort buffer is used to handle the sort that is caused by the order by and the group by queue# If the sorted data cannot be placed in the sort buffer,# A disk-based merge classification that is used for substitution# View the ' sort_merge_passes ' state variable.# is assigned by each thread when the sort occursSort_buffer_size = 8M
# This buffer is used to optimize the Union (full joins union without inde
2.3x10^8m/s, in the copper cable transmission speed is 2.0x10^8m/s.The propagation speed of light is 3.0x10^8m/s, but because the optical cable uses the reflection mechanism to propagate, is not direct, therefore the electric signal actually goes the distance to be much longer than the straight line, therefore transmits the speed in the optical cable only 2.0x10
of a large memory table resulting in all memory resources being exhausted.Max_heap_table_size = 64M# sort buffers are used to handle orders that are similar to the order by and the group by queue# If the sorted data cannot be placed in the sort buffer,# An alternative disk-based merge classification will be used# View the "sort_merge_passes" status variable.# assigned by each thread when sorting occursSort_buffer_size = 8M# This buffer is used to opt
transaction first changes state. max_heap_table_size=64m### #独立的内存表所允许的最大容量 read_buffer_size=2m
### #MySql读入缓冲区大小.
read_rnd_buffer_size=16m### #是MySql的随机读缓冲区大小. sort_buffer_size=8m#### sort buffers are used to handle similar orderby and group The by queue causes the sort join_buffer_size=8m### #此缓冲被使用来优化全联合 (full
joins Union without an index). thread_cache_size=8### #我们在cache中保留多少线程用于重用 thread_concurrency
limits for a process. Together with the command to modify, for all the processes, this function can be for the current process. The corresponding command-type Ulimit.
Write test program validation: 1, program dead Loop, have printf, foreground boot and background boot to occupy the same CPU? 2, Open the file, and then close the file to say whether the time is too large. Okay. Average 50us (0.05 milliseconds) 3, open large file and open a small file, occupy the same time? Is the di
and then written to Binlog once committed# If the transaction is larger than this value, a temporary file on disk will be used instead.# This buffer is created when each connected transaction is first updated stateBinlog_cache_size = 1M
# The maximum allowable capacity of a separate memory table.# This option to prevent accidental creation of an oversized memory table causes all memory resources to be exhausted.Max_heap_table_size = 64M
# The sort buffer is used to handle the sort that is cau
dedicated server, else 10%.# innodb_buffer_pool_size = 128M # Remove Leading # to turn on a very important data integrity Option:logging # Changes
To the binary log between backups.
# Log_bin # These is commonly set, remove the # and set as required. user = MySQL Basedir =/app/mysql datadir =/app/mysql/data port=3306 Server-id = 1 Socket=/tmp/mysql.sock character-set-
Server = UTF8 #log-error =/var/log/mysql/error.log #pid-file =/var/log/mysql/mysql.pid General_log = 1 skip-name-resolve #skip-
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.