99偷拍视频精品区一区二,口述久久久久久久久久久久,国产精品夫妇激情啪发布,成人永久免费网站在线观看,国产精品高清免费在线,青青草在线观看视频观看,久久久久久国产一区,天天婷婷久久18禁,日韩动漫av在线播放直播

在Linux上如何檢查MySQL/MariaDB數據庫正常運行時間

這篇文章主要介紹了在Linux上如何檢查MySQL/MariaDB數據庫正常運行時間,具有一定借鑒價值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓小編帶著大家一起了解一下。

創新互聯建站專注于仁和網站建設服務及定制,我們擁有豐富的企業做網站經驗。 熱誠為您提供仁和營銷型網站建設,仁和網站制作、仁和網頁設計、仁和網站官網定制、成都微信小程序服務,打造仁和網絡公司原創品牌,更為您提供仁和網站排名全網營銷落地服務。

方法 1:如何使用 ps 命令在 Linux 上檢查 MySQL/MariaDB 數據庫的正常運行時間

rocess-monitoring/" class="ext" rel="external nofollow" target="_blank">ps 命令的意思是進程狀態process status。這是最基本的命令之一,它顯示了系統正在運行的進程的詳細信息。

為此,你首先需要使用 rocess-id-pid-ppid-linux/" class="ext" rel="external nofollow" target="_blank">pidof 命令查找 MySQL/MariaDB 的 PID。

# pidof mysqld | cut -d" " -f1 2412

獲取 MySQL/MariaDB 的 PID 后,請在 ps 命令中使用 --etime 選項獲得正常運行時間。

  • --etime:自進程啟動以來經過的時間,形式為 [[DD-]hh:]mm:ss

# ps -p 2412 -o etime    ELAPSED2-08:49:30

或者,在 ps 命令中使用 --lstart 選項來獲取指定 PID 的正常運行時間。

# ps -p 2412 -o lstart                 STARTEDSat May 2 03:02:15 2020

MySQL/MariaDB 進程已經運行了 2 天 03 小時 02 分 15 秒。

方法 2:如何使用 systemctl 命令在 Linux 上檢查 MySQL/MariaDB 數據庫的正常運行時間

systemctl 命令用于控制 systemd 系統和服務管理器。

systemd 是新的初始化系統和系統管理器,現在大多數 Linux 發行版都淘汰了傳統的 SysVinit 管理器而采用了 systemd。

# systemctl status mariadb或者# systemctl status mysql ● mariadb.service - MariaDB 10.1.44 database server   Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor     preset: disabled)  Drop-In: /etc/systemd/system/mariadb.service.d           └─migrated-from-my.cnf-settings.conf   Active: active (running) since Sat 2020-05-02 03:02:18 UTC; 2 days ago     Docs: man:mysqld(8)           https://mariadb.com/kb/en/library/systemd/  Process: 2448 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)  Process: 2388 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=/usr/bin/galera_recovery; [ $? -eq 0 ] && systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1 (code=exited, status=0/SUCCESS)  Process: 2386 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS) Main PID: 2412 (mysqld)   Status: "Taking your SQL requests now…"   CGroup: /system.slice/mariadb.service           └─2412 /usr/sbin/mysqld May 03 21:41:26 ns2.2daygeek.com mysqld[2412]: 2020-05-03 21:41:26 140328136861440 [Warning] Host name '1.1.1.1' could not be resolved: … not knownMay 04 02:00:46 ns2.2daygeek.com mysqld[2412]: 2020-05-04 2:00:46 140328436418304 [Warning] IP address '1.1.1.1' has been resolved to the host name '2…ss itself.May 04 03:01:31 ns2.2daygeek.com mysqld[2412]: 2020-05-04 3:01:31 140328436111104 [Warning] IP address '1.1.1.1' could not be resolved: Temporary fai…resolutionMay 04 04:03:06 ns2.2daygeek.com mysqld[2412]: 2020-05-04 4:03:06 140328136861440 [Warning] IP address '1.1.1.1' could not be resolved: Name or ser… not knownMay 04 07:23:54 ns2.2daygeek.com mysqld[2412]: 2020-05-04 7:23:54 140328435189504 [Warning] IP address '1.1.1.1' could not be resolved: Name or service not knownMay 04 08:03:31 ns2.2daygeek.com mysqld[2412]: 2020-05-04 8:03:31 140328436418304 [Warning] IP address '1.1.1.1' could not be resolved: Name or service not knownMay 04 08:25:56 ns2.2daygeek.com mysqld[2412]: 2020-05-04 8:25:56 140328135325440 [Warning] IP address '1.1.1.1' could not be resolved: Name or service not knownWarning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.Hint: Some lines were ellipsized, use -l to show in full.

方法 3:如何使用 MySQLAdmin 命令在 Linux 上檢查 MySQL/MariaDB 數據庫的正常運行時間

MySQLAdmin 是安裝 MySQL 軟件包時安裝的 MySQL 服務器命令行程序。

MySQLAdmin 客戶端允許你在 MySQL 服務器上執行一些基本的管理功能。

它用于創建數據庫、刪除數據庫、設置 root 密碼、更改 root 密碼、檢查 MySQL 狀態、驗證 MySQL 功能、監視 mysql 進程以及驗證服務器的配置。

# mysqladmin -u root -pPassword version mysqladmin Ver 8.42 Distrib 5.7.27, for Linux on x86_64Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners. Server version 5.7.27Protocol version 10Connection Localhost via UNIX socketUNIX socket /var/lib/mysql/mysql.sockUptime: 1 day 10 hours 44 min 13 sec

感謝你能夠認真閱讀完這篇文章,希望小編分享的“在Linux上如何檢查MySQL/MariaDB數據庫正常運行時間”這篇文章對大家有幫助,同時也希望大家多多支持創新互聯,關注創新互聯行業資訊頻道,更多相關知識等著你來學習!

文章標題:在Linux上如何檢查MySQL/MariaDB數據庫正常運行時間
URL地址:http://www.yijiale78.com/article44/gihdee.html

成都網站建設公司_創新互聯,為您提供自適應網站響應式網站網站營銷網站策劃品牌網站制作微信公眾號

廣告

聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯

成都app開發公司