新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
Debian10上安裝MariaDB教程(debianmake安裝)
在Debian 10上安裝MariaDB,可以使用debian make安裝,以下是詳細(xì)的步驟:

1、更新系統(tǒng)軟件包列表
sudo apt update
2、安裝必要的依賴
sudo apt install y buildessential libncurses5dev libssldev
3、下載MariaDB源碼包
訪問MariaDB官方下載頁面(https://downloads.mariadb.com/)選擇適合的版本,然后使用wget命令下載源碼包,下載MariaDB 10.4.10版本:
wget https://downloads.mariadb.com/MariaDB/mariadb_repo_setup/10.4/mariadb10.4.101+deb10u1mysqlalldev_amd64.deb
4、安裝MariaDB源碼包
sudo dpkg i mariadb10.4.101+deb10u1mysqlalldev_amd64.deb
5、配置MariaDB源
編輯/etc/apt/sources.list文件,添加以下內(nèi)容:
deb http://mirrors.aliyun.com/debian/ buster main nonfree contrib debsrc http://mirrors.aliyun.com/debian/ buster main nonfree contrib deb http://mirrors.aliyun.com/debiansecurity buster/updates main contrib nonfree debsrc http://mirrors.aliyun.com/debiansecurity buster/updates main contrib nonfree deb http://mirrors.aliyun.com/debian/ busterupdates main nonfree contrib debsrc http://mirrors.aliyun.com/debian/ busterupdates main nonfree contrib
6、更新系統(tǒng)軟件包列表
sudo apt update
7、安裝MariaDB服務(wù)器和客戶端工具
sudo apt install y mariadbserver mariadbclient
8、啟動MariaDB服務(wù)并設(shè)置開機自啟動
sudo systemctl start mariadb sudo systemctl enable mariadb
9、運行安全安裝腳本以設(shè)置root密碼和其他安全選項
sudo mysql_secure_installation
按照提示設(shè)置root密碼、刪除匿名用戶、禁止遠(yuǎn)程root登錄等,完成后,MariaDB應(yīng)該已經(jīng)成功安裝在Debian 10上了。
分享標(biāo)題:Debian10上安裝MariaDB教程(debianmake安裝)
地址分享:http://fisionsoft.com.cn/article/djchpje.html


咨詢
建站咨詢
