lnmp1.8离线安装lnmp失败
麻烦大佬帮忙看下哪里出错了,十分感激。
============================== 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
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 licess 发表于 2022-11-23 09:08
有可能系统环境变量有问题,php未找到freetype
可以尝试执行:export PKG_CONFIG_PATH=/usr/local/freetyp ...
感谢大佬,按照您的方法已经成功安装了,但是我页面无法访问,防火墙和安全策略都关了。
浏览器提示信息:嗯… 无法访问此页面191.168.1.12 花了太长时间进行响应
# 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: Starting firewalld - dynamic firewall daemon...
11月 23 10:45:59 linux systemd: Started firewalld - dynamic firewall daemon.
11月 23 10:46:00 linux firewalld: WARNING: AllowZoneDrifting is enabled. This is considered an insecure configuration option. It will... it now.
11月 23 10:46:10 linux systemd: Stopping firewalld - dynamic firewall daemon...
11月 23 10:46:10 linux systemd: Stopped firewalld - dynamic firewall daemon.
11月 23 10:46:10 linux systemd: Starting firewalld - dynamic firewall daemon...
11月 23 10:46:10 linux systemd: Started firewalld - dynamic firewall daemon.
11月 23 10:46:10 linux firewalld: WARNING: AllowZoneDrifting is enabled. This is considered an insecure configuration option. It will... it now.
11月 23 10:54:37 linux systemd: Stopping firewalld - dynamic firewall daemon...
11月 23 10:54:37 linux systemd: Stopped firewalld - dynamic firewall daemon.
Hint: Some lines were ellipsized, use -l to show in full.
# 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了
页:
[1]