RockyLinux 部署LNMP,mariadb启动脚本一直有问题
我在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
# ls
anaconda-ks.cfg
#
# lnmp status
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://lnmp.org |
+-------------------------------------------+
nginx (pid 816) is running...
php-fpm is runing!
SUCCESS! MariaDB running (1197)
# lnmp mariadb status
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://lnmp.org |
+-------------------------------------------+
SUCCESS! MariaDB running (1197)
# 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!
#
日志附件:链接:https://pan.baidu.com/s/1VS-CP79WwtTv22QRrUGHwA?pwd=v3yz
提取码:v3yz
licess 发表于 2023-1-12 11:00
缺少gnutls-devel 包,yum install gnutls-devel 就可以了
单独只安装数据库的话是不拷贝lnmp管理脚本过 ...
军哥一语答疑了我,我就说我用 mysql 是可以登录的,但是去管理的时候就不不行, 了解了。:lol -- 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就正常了
页:
[1]