配置文件
// MySQL/etc/my.cnf// PHP/usr/local/php/etc/php.ini
重启服务
// Nginx
service nginx {start|stop|status|restart|reload|configtest}
// MySQL
service mysqld {start|stop|restart|reload|status}
// PHP
service php-fpm {start|stop|restart|reload|status}
操作日志
20-12-30
vi /etc/my.cnf
// 在[mysqld]下添加sql_mode
[mysqld]
sql_mode=NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER
service mysqld restart
21-03-11
关闭Opcache缓存。
$ vi /usr/local/php/etc/php.d/02-opcache.ini
# 配置关闭
# 修改前
opcache.enable = 1; opcache.enable_cli= 1;
# 修改后
opcache.enable = 0; opcache.enable_cli= 0;
$ service php-fpm restart
