配置wp-config.php
define( 'WP_DEBUG', true );// just toggle this line to false to turn off if ( WP_DEBUG ) { define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 ); }
查看日志
/usr/local/nginx-1.16.10/html/wordpress/wp-content cat debug.log