宝塔安装negnix报错

 + ngx_http_dav_ext_module was configured

checking for zlib library ... found checking for libxslt ... not found checking for libxslt in /usr/local/ ... not found checking for libxslt in /usr/pkg/ ... not found checking for libxslt in /opt/local/ ... not found ./configure: error: the HTTP XSLT module requires the libxml2/libxslt libraries. You can either do not enable the module or install the libraries. make: *** No rule to make target 'build', needed by 'default'. Stop. make: *** No rule to make target 'install'. Stop. ======================================================== Ubuntu 20.04.6 LTS \l Bit:64 Mem:3919M Core:4 gcc:9.4.0 cmake:3.16.3 Linux 5.4.0-163-generic x86_64 ERROR: nginx-1.22.1 installation failed.

The error you're encountering during the installation of Nginx indicates that the HTTP XSLT module requires the libxml2 and libxslt libraries, and these libraries are not found on your system. To resolve this issue, you need to install the required libraries and then recompile Nginx. Here are the steps to do that on Ubuntu 20.04:

  1. Install the required libraries:
bash
sudo apt update sudo apt install libxml2 libxslt-dev
  1. After installing the libraries, you can recompile and install Nginx. Make sure you're in the Nginx source code directory where you ran ./configure previously.
bash
make sudo make install

These commands will rebuild Nginx with the HTTP XSLT module enabled since you've already configured it earlier.

  1. Once the installation is complete, you can check if Nginx is running:
bash
sudo systemctl status nginx

This should display the status of the Nginx service, indicating whether it's active and running.

  1. If Nginx isn't running, you can start it with:
bash
sudo systemctl start nginx
  1. Finally, you may want to enable Nginx to start automatically at boot:
bash
sudo systemctl enable nginx

This will ensure that Nginx starts automatically when you reboot your server.

Now, Nginx should be installed and running on your system with the HTTP XSLT module enabled. You can check the Nginx version and configuration to verify:

bash
nginx -v nginx -V

These commands will display the Nginx version and compile-time configuration options, including the modules that are enabled. Make sure the HTTP XSLT module is listed in the output to confirm that it's enabled.

评论

此博客中的热门博文

Clash Verge系列使用最佳实践

X-UI 安装使用教程,支持多协议多用户的 Xray 可视化面板

非 root 用户自建 v2ray 梯子 (serv00-vmess)

使用一键脚本,部署 Hysteria 2(歇斯底里)协议节点-尚未完成小火煎的配置

Telegram RSS机器人-Flowerss bot比较全面的安装教程

使用x-ui面板中转流量解锁流媒体-服务器端分流节点

最新11个可用的TG代理,请收藏!

Serv00搭建各种服务

VPS挂机流量

X-for-Serv00 让你的 Serv00 节点获得更好的体验