高版本PhpStorm Function如果有多个变量并换行,会自动两边对齐属性,不符合代码规范,需要在Settings>Editor>Code Style>PHP->Wrapping and Braces->Function declaration parameters中去掉Align when multiline的勾选框且勾选Keep ')' and '{' on one line
#统计所有数据库从大到小排列 select TABLE_SCHEMA,round(SUM(DATA_LENGTH + INDEX_LENGTH)/1024/1024,2) as data from information_schema.tables GROUP BY TABLE_SCHEMA order by data desc; #统计数据库大小 select round(SUM(DATA_LENGTH + INDEX_LENGTH)/1024/1024,2) as data from information_schema.tables where TABLE_SCHEMA="xxxxxx"; #统计数据表大小 select table_name,round(SUM(DATA_LENGTH + INDEX_LENGTH)/1024/1024,2) as data from information_schema.tables where TABLE_SCHEMA="xxxxxx" GROUP BY table_name order by data desc; #批量修改域名 UPDATE core_config_data SET value = replace (value,'xxx.xxx.com','xxx.xxx.local') WHERE value LIKE '%xxx.xxx.com%';
{ daily missingok rotate 365 maxage 365 compress copytruncate prerotate # logrotate fails if the .1 file already exists, which only # ever happens if the last copytruncate failed, or during the # first run after delaycompress is disabled. When this script # runs, older logs have already been rotated, so it's safe to # rotate an unexpected log.1 file into log.2.gz. Sometimes the # argument already has a .1 suffix, so strip it. [ -e "${1%.1}.1" ] && sudo -u -g bash -c "gzip --best < \"${1%.1}.1\" > \"${1%.1}.2.gz\"" && rm "${1%.1}.1" true endscript notifempty create 0640 www www su www www lastaction chown www:www -R /var/www/magento2/var/log/*.log # fix files with broken permissions chown www:www -R /var/www/magento2/var/log/*.log.[0-9]*.gz 2>/dev/null || true endscript }
curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.