mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-13 03:40:27 +08:00
安装mysql时预先安装 numactl-libs
This commit is contained in:
@@ -102,7 +102,7 @@ func (this *MySQLInstaller) InstallFromFile(xzFilePath string, targetDir string)
|
|||||||
} else { // yum
|
} else { // yum
|
||||||
yumExe, err := exec.LookPath("yum")
|
yumExe, err := exec.LookPath("yum")
|
||||||
if err == nil && len(yumExe) > 0 {
|
if err == nil && len(yumExe) > 0 {
|
||||||
for _, lib := range []string{"libaio", "ncurses-libs", "ncurses-compat-libs"} {
|
for _, lib := range []string{"libaio", "ncurses-libs", "ncurses-compat-libs", "numactl-libs"} {
|
||||||
var cmd = utils.NewCmd("yum", "-y", "install", lib)
|
var cmd = utils.NewCmd("yum", "-y", "install", lib)
|
||||||
_ = cmd.Run()
|
_ = cmd.Run()
|
||||||
time.Sleep(1 * time.Second)
|
time.Sleep(1 * time.Second)
|
||||||
|
|||||||
Reference in New Issue
Block a user