威尼斯手机平台登陆-官方网站登录

威尼斯手机平台登陆为您带来世界三大博彩公司最新相关资讯,威尼斯官方网站登录充分考虑到不同地域网民的不同需求,威尼斯手机平台登陆良好的用户界面,人性化的操作,实用的功能设计使其广泛受到欢迎,推动实体出版、影视、动漫、游戏等相关文化产业的发展。

您的位置:威尼斯手机平台登陆 > 最新文章 > 软件版本,选择下载相应版本

软件版本,选择下载相应版本

发布时间:2020-03-04 19:15编辑:最新文章浏览(70)

    时有时无编写翻译php5

    软件版本:php-5.4.27

    依赖库:zlib,libxml2

    接力编写翻译器:arm-hisiv200-linux-gnueabi

    1. 将接力编写翻译器路线加多到PATH中, 小编的陆陆续续编写翻译器目录为/usr/local/arm-hisiv200-linux/,而交叉编译器在时断时续编写翻译器目录的/bin中,在支配台输入

      PATH=$PATH:/usr/local/arm-hisiv200-linux/bin/
      
    2. 先是先交叉编写翻译zlib,进入zlib源码目录。

    3. 执行CC=arm-hisiv200-linux-gnueabi-gcc  ./configure  –shared  –prefix=ZLIB_PATH(编写翻译成功后的安装路线卡塔尔
    4. make && make install
    5. 在ZLIB_PATH中会有编写翻译成功后的文本和安插。
    6. 接下来交叉编写翻译libxml2,步入libxml2源码目录。
    7. 执行CC=arm-hisiv200-linux-gnueabi-gcc  ./configure  –host=arm-hisiv200-linux-gnueabi  –prefix=LIBXML2_PATH(编写翻译成功后的设置路线卡塔尔
    8. make && make install
    9. 在LIBXML2_PATH中会有编写翻译成功后的文书和计划。
    10. 开班时有时无编写翻译php5,步向php5源码目录。
    11. 先是先推行./buildconf  –force,为了幸免出现 cp:cannot stat ‘sapi/cli/php.1′: No such file or directory
    12. 执行./configure  –host=arm-hisiv200-linux-gnueabi  –enable-shared  –with-zlib-dir=ZLIB_PATH  –with-libxml-dir=LIBXML2_PATH  –disable-phar  –with-sqlite  –with-pdo-sqlite  –without-iconv  –enable-fpm  –prefix=PHP5_PATH
    13. make && make install
    14. 编写翻译好的php程序及结构就在PHP5_PATH中。

    我用的linux系统是 centos7.1。

    (1)安装nginx

    交叉编写翻译nginx

    软件版本:nginx-1.6.2

    依据源码:pcre,zlib(这里是内需使用它们的源码卡塔尔(قطر‎

    交叉编写翻译器:arm-hisiv200-linux-gnueabi

    linux版本:30人ubuntu(那一个很主要,首就算应用31个人x86系统本领进行编译成功,因为字长不相同等卡塔尔国

    穿插编写翻译nginx与接力编写翻译php5差别正是nginx用的是依靠的库的源码,而php5用的是库文件。

    1. 步入nginx-1.6.2源码目录。
    2. 在配置和编写翻译nginx会身不由己众多荒谬,大家三个四个减轻,首先自个儿使用的configure配置如下:

      #!/bin/bash
      
      CC_PATH=/home/shanlink/Cross_compile/arm-hisiv200-linux/bin/arm-hisiv200-linux-gnueabi-gcc
      CPP_PATH=/home/shanlink/Cross_compile/arm-hisiv200-linux/bin/arm-hisiv200-linux-gnueabi-g++
      INSTALL_PATH=/home/shanlink/Cross_compile/nginx_ccs/
      PCRE_PATH=/home/shanlink/Cross_compile/pcre-8.11/
      ZLIB_PATH=/home/shanlink/Cross_compile/zlib-1.2.3/
      CC_OPTS="-I /home/shanlink/Cross_compile/arm-hisiv200-linux/target/include/"
      
      ./configure --prefix=$INSTALL_PATH --with-zlib=$ZLIB_PATH --with-pcre=$PCRE_PATH --with-cc=$CC_PATH --with-cpp=$CPP_PATH --with-cc-opt=$CC_POTS --with-ld-opt="-L /home/shanlink/Cross_compile/arm-hisiv200-linux/target/lib/"
      
    3. 好的,把上述内容做成叁个运维脚本,运维,现身一个错误:

      checking for OS
       + Linux 3.13.0-43-generic x86_64
      checking for C compiler ... found but is not working
      
      ./configure: error: C compiler /home/shanlink/Cross_compile/arm-hisiv200-linux/bin/arm-hisiv200-linux-gnueabi-gcc is not found
      

      消除办法正是:编辑auto/cc/name文件,在文件起先犹如下一段,注释掉exit 1

      if [ "$NGX_PLATFORM" != win32 ]; then
      
          ngx_feature="C compiler"
          ngx_feature_name=
          ngx_feature_run=yes
          ngx_feature_incs=
          ngx_feature_path=
          ngx_feature_libs=
          ngx_feature_test=
          . auto/feature
      
          if [ $ngx_found = no ]; then
              echo
              echo $0: error: C compiler $CC is not found
              echo
              #exit 1        注释掉这一行     
          fi
      
      fi
      
    4. 双重运转我们的安排脚本,那个时候现身

      checking for TCP_INFO ... found
      checking for accept4() ... found
      checking for int size ...objs/autotest: 1: objs/autotest: Syntax error: word unexpected (expecting ")")
        bytes
      
      ./configure: error: can not detect int size
      cat: objs/autotest.c: No such file or directory
      

      化解方法:编辑auto/types/sizeof文件,找到

      ngx_test="$CC $CC_TEST_FLAGS $CC_AUX_FLAGS 
                -o $NGX_AUTOTEST $NGX_AUTOTEST.c $NGX_LD_OPT $ngx_feature_libs"
      
      将的$CC改为x86上使用的gcc
      
      ngx_test="gcc $CC_TEST_FLAGS $CC_AUX_FLAGS 
                -o $NGX_AUTOTEST $NGX_AUTOTEST.c $NGX_LD_OPT $ngx_feature_libs"
      
    5. 双重运转我们的安顿脚本,那时应该能够顺遂配置完毕。

    6. 实行make,当时会现出一个不当

      checking for C compiler default output file name... a.out
      checking for suffix of executables... 
      checking whether we are cross compiling... configure: error: in `/home/shanlink/Cross_compile/pcre-8.11':
      configure: error: cannot run C compiled programs.
      If you meant to cross compile, use `--host'.
      See `config.log' for more details.
      make[1]: *** [/home/shanlink/Cross_compile/pcre-8.11//Makefile] Error 1
      make[1]: Leaving directory `/home/shanlink/Cross_compile/nginx-1.6.2'
      make: *** [build] Error 2
      

      其一是出于nginx在编写翻译时会同有的时候候安排pcre何况开展编写翻译,而鉴于是穿插编写翻译,pcre的布署时索要增多–host=arm-hisiv200-linux-gnueabi,因为是由nginx自动配置的,所以我们须求手动增多此选项于pcre,然后再make,此选项增加在

      文件:objs/Makefile
      
      找到如下一段:
      /home/shanlink/Cross_compile/pcre-8.11//Makefile:    objs/Makefile
          cd /home/shanlink/Cross_compile/pcre-8.11/ 
          && if [ -f Makefile ]; then $(MAKE) distclean; fi 
          && CC="$(CC)" CFLAGS="-O2 -fomit-frame-pointer -pipe " 
          ./configure --disable-shared 
      
      将
          ./configure --disable-shared 
      改为
          ./configure --disable-shared --host=arm-hisiv200-linux-gnueabi(这个交叉编译器前缀填你们电脑上自己的)
      
    7. 万一境遇一下破绽超级多,原因是你们的linux系统是陆15个人的,而arm上常常都是三拾贰位的,所以会有其一扭曲作直,消亡办法正是重复装贰个三十人的linux系统。

      src/core/ngx_slab.c: In function 'ngx_slab_alloc_locked':
      src/core/ngx_slab.c:209: error: integer constant is too large for 'long' type
      src/core/ngx_slab.c:209: error: comparison is always true due to limited range of data type
      src/core/ngx_slab.c:221: error: integer constant is too large for 'long' type
      src/core/ngx_slab.c:221: error: comparison is always false due to limited range of data type
      src/core/ngx_slab.c:223: error: integer constant is too large for 'long' type
      src/core/ngx_slab.c:223: error: comparison is always true due to limited range of data type
      src/core/ngx_slab.c:253: error: integer constant is too large for 'long' type
      src/core/ngx_slab.c:253: error: comparison is always true due to limited range of data type
      src/core/ngx_slab.c:262: error: integer constant is too large for 'long' type
      src/core/ngx_slab.c:262: error: comparison is always false due to limited range of data type
      src/core/ngx_slab.c:289: error: left shift count >= width of type
      src/core/ngx_slab.c:292: error: integer constant is too large for 'long' type
      src/core/ngx_slab.c:294: error: left shift count >= width of type
      src/core/ngx_slab.c:304: error: integer constant is too large for 'long' type
      src/core/ngx_slab.c:376: error: left shift count >= width of type
      src/core/ngx_slab.c: In function 'ngx_slab_free_locked':
      src/core/ngx_slab.c:499: error: integer constant is too large for 'long' type
      src/core/ngx_slab.c:499: error: comparison is always false due to limited range of data type
      src/core/ngx_slab.c:552: error: integer constant is too large for 'long' type
      src/core/ngx_slab.c:575: error: integer constant is too large for 'long' type
      src/core/ngx_slab.c:575: error: comparison is always false due to limited range of data type
      src/core/ngx_slab.c:582: error: integer constant is too large for 'long' type
      src/core/ngx_slab.c: In function 'ngx_slab_alloc_pages':
      src/core/ngx_slab.c:643: error: integer constant is too large for 'long' type
      src/core/ngx_slab.c:652: error: integer constant is too large for 'long' type
      src/core/ngx_slab.c:652: error: large integer implicitly truncated to unsigned type
      make[1]: *** [objs/src/core/ngx_slab.o] Error 1
      make[1]: Leaving directory `/home/shanlink/Cross_compile/nginx-1.6.2'
      make: *** [build] Error 2
      
    8. 当时继续make,还有恐怕会冷俊不禁八个谬误,叁个是

      src/os/unix/ngx_errno.c: In function 'ngx_strerror':
      src/os/unix/ngx_errno.c:37: error: 'NGX_SYS_NERR' undeclared (first use in this function)
      src/os/unix/ngx_errno.c:37: error: (Each undeclared identifier is reported only once
      src/os/unix/ngx_errno.c:37: error: for each function it appears in.)
      src/os/unix/ngx_errno.c: In function 'ngx_strerror_init':
      src/os/unix/ngx_errno.c:58: error: 'NGX_SYS_NERR' undeclared (first use in this function)
      make[1]: *** [objs/src/os/unix/ngx_errno.o] Error 1
      make[1]: Leaving directory `/home/shanlink/Cross_compile/nginx-1.6.2'
      make: *** [build] Error 2
      

      斩尽杀绝办法正是展开objs/ngx_auto_config.h,添加

      #ifndef NGX_SYS_NERR
      #define NGX_SYS_NERR    132
      #endif
      

      另一个荒诞

      objs/src/event/ngx_event_accept.o: In function `ngx_event_accept':
      /home/shanlink/Cross_compile/nginx-1.6.2/src/event/ngx_event_accept.c:64: warning: warning: accept4 is not implemented and will always fail
      objs/src/core/ngx_cycle.o: In function `ngx_init_cycle':
      /home/shanlink/Cross_compile/nginx-1.6.2/src/core/ngx_cycle.c:457: undefined reference to `ngx_shm_free'
      /home/shanlink/Cross_compile/nginx-1.6.2/src/core/ngx_cycle.c:462: undefined reference to `ngx_shm_alloc'
      /home/shanlink/Cross_compile/nginx-1.6.2/src/core/ngx_cycle.c:648: undefined reference to `ngx_shm_free'
      objs/src/event/ngx_event.o: In function `ngx_event_module_init':
      /home/shanlink/Cross_compile/nginx-1.6.2/src/event/ngx_event.c:525: undefined reference to `ngx_shm_alloc'
      collect2: ld returned 1 exit status
      make[1]: *** [objs/nginx] Error 1
      make[1]: Leaving directory `/home/shanlink/Cross_compile/nginx-1.6.2'
      make: *** [build] Error 2
      shanlink@ubuntu:~/Cross_compile
      

      一致的,我们供给校正objs/ngx_auto_config.h文件,在文件中投入

      #ifndef NGX_HAVE_SYSVSHM
      #define NGX_HAVE_SYSVSHM 1
      #endif
      
    9. 好了,这时make && make install就应当能编写翻译过去了。

    10. 假使遇上其余编译难题,请参考:

    借使linux系统没有先行安装 gcc 等编写翻译软件能够用yum源安装。安装nginx,首先必要安装信任模块pcre、zlib、openssl。

      1.下载地址:  ,选用下载相应版本,并解压到目录下

    陆陆续续编写翻译squid

    软件版本:squid-2.7-STABLE9

    交叉编写翻译器:arm-hisiv200-linux-gnueabi

    系统:32位ubuntu

    在对squid进行交叉编写翻译时,需求利用x86版本的squid,所以大家要实行三个本子的编写翻译。

    1. 先是编写翻译x86本子的施用安插为

      ./configure --prefix=X86_SQUID_PATH
      
    2. make && make install

    3. 跻身到squid源码目录下的src/文件夹,有个cf_gen程序,备份起来,交叉编译时会用到。
    4. 建立三个arm-linux.cache文件,写入

      ac_cv_epoll_works=
      ac_cv_af_unix_large_dgram=
      ac_cv_func_setresuid=
      ac_cv_func_va_copy=
      ac_cv_func___va_copy=
      
    5. 执行

      #!/bin/bash
      
      ./configure --host=arm-hisiv200-linux-gnueabi --prefix=/home/shanlink/Cross_compile/squid_ccs/ --cache-file=arm-linux.cache
      

      当时应该是力所能致通畅经过的

    6. 举行make,会并发一个谬误

      ./cf_gen: cannot execute binary file
      
    7. 将事情发生前备份的x86的cf_gen复制到src/目录下替换arm的

    8. 重复实践make,应该能够高枕无忧经过编译
    9. make install
    10. 完成

    gzip 模块必要 zlib 库

      2.装置注重包 yum -y install pcre*  yum -y install openssl*

    rewrite 模块须求 pcre 库

         假使设置出以往底下的不当是贫乏编写翻译意况。安装编写翻译源码所需的工具和库 
           ./configure: error: C compiler cc is not found 
          #yum install gcc gcc-c++ ncurses-devel perl

    ssl 功效需求 openssl库

      3. a、执行 ./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_stub_status_module --with-pcre

    1.安装pcre依赖

        b、编译 make

    • 下载 pcre-8.38 wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38.tar.gz
    • 解压 tar -zxvf pcre-8.38.tar.gz
    • 跻身到解压目录 cd 你的目录/pcre-8.38
    • 编译 ./configure --prefix=/opt/project/pcre #指虞诩装目录
    • 编写翻译实现现在安装 make && make install

        c、安装 make install (固然是非root顾客 make 和sudo make install 分开 同理,别的的安装包也是那样State of Qatar

    2.安装zlib依赖

      4. 起家软链接:# ln -s /usr/local/nginx/sbin/nginx /usr/local/bin/

    • 下载 zlib-1.2.11 wget
    • 解压 tar -zxvf zlib-1.2.11.tar.gz
    • 步入到解压目录 cd 你的目录/zlib-1.2.11
    • 编译 ./configure --prefix=/opt/project/zlib #指虞诩装目录
    • 编写翻译达成以往安装 make && make install

      5. 配置nginx.conf 支持php

    3.安装openSSL依赖

        进入/usr/local/nginx/conf目录,编辑nginx.conf

    • 下载 openssl-1.1.1-pre5 wget
    • 解压 tar -zxvf openssl-1.1.1-pre5.tar.gz
    • 踏入到解压目录 cd 你的目录/openssl-1.1.1-pre5
    • 编译 ./configure --prefix=/opt/project/openssl #点名安装目录
    • 编写翻译实现未来安装 make && make install

        

    4.安装nginx服务

    location / {
                root   /home/www;    #根目录,可指定目录
                index index.php index.html index.htm; #增加index.php 默认支持php
            }
    
    #打开支持php
    location ~ .php$ {
               # root           html;
                fastcgi_pass   127.0.0.1:9000;
                fastcgi_index  index.php;
                #将/scripts 改为 root 指定目录地址
                #fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
                fastcgi_param  SCRIPT_FILENAME  /home/www$fastcgi_script_name;
                include        fastcgi_params;
            }
    
    ……
    #在配置未见末尾加入  include vhost/*.conf;  建立虚拟主机配置目录
    

    手动创造 nginx 客户与顾客组

        建设结构设想主机配置目录,并将此目录导入到nginx.conf中

    groupadd nginx

        # mkdir vhost

    useradd nginx -g nginx -s /sbin/nologin -M

        # vim ./nginx.conf (在结尾大括号前增添一行并保存退出: include vhost/*.conf; )

    • 下载 wget
    • 解压 tar -zxvf nginx-1.14.0.tar.gz
    • 编译

      6. 可在vhost目录内新建设想主机配置文件,以.conf结尾。

    ./configure --prefix=/opt/project/nginx-1.14 #nginx 安装地方
    --sbin-path=/opt/project/nginx-1.14/sbin/nginx #安装nginx可实践文件路线
    --conf-path=/opt/project/nginx-1.14/config/nginx.conf #设置nginx配置文件路线
    --pid-path=/opt/project/nginx-1.14/logs/nginx.pid #设置nginx.pid文件
    --error-log-path=/opt/project/nginx-1.14/logs/error.log #设置主错误,警报,和确诊文件的名号
    --lock-path=/opt/project/nginx-1.14/logs/nginx.log
    --http-log-path=/opt/project/nginx-1.14/logs/access.log #安装主乞求的HTTP服务器的日记文件的称谓
    --with-http_ssl_module
    --user=nginx
    --group=nginx
    威尼斯正规官网,--with-pcre=/var/software/nginx/pcre-8.38 #指的是pcre 的源码路线
    --with-zlib=/var/software/nginx/zlib-1.2.11 #指的是zlib 的源码路线
    --with-openssl=/var/software/nginx/openssl-1.1.1-pre5 #指的是openssl 的源码路线

    server {
        listen 80;#监听80端口,接收http请求
        server_name www.lblog.com;#域名
        root /home/www/blog;#准备存放代码工程的路径
        index index.php index.html index.htm;
    
        location / {
           try_files $uri $uri/ /index.php$is_args$args; #去除 index.php
        }
    
        location ~ .php$ {
            #fastcgi_pass unix:/run/php/php7.0-fpm.sock;
            #fastcgi_split_path_info ^(.+.php)(/.+)$;
            #fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            #include fastcgi_params;
            try_files $uri =404;
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index index.php;
            include fastcgi.conf;#加载nginx的fastcgi模块
        }
    
    }
    
    • 安装 make && make install
    • nginx编写翻译安装到位之后,更改nginx.conf

      

    user nginx nginx;

     (2)安装php(源码编写翻译安装)

    启动nginx /opt/project/nginx/nginx

      1.下载地址:

    重启nginx /opt/project/nginx/nginx -s reload

      2.装置正视包 :yum -y install libxml2 libxml2-devel openssl openssl-devel curl-devel libjpeg-devel libpng-devel freetype-devel libmcrypt-devel

    杀死进度 pkill -9 nignx

      3. 是因为centOS未有libmcrypt,所以要先下载第三方源

    翻看端口 netstat -ano|grep 80

    wget http://www.atomicorp.com/installers/atomic
    sh ./atomic
    yum install php-mcrypt libmcrypt-devel
    

    查阅进度 ps -ef|grep nginx
    6>

      4. 解压安装包并cd到安装包目录下,并做安装配备

    威尼斯正规官网 1

    ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysqli --with-iconv --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-zlib --enable-pdo --with-pdo-mysql --enable-opcache
    

    假诺访问不了,须要关闭防火墙。

           5.make && make install

    centos7 查看防火墙状态
    firewall-cmd --state #running 防火墙运营中 (not running 已关门)

      6. cd  /usr/local/php 实行连锁布置  

    关闭防火墙
    systemctl stop firewalld.service #停止firewall
    systemctl disable firewalld.service #不允许firewall开机运维

    cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf
    cp /usr/local/php/etc/php-fpm.d/www.conf.default /usr/local/php/etc/php-fpm.d/www.conf
    cp php.ini-production /usr/local/php/etc/php.ini
    

    若果在装置进程中,遇到标题请自行google,因为系统的差别碰着的荒唐大概不太相似。

         校正www.conf 上边包车型地铁user = www ,group=www (要求先成立卡塔尔国

    您也许感兴趣的篇章:

    • centos7利用yum安装lnmp的教程(linux+nginx+php7.1+mysql5.7)
    • LNMP编写翻译安装之nginx安装配备方式图像和文字化教育程
    • Centos 6.8编写翻译安装LNMP处境(Nginx+MySQL+PHP)教程
    • CentOS 7.0编写翻译安装lnmp教程(Nginx1.6.0+MySQL5.6.19+PHP5.5.14卡塔尔(قطر‎
    • CentOS 6.6服务器编译安装lnmp(Nginx1.6.2+MySQL5.6.21+PHP5.6.3卡塔尔
    • lnmp碰着中怎么样为nginx开启pathinfo
    • LNMP服务器意况配置 (linux+nginx+mysql+php卡塔尔国
    • CentOS 6.4安装配置LNMP服务器(Nginx+PHP+MySQL卡塔尔国
    • 依据Nginx0.8.54+PHP5.3.4+MySQL5.5.8的崭新LNMP牢固版布局搭建的VPS

         接着运维/usr/local/php/sbin/php-fpm 就足以运行php了

    本文由威尼斯手机平台登陆发布于最新文章,转载请注明出处:软件版本,选择下载相应版本

    关键词:

上一篇:没有了

下一篇:没有了