VPS侦探论坛

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

lnmp1.8离线安装lnmp失败

[复制链接]
发表于 2022-11-22 17:44:55 | 显示全部楼层 |阅读模式



麻烦大佬帮忙看下哪里出错了,十分感激。


============================== Check install ==============================
Checking ...
Nginx: OK
MySQL: OK
Error: PHP install failed.
Sorry, Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.






安装日志 https://tmp.link/f/637c98dc4adc1
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2022-11-23 09:08:24 | 显示全部楼层


configure: error: Package requirements (freetype2) were not met:

No package 'freetype2' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables FREETYPE2_CFLAGS
and FREETYPE2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

有可能系统环境变量有问题,php未找到freetype
可以尝试执行:export PKG_CONFIG_PATH=/usr/local/freetype/lib/pkgconfig:$PKG_CONFIG_PATH
后再重新安装lnmp
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2022-11-23 11:01:35 | 显示全部楼层

licess 发表于 2022-11-23 09:08
有可能系统环境变量有问题,php未找到freetype
可以尝试执行:export PKG_CONFIG_PATH=/usr/local/freetyp ...

感谢大佬,按照您的方法已经成功安装了,但是我页面无法访问,防火墙和安全策略都关了。
浏览器提示信息:嗯… 无法访问此页面191.168.1.12 花了太长时间进行响应


[root@linux local]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
   Active: inactive (dead)
     Docs: man:firewalld(1)

11月 23 10:45:59 linux systemd[1]: Starting firewalld - dynamic firewall daemon...
11月 23 10:45:59 linux systemd[1]: Started firewalld - dynamic firewall daemon.
11月 23 10:46:00 linux firewalld[85207]: WARNING: AllowZoneDrifting is enabled. This is considered an insecure configuration option. It will... it now.
11月 23 10:46:10 linux systemd[1]: Stopping firewalld - dynamic firewall daemon...
11月 23 10:46:10 linux systemd[1]: Stopped firewalld - dynamic firewall daemon.
11月 23 10:46:10 linux systemd[1]: Starting firewalld - dynamic firewall daemon...
11月 23 10:46:10 linux systemd[1]: Started firewalld - dynamic firewall daemon.
11月 23 10:46:10 linux firewalld[85361]: WARNING: AllowZoneDrifting is enabled. This is considered an insecure configuration option. It will... it now.
11月 23 10:54:37 linux systemd[1]: Stopping firewalld - dynamic firewall daemon...
11月 23 10:54:37 linux systemd[1]: Stopped firewalld - dynamic firewall daemon.
Hint: Some lines were ellipsized, use -l to show in full.
[root@linux local]# cat /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

补充内容 (2022-11-23 11:19):
服务都正常启动

补充内容 (2022-11-23 13:13):
没问题了,犯了个低级错误,记错ip了
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-23 21:56 , Processed in 0.025941 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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