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 mysqldwatch -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 mysqldShpresojmë që artikulli "Ku është procesi i bazës së të dhënave MySQL pidfile? Komanda për të pyetur pidfile-in MySQL" i ndarë në blogun e Chen Weiliang ( https://www.chenweiliang.com/ ) do t'ju jetë i dobishëm.
Ndihuni të lirë të ndani lidhjen e këtij artikulli: https://www.chenweiliang.com/cwl-438.html
