ESC升级配置:需要在控制台来重启服务器生效。
RDS升级配置:并非网上说的30秒,是根据数据库的大小。最好是在没有连接的情况下升级。140G几乎用了一晚上。
配置php和nginx
php要根据内存大小来配置
否则会出现502 504等
mysql> show status like ‘%Threads_connected%‘;
+-------------------------+-------+
| Variable_name | Value |
+-------------------------+-------+
| Extra_threads_connected | 0 |
| Threads_connected | 14 |
+-------------------------+-------+
2 rows in set (0.00 sec)
mysql> show variables like "max_connections";
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| max_connections | 2512 |
+-----------------+-------+
1 row in set (0.00 sec)
mysql>