最新下载
热门教程
- 1
 - 2
 - 3
 - 4
 - 5
 - 6
 - 7
 - 8
 - 9
 - 10
 
阿里云ecs服务器 修改php上传最大限制的方法
时间:2022-06-25 00:36:10 编辑:袖梨 来源:一聚教程网
找到PHP.ini位置,可以通过phpinfo()查看
编辑php
vi/etc/php.ini  | 
修改
①upload_max_filesize 默认2m
②memory_limit 默认128m
③post_max_size 默认8m
修改保存后重启php-fpm和nginx
/etc/init.d/php-fpmstart /etc/init.d/php-fpmstop /etc/init.d/php-fpmrestart /etc/init.d/php-fpmreload  | 
service nginx start service nginx stop service nginx restart service nginx reload  | 
查看是否修改了
            
                                
                                
                                
                                
                                            
                                        
                                            
                                        
                                            
                                        
                                            
                                        
                                            
                                        
                                            
                                        
                                            
                                        
                                            
                                        
                                            
                                        
                                            
                                        
