VPS侦探论坛

 找回密码
 注册
查看: 3860|回复: 6

CentOS Stream release 8 Nginx MySQL安装失败

[复制链接]
发表于 2021-1-19 00:28:30 | 显示全部楼层 |阅读模式

  1. 依赖关系解决。
  2. 无需任何处理。
  3. 完毕!
  4. iptables: Saving firewall rules to /etc/sysconfig/iptables:[  OK  ]
  5. Redirecting to /bin/systemctl reload iptables.service
  6. Add iptables service at system startup...
  7. Add Startup and Starting LNMP...
  8. Add nginx service at system startup...
  9. Synchronizing state of nginx.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
  10. Executing: /usr/lib/systemd/systemd-sysv-install enable nginx
  11. Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /etc/systemd/system/nginx.service.
  12. Job for nginx.service failed because the control process exited with error code.
  13. See "systemctl status nginx.service" and "journalctl -xe" for details.
  14. Add mysql service at system startup...
  15. Synchronizing state of mysql.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
  16. Executing: /usr/lib/systemd/systemd-sysv-install enable mysql
  17. Add php-fpm service at system startup...
  18. Synchronizing state of php-fpm.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
  19. Executing: /usr/lib/systemd/systemd-sysv-install enable php-fpm
  20. Created symlink /etc/systemd/system/multi-user.target.wants/php-fpm.service → /etc/systemd/system/php-fpm.service.
  21. ============================== Check install ==============================
  22. Checking ...
  23. Error: Nginx install failed.
  24. Error: MySQL install failed.
  25. PHP: OK
  26. PHP-FPM: OK
  27. Sorry, Failed to install LNMP!
  28. Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
  29. You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.
复制代码






本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

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


更换过内核到5.10.8,升级过gcc到10.2.0
  1. Last login: Tue Jan 19 00:39:49 2021 from 10.168.1.101
  2. [root@localhost ~]# gcc -v
  3. 使用内建 specs。
  4. COLLECT_GCC=gcc
  5. COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/10.2.0/lto-wrapper
  6. 目标:x86_64-pc-linux-gnu
  7. 配置为:/home/install/gcc/configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
  8. 线程模型:posix
  9. Supported LTO compression algorithms: zlib
  10. gcc 版本 10.2.0 (GCC)
  11. [root@localhost ~]# cat /etc/redhat-release
  12. CentOS Stream release 8
  13. [root@localhost ~]# uname -r
  14. 5.10.8-1.el8.elrepo.x86_64
  15. [root@localhost ~]#
复制代码
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2021-1-19 08:11:38 | 显示全部楼层

文件系统             容量  已用  可用 已用% 挂载点
devtmpfs             3.9G     0  3.9G    0% /dev
tmpfs                3.9G     0  3.9G    0% /dev/shm
tmpfs                3.9G  9.0M  3.9G    1% /run
tmpfs                3.9G     0  3.9G    0% /sys/fs/cgroup
/dev/mapper/cl-root   17G   15G  3.0G   83% /
/dev/sda1           1014M  195M  820M   20% /boot
tmpfs                793M     0  793M    0% /run/user/0

。。。。
[ 26%] Building CXX object storage/perfschema/CMakeFiles/perfschema.dir/table_esms_by_host_by_event_name.cc.o
/tmp/ccbI2Q8q.s: Assembler messages:
/tmp/ccbI2Q8q.s: 致命错误:can't write 3919 bytes to section .debug_str of CMakeFiles/perfschema.dir/table_esms_by_host_by_event_name.cc.o: '设备上没有空间'
/tmp/ccbI2Q8q.s: 致命错误:can't close CMakeFiles/perfschema.dir/table_esms_by_host_by_event_name.cc.o: 设备上没有空间
make[2]: *** [storage/perfschema/CMakeFiles/perfschema.dir/build.make:745:storage/perfschema/CMakeFiles/perfschema.dir/table_esms_by_host_by_event_name.cc.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:4945:storage/perfschema/CMakeFiles/perfschema.dir/all] 错误 2


只要3GB的可用空间肯定远远不够用,mysql 8.0一般要至少9GB以上可用空间,安装教程上都有各种要求
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2021-1-19 13:24:27 | 显示全部楼层



本帖最后由 yxly33126 于 2021-1-19 13:27 编辑
licess 发表于 2021-1-19 08:11
只要3GB的可用空间肯定远远不够用,mysql 8.0一般要至少9GB以上可用空间,安装教程上都有各种要求 ...

军哥。改变磁盘大小后mysql安装好了,但是Nginx还是安装失败。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2021-1-19 13:34:57 | 显示全部楼层

  1. Uncompress nginx-1.18.0.tar.gz...
  2. cd nginx-1.18.0...
  3. checking for OS
  4. + Linux 5.10.8-1.el8.elrepo.x86_64 x86_64
  5. checking for C compiler ... found
  6. + using GNU C compiler
  7. + gcc version: 8.3.1 20191121 (Red Hat 8.3.1-5) (GCC)
  8. checking for gcc -pipe switch ... found
  9. checking for --with-ld-opt="'-ljemalloc'" ... not found
  10. ./configure: error: the invalid value in --with-ld-opt="'-ljemalloc'"

  11. make: *** 没有规则可制作目标“build”,由“default” 需求。 停止。
  12. make: *** 没有规则可制作目标“build”,由“default” 需求。 停止。
  13. make: *** 没有规则可制作目标“install”。 停止。
  14. cp: 无法创建普通文件'/usr/local/nginx/conf/nginx.conf': 没有那个文件或目录
  15. cp: 无法创建目录 '/usr/local/nginx/conf/': 没有那个文件或目录
  16. cp: 无法创建普通文件'/usr/local/nginx/conf/pathinfo.conf': 没有那个文件或目录
  17. cp: 无法创建普通文件'/usr/local/nginx/conf/enable-php.conf': 没有那个文件或目录
  18. cp: 无法创建普通文件'/usr/local/nginx/conf/enable-php-pathinfo.conf': 没有那个文件或目录
  19. cp: 无法创建目录 '/usr/local/nginx/conf/example': 没有那个文件或目录
  20. mkdir: 无法创建目录 “/usr/local/nginx/conf/vhost”: 没有那个文件或目录
  21. include/nginx.sh:行134: /usr/local/nginx/conf/fastcgi.conf: 没有那个文件或目录
  22. 3.9+
  23. sed:无法读取 /usr/local/nginx/conf/nginx.conf:没有那个文件或目录
  24. Create PHP Info Tool...
  25. Copy PHP Prober...
  26. Copy Opcache Control Panel...
复制代码

军哥运维代购:http://shop63846532.taobao.com/

发表于 2021-1-19 20:55:52 | 显示全部楼层


nginx没有找到jemalloc,不清楚什么原因
我们这边几个centos stream 8测试jemalloc、tcmalloc、不安装都是正常,你可以不开jemalloc试一下
 楼主| 发表于 2021-1-19 22:42:36 | 显示全部楼层

licess 发表于 2021-1-19 20:55
nginx没有找到jemalloc,不清楚什么原因
我们这边几个centos stream 8测试jemalloc、tcmalloc、不安装都 ...

好的,谢谢军哥,我试试。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-21 04:26 , Processed in 0.027860 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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