
私は走っていますセントOS7VPS 上のサーバーを停止しようとしていますmysqld
。
空で何も入っていません。
すぐに停止できますが、約 10 ~ 20 秒後に自動的に再起動します。
これらの方法のどれでもない永久に動作します!
ルートアクセス権があります。
# mysqladmin -u root -p shutdown
# /bin/systemctl stop mysqld.service
# killall -KILL mysql mysqld_safe mysqld
#
# mysql --version
mysql Ver 15.1 Distrib 5.5.63-MariaDB, for Linux (x86_64) using readline 5.1
および/var/lib/mysql
エラーログ
190520 20:46:06 mysqld_safe mysqld from pid file /var/lib/mysql/server.shakiba.it.pid ended
190520 20:47:01 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
190520 20:47:01 [Note] /usr/sbin/mysqld (mysqld 5.5.63-MariaDB) starting as process 30381 ...
190520 20:47:01 InnoDB: The InnoDB memory heap is disabled
190520 20:47:01 InnoDB: Mutexes and rw_locks use GCC atomic builtins
190520 20:47:01 InnoDB: Compressed tables use zlib 1.2.7
190520 20:47:01 InnoDB: Using Linux native AIO
190520 20:47:01 InnoDB: Initializing buffer pool, size = 128.0M
190520 20:47:01 InnoDB: Completed initialization of buffer pool
190520 20:47:01 InnoDB: highest supported file format is Barracuda.
190520 20:47:02 InnoDB: Waiting for the background threads to start
190520 20:47:03 Percona XtraDB (http://www.percona.com) 5.5.61-MariaDB-38.13 started; log sequence number 2746956
190520 20:47:03 [Note] Plugin 'FEEDBACK' is disabled.
190520 20:47:03 [Note] Server socket created on IP: '0.0.0.0'.
190520 20:47:03 [Note] Event Scheduler: Loaded 0 events
190520 20:47:03 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.5.63-MariaDB' socket: '/var/lib/mysql/mysql.sock' port: 3306 MariaDB Server
答え1
root
私はサーバー(VPS)にアクセスしていたので、直接管理コマンドを拒否することもできますroot
が、拒否しました。
でサービスモニターDAのセクションでは、停止/開始できますmysqld
。それだけです。