$realpath_root 和 $document_root 区别

$realpath_root:

an absolute pathname corresponding to the root or alias directive’s value for the current request, with all symbolic links resolved to real paths

如果是符号链接,$realpath_root指向符号链接的真实路径

$document_root:

root or alias directive’s value for the current request

$document_root 是root或alias指定的值

ln -s 两次无限递归问题:给目录创建两次软链接会出现无限递归

例如:

ln -s /var/www/php/ /mnt/www/blog
# 第一次会创建出“/mnt/www/blog -> /var/www/php/” 这个软链接
ln -s /var/www/php/ /mnt/www/blog
# 第二次会创建出“/var/www/php/php -> /var/www/php/” 这个软链接
# 第三次会提示 File exists

解决办法:(创建前判断下目标是否存在即可)

[ ! -e /mnt/www/blog ] && ln -s /var/www/php /mnt/www/blog

DbMySQLQuery.resultFieldStringValueByName(): MySQL_ResultSet::isNull: invalid value of ‘columnLabel’

The proposed solution “[3 Feb 16:10] Adam Latchem” worked for me, in the context of MySQL Workbench connecting to a MariaDB database. The fix (for definiteness) is to edit the file C:\Program Files\MySQL\MySQL Workbench 8.0 CE\modules\wb_admin_connections.py at line 346, to change it from

("DB", mforms.StringColumnType, "DB", 100),

to

("db", mforms.StringColumnType, "DB", 100),

(note change of case in first argument).

nginx: worker process is shutting down

nginx: worker process is shutting down,这个是nginx reload后可能会出现的,应该是继续处理未结束线程用的。

如果你的超时相关配置设置了很长时间,那么这个线程也会存在很长时间。