- 积分
 - 61
 
- 威望
 -  
 
- 金钱
 -  
 
- 注册时间
 - 2021-12-8
 
- 在线时间
 -  小时
 
- 最后登录
 - 1970-1-1
 
 
 
 
 
 
 | 
 
我在RockyLinux9 中用脚本部署LNMP,在部署mariadb时,正常能部署,但是lnmp命令管理不到mariadb,然后我在查看对应报错,一直在报错  
- Shutting down MariaDB./etc/init.d/mariadb: line 228: log_success_msg: command not found
 
  复制代码 
 
 
我重新去 mariadb 官网下载新的包,并替换启动脚本后,正常可以使用 lnmp 命令来管理mariadb 
 
- Last login: Wed Jan 11 19:23:09 2023 from 192.168.56.1
 
 - [root@localhost ~]# ls
 
 - anaconda-ks.cfg
 
 - [root@localhost ~]#
 
 - [root@localhost ~]# lnmp status
 
 - +-------------------------------------------+
 
 - |    Manager for LNMP, Written by Licess    |
 
 - +-------------------------------------------+
 
 - |              https://lnmp.org             |
 
 - +-------------------------------------------+
 
 - nginx (pid 816) is running...
 
 - php-fpm is runing!
 
 -  SUCCESS! MariaDB running (1197)
 
 - [root@localhost ~]# lnmp mariadb status
 
 - +-------------------------------------------+
 
 - |    Manager for LNMP, Written by Licess    |
 
 - +-------------------------------------------+
 
 - |              https://lnmp.org             |
 
 - +-------------------------------------------+
 
 -  SUCCESS! MariaDB running (1197)
 
 - [root@localhost ~]# lnmp mariadb restart
 
 - +-------------------------------------------+
 
 - |    Manager for LNMP, Written by Licess    |
 
 - +-------------------------------------------+
 
 - |              https://lnmp.org             |
 
 - +-------------------------------------------+
 
 - Shutting down MariaDB. SUCCESS!
 
 - Starting MariaDB.230111 20:56:50 mysqld_safe Logging to '/usr/local/mariadb/var/mariadb.err'.
 
 - 230111 20:56:50 mysqld_safe Starting mariadbd daemon with databases from /usr/local/mariadb/var
 
 -  SUCCESS!
 
 - [root@localhost ~]#
 
 
  复制代码 
 
 
日志附件:链接:https://pan.baidu.com/s/1VS-CP79WwtTv22QRrUGHwA?pwd=v3yz  
提取码:v3yz 
 |   
 
 
 
 |