Ku është skedari pidfile i procesit të bazës së të dhënave MySQL?Pyetni komandën pidfile MySQL

Meqenëse procesi MySQL në sistemet Linux ndonjëherë mund të rrëzohet, dhe instalimi dhe konfigurimi i programit të monitorimit MONIT kërkon qasje në skedarin pid të procesit të sistemit MySQL , por askush nuk e di se ku ose si ta gjejë këtë skedar pid, po e ndaj këtë informacion këtu!

Dy komandat e mëposhtme SSH mund të shikojnë procesin mysql:

ps -ef|grep mysqld

watch -n 1 "ps -ef | grep mysql"

SSH kthen rezultatet e pyetjes si më poshtë:

root 6206 1 0 16:19 ? 00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/centos-ufo.pid
mysql 6280 6206 3 16:19 ? 00:00:22 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --log-error=/var/lib/mysql/centos-ufo.err --pid-file=/var/lib/mysql/centos-ufo.pid
root 6691 1844 0 16:29 pts/0 00:00:00 grep mysqld

发表 评论

您的邮箱地址不会被公开。必填项已用*标注

Scroll to Top