VPS侦探论坛

 找回密码
 注册
查看: 1795|回复: 2

RockyLinux 部署LNMP,mariadb启动脚本一直有问题

[复制链接]
发表于 2023-1-11 21:05:12 | 显示全部楼层 |阅读模式

我在RockyLinux9 中用脚本部署LNMP,在部署mariadb时,正常能部署,但是lnmp命令管理不到mariadb,然后我在查看对应报错,一直在报错
  1. Shutting down MariaDB./etc/init.d/mariadb: line 228: log_success_msg: command not found
复制代码



我重新去 mariadb 官网下载新的包,并替换启动脚本后,正常可以使用 lnmp 命令来管理mariadb

  1. Last login: Wed Jan 11 19:23:09 2023 from 192.168.56.1
  2. [root@localhost ~]# ls
  3. anaconda-ks.cfg
  4. [root@localhost ~]#
  5. [root@localhost ~]# lnmp status
  6. +-------------------------------------------+
  7. |    Manager for LNMP, Written by Licess    |
  8. +-------------------------------------------+
  9. |              https://lnmp.org             |
  10. +-------------------------------------------+
  11. nginx (pid 816) is running...
  12. php-fpm is runing!
  13. SUCCESS! MariaDB running (1197)
  14. [root@localhost ~]# lnmp mariadb status
  15. +-------------------------------------------+
  16. |    Manager for LNMP, Written by Licess    |
  17. +-------------------------------------------+
  18. |              https://lnmp.org             |
  19. +-------------------------------------------+
  20. SUCCESS! MariaDB running (1197)
  21. [root@localhost ~]# lnmp mariadb restart
  22. +-------------------------------------------+
  23. |    Manager for LNMP, Written by Licess    |
  24. +-------------------------------------------+
  25. |              https://lnmp.org             |
  26. +-------------------------------------------+
  27. Shutting down MariaDB. SUCCESS!
  28. Starting MariaDB.230111 20:56:50 mysqld_safe Logging to '/usr/local/mariadb/var/mariadb.err'.
  29. 230111 20:56:50 mysqld_safe Starting mariadbd daemon with databases from /usr/local/mariadb/var
  30. SUCCESS!
  31. [root@localhost ~]#
复制代码



日志附件:链接:https://pan.baidu.com/s/1VS-CP79WwtTv22QRrUGHwA?pwd=v3yz
提取码:v3yz

相关帖子

美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2023-1-12 15:20:46 | 显示全部楼层


licess 发表于 2023-1-12 11:00
缺少gnutls-devel 包,yum install gnutls-devel 就可以了

单独只安装数据库的话是不拷贝lnmp管理脚本过 ...

军哥一语答疑了我,我就说我用 mysql 是可以登录的,但是去管理的时候就不不行  , 了解了。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2023-1-12 11:00:56 | 显示全部楼层

-- Looking for setsockopt - found
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find GnuTLS (missing: GNUTLS_LIBRARY GNUTLS_INCLUDE_DIR)
  (Required is at least version "3.3.24")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindGnuTLS.cmake:68 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  libmariadb/CMakeLists.txt:311 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "/usr/local/src/lnmp1.9/src/mariadb-10.3.35/CMakeFiles/CMakeOutput.log".

缺少gnutls-devel 包,yum install gnutls-devel 就可以了

单独只安装数据库的话是不拷贝lnmp管理脚本过去的

Shutting down MariaDB./etc/init.d/mariadb: line 228: log_success_msg: command not found
这个提示也不影响mariadb的运行,只是因为RHEL9全系都已经转向systemd了,不再默认保留init scripts了,所以就报错了,再装上init scripts就正常了
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-23 19:05 , Processed in 0.026936 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表