账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    安装nginx中的错误
    33
    0

    我下载了nginx的tar包,然后进行安装

    发现pcre不存在
    然后下载pcre 的tar包到/home/temp
    然后configure&make&make install
    安装后发现要用的是源码,而不是安装
    就把源码复制到/usr/local/src/下,
    然后命令:

    ./configure  --prefix=/usr/local/nginx --with-pcre=/usr/local/src/pcre-8.40

    接着

    [root@nginx-server nginx-1.13.8]# make
    make -f objs/Makefile
    make[1]: Entering directory `/home/temp/nginx-1.13.8'
    cd /usr/local/src/pcre-8.40 \
            && if [ -f Makefile ]; then make distclean; fi \
            && CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
            ./configure --disable-shared 
    make[2]: Entering directory `/usr/local/src/pcre-8.40'
    CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/temp/pcre-8.40/missing aclocal-1.15 -I m4
    /home/temp/pcre-8.40/missing: line 81: aclocal-1.15: command not found
    WARNING: 'aclocal-1.15' is missing on your system.
             You should only need it if you modified 'acinclude.m4' or
             'configure.ac' or m4 files included by 'configure.ac'.
             The 'aclocal' program is part of the GNU Automake package:
             <http://www.gnu.org/software/automake>;
             It also requires GNU Autoconf, GNU m4 and Perl in order to run:
             <http://www.gnu.org/software/autoconf>;
             <http://www.gnu.org/software/m4/>;
             <http://www.perl.org/>;
    make[2]: *** [aclocal.m4] Error 127
    make[2]: Leaving directory `/usr/local/src/pcre-8.40'
    make[1]: *** [/usr/local/src/pcre-8.40/Makefile] Error 2
    make[1]: Leaving directory `/home/temp/nginx-1.13.8'
    make: *** [build] Error 2

    怎么办啊?

    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 安装Nginx时,可能会遇到各种错误。下面是一些可能的错误及其解决方法:

      1. nginx version 1.11.0 cannot be built: 这是因为Nginx版本过旧,需要升级到最新版本。你可以通过在终端中运行sudo apt-get updatesudo apt-get upgrade来解决这个问题。

      2. nginx not found: 这是因为Nginx没有找到。你可以通过在终端中运行which nginx来查找Nginx的位置。

      3. nginx:建库失败: 这是因为你的系统上没有安装Python和pip。你可以通过在终端中运行sudo apt-get install python3 python3-pip来解决这个问题。

      4. nginx: Could not initialize configuration: 这是因为你的Nginx配置文件没有正确安装。你可以通过在终端中运行sudo apt-get install nginx来解决这个问题。

      5. nginx: unable to start server: unable to resolve hostname: 这是因为你的系统上没有安装域名服务器。你可以通过在终端中运行sudo apt-get install bind9来解决这个问题。

      6. nginx: configuration file /etc/nginx/nginx.conf:正在编辑: 这是因为你的Nginx配置文件正在被编辑。你可以通过在终端中运行sudo apt-get install nginx来解决这个问题。

      以上就是安装Nginx时可能出现的一些错误及其解决方法。如果问题仍然存在,可能需要寻求专业的技术支持。

    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部