[LTMP搭建] Centos 6.5 安装配置 Tengine

2023-05-16

接上篇:http://www.cnblogs.com/antarctican/p/3752812.html (安装PHP)

  

    一. 安装依赖的扩展    

    记得前几天编译tengine,不使用 --with-http_lua_module , 也就不需要以下1》、2》、3》 的 lua部分了。

    1》 Lua library(Tengine的lua扩展需要),


[root@localhost src]# yum install readline-devel

[root@localhost src]# wget -c http://www.lua.org/ftp/lua-5.1.5.tar.gz
[root@localhost src]# tar -zxvf lua-5.1.5.tar.gz 
[root@localhost src]# cd lua-5.1.5

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// 如果是64位系统,到 lua-x.x.x/src/Makefile增加 -fPIC ,否则后面可能会出现(本文错误6) ‘relocation R_X86_64_32 against `luaO_nilobject_'
# vim src/Makefile         
CFLAGS= -fPIC -O2 -Wall $(MYCFLAGS)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[root@localhost lua-5.1.5]# make linux && make install  

    2》 scrons。 这个只是此处编译tolua++需要才安装


[root@localhost src]# rpm -ivh http://jaist.dl.sourceforge.net/project/scons/scons/2.3.1/scons-2.3.1-1.noarch.rpm  

    3》 tolua++ 


[root@localhost src]# wget -c http://www.codenix.com/~tolua/tolua++-1.0.93.tar.bz2
[root@localhost src]# tar -jvxf tolua++-1.0.93.tar.bz2
[root@localhost src]# cd tolua++-1.0.93

[root@localhost tolua++-1.0.93]# vim config_linux.py
 // 将
  LIBS = ['lua50', 'lualib50', 'dl', 'm']
 // 改为

  LIBS = ['lua', 'dl', 'm']  

 [root@localhost tolua++-1.0.93]# scons all

 [root@localhost tolua++-1.0.93]# scons install

  lua系列安装完毕,查看

  [root@localhost src]# lua -v

  [root@localhost src]# tolua++ -v

  

    4》GD (http_image_filter_module 需要). 带过

 

    二. 编译tengine。 

    此处附带选项比较多,中途出错误终止可能性大,很折腾。


  

./configure --prefix=/usr/local/tengine
--lock-path=/var/lock/nginx.lock
--pid-path=/var/run/nginx.pid
--error-log-path=/var/logs/nginx/error.log
--http-log-path=/var/logs/nginx/access.log
--user=www
--group=www
--with-pcre=/usr/local/src/pcre-8.35            ## 这里指定的是PCRE的解压目录,不是安装目录,否则报错
--with-pcre-opt=-fPIC
--with-openssl=/usr/local/src/openssl-1.0.1i       ## 解压后的源文件目录
--with-openssl-opt=-fPIC

--with-md5=/usr/lib                      ## openssl 依赖md5
--with-backtrace_module
--with-http_stub_status_module
--with-http_gzip_static_module
--with-http_realip_module
--with-http_concat_module=shared
--with-http_sysguard_module=shared
--with-http_limit_conn_module=shared
--with-http_limit_req_module=shared
--with-http_split_clients_module=shared
--with-http_footer_filter_module=shared
// --with-http_geoip_module=shared             ## geoip,可不用
--with-http_sub_module=shared
--with-http_access_module=shared
--with-http_upstream_ip_hash_module=shared
--with-http_upstream_least_conn_module=shared
--with-http_referer_module=shared
--with-http_rewrite_module=shared
--with-http_memcached_module=shared
--with-http_upstream_session_sticky_module=shared
--with-http_addition_module=shared
// --with-http_image_filter_module=shared
--with-http_user_agent_module=shared
--with-http_empty_gif_module=shared
--with-http_browser_module=shared
// --with-google_perftools_module             ## google 的分析C/C++软件内存和CPU使用(tcmalloc,CPU)的工具, 非常规项
--with-http_map_module=shared
--with-http_userid_filter_module=shared
--with-http_charset_filter_module=shared
--with-http_trim_filter_module=shared
--with-http_lua_module=shared
// --without-http_fastcgi_module
// --without-http_uwsgi_module
// --without-http_scgi_module
// --without-select_module
// --without-poll_module
// --add-module=../nginx-hmux-module-1.3
// --add-module=../nginx_tcp_proxy_module-0.4.5
// --with-ld-opt='-ltcmalloc_minimal'
// --http-client-body-temp-path=/data/nginx_temp/nginx_client
// --http-proxy-temp-path=/data/nginx_temp/nginx_proxy
// --http-fastcgi-temp-path=/data/nginx_temp/nginx_fastcgi

合并:


./configure --prefix=/usr/local/tengine --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --error-log-path=/var/logs/nginx/error.log --http-log-path=/var/logs/nginx/access.log --user=www --group=www --with-pcre=/usr/local/src/pcre-8.35 --with-pcre-opt=-fPIC --with-openssl=/usr/local/src/openssl-1.0.1i --with-openssl-opt=-fPIC --with-md5=/usr/lib --with-backtrace_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_realip_module --with-http_concat_module=shared --with-http_sysguard_module=shared --with-http_limit_conn_module=shared --with-http_limit_req_module=shared --with-http_split_clients_module=shared --with-http_footer_filter_module=shared --with-http_sub_module=shared --with-http_access_module=shared --with-http_upstream_ip_hash_module=shared --with-http_upstream_least_conn_module=shared --with-http_referer_module=shared --with-http_rewrite_module=shared --with-http_memcached_module=shared --with-http_upstream_session_sticky_module=shared --with-http_addition_module=shared --with-http_user_agent_module=shared --with-http_empty_gif_module=shared --with-http_browser_module=shared --with-http_map_module=shared --with-http_userid_filter_module=shared --with-http_charset_filter_module=shared --with-http_trim_filter_module=shared --with-http_lua_module=shared   

   最好先# make test, 这中间可能会有提示错误

  make && make install

  # /usr/local/tengine/sbin/nginx -c /usr/local/tengine/conf/nginx.conf    ## 指定conf的位置

  如果此时还没有编译时指定的user和group,创建


[root@localhost src]# groupadd www
[root@localhost src]# useradd -s -M /sbin/nologin -g www www  

  如果能运行 /usr/local/sbin/nginx -v, 看到版本模块信息, 说明已安装成功。

   

    三、报错及解决方法  

    1.  PCRE dir指定错误。 我在指定 --with-pcre=shared时同样出现如下错误,改为 PCRE 解压编译时的原目录就好了


[root@localhost tengine-2.0.3]# make test
make -f objs/Makefile test
make[1]: Entering directory `/usr/local/src/tengine-2.0.3'
cd shared \
    && if [ -f Makefile ]; then make distclean; fi \
    && CC="gcc" CFLAGS="-fPIC -pipe" \
    ./configure --disable-shared 
/bin/sh: line 0: cd: shared: No such file or directory
make[1]: *** [shared/Makefile] Error 1
make[1]: Leaving directory `/usr/local/src/tengine-2.0.3'
make: *** [test] Error 2  

    

   2.  需要 C++ compiler。 可能由于卸载某些软件时一同卸载了。


configure: error: You need a C++ compiler for C++ support.
make[1]: *** [/usr/local/src/pcre-8.35/Makefile] Error 1
make[1]: Leaving directory `/usr/local/src/tengine-2.0.3'
make: *** [test] Error 2  

  运行 yum install -y gcc gcc-c++

 

  3.  这是因为,openssl的路径指定错误, 同pcre一样,--with-openssl 不是安装目录而是解压后的源文件目录。


make[2]: Entering directory `/usr/local/openssl'
make[2]: *** No rule to make target `clean'.  Stop.
make[2]: Leaving directory `/usr/local/openssl'
make[1]: *** [/usr/local/openssl/.openssl/include/openssl/ssl.h] Error 2
make[1]: Leaving directory `/usr/local/src/tengine-2.0.3'
make: *** [test] Error 2  

 

  4.  这个问题,百度google必应都找不到 关于 prove 的了。

  只有github上有说


    TEST_NGINX_BINARY=/path/to/nginx/sbin/nginx prove cases
    TEST_NGINX_BINARY=/path/to/nginx/sbin/nginx prove nginx-tests  

/bin/sh: prove: command not found
make[1]: *** [test] Error 127
make[1]: Leaving directory `/usr/local/src/tengine-2.0.3'
make: *** [test] Error 2  

  ^^ 再次编译时已经找到解决方法了,  command not found 一般有两种情况: 

  1.  该程序已安装但是命令并未这 # echo $PATH 这些路径中, 这种加软链接可以解决。 

  2.  带该命令的程序并未安装,麻烦就在于不知道由什么程序提供, 不过可以用此方法(也可能你的软件库没有该程序):

    # yum provides *bin/prove    // 这里 'prove' 就是刚刚缺少的command,

    // 找到结果是 perl-Test-Harness.xxx

    # yum install perl-Test-Harness

 

  5.  搜了很久, 最新版Tolua++ 1.0.93 暂不支持Lua 5.2.x


src/http/modules/lua/ngx_http_lua_log.c:81: error: ‘LUA_GLOBALSINDEX’ undeclared (first use in this function)
make[1]: *** [objs/src/http/modules/lua/ngx_http_lua_log.o] Error 1  

  

  6.    这个据说是64位下可能有的错误。

/usr/bin/ld: /usr/local/lib/liblua.a(lapi.o): relocation R_X86_64_32 against `luaO_nilobject_' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/liblua.a: could not read symbols: Bad value

    见编译lua步骤说明,64bit系统可能出现的这个问题。  

 

  7.  查看 version时, 提示 libssl.so.1.0.0 找不到。此时nginx也无法启动。

[root@localhost tengine]# /usr/local/tengine/sbin/nginx -V
sbin/nginx: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory

  ldd 查看 ,为 not found

[root@localhost tengine]# ldd sbin/nginx
	linux-gate.so.1 =>  (0x00880000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x00f05000)
	libdl.so.2 => /lib/libdl.so.2 (0x001ef000)
	libcrypt.so.1 => /lib/libcrypt.so.1 (0x00a0b000)
	libpcre.so.0 => /lib/libpcre.so.0 (0x00c21000)
	libssl.so.1.0.0 => not found
	libcrypto.so.1.0.0 => not found
	libz.so.1 => /lib/libz.so.1 (0x001f4000)
	libc.so.6 => /lib/libc.so.6 (0x00208000)
	/lib/ld-linux.so.2 (0x00d5b000)
	libfreebl3.so => /lib/libfreebl3.so (0x00748000)

  这时在  /etc/ld.so.conf.d/ 新建一个.conf 的文件,内容为 libssl 的位置: 

[root@localhost tengine]# cd /etc/ld.so.conf.d 
[root@localhostld.so.conf.d]# touch www-libs.conf             // *.conf 自动载入
[root@localhostld.so.conf.d]# echo '/usr/local/lib' > www-libs.conf    // 注:/usr/local/lib 为我 libssl.so.1.0.0 的位置
[root@localhostld.so.conf.d]# ldconfig

  现在可以看到 nginx的版本及模块信息了

 

  四、 辅助设置

  设置开机启动。

  先创建nginx启动脚本。

    # vim /etc/init.d/nginx

  然后修改(红色部分)并粘贴, 保存退出。 (这是copy来的内容)


#!/bin/bash
# Tengine Startup script# processname: nginx
# chkconfig: - 85 15
# description: nginx is a World Wide Web server. It is used to serve
# pidfile: /var/run/nginx.pid
# config: /usr/local/tengine/conf/nginx.conf

nginxd=/usr/local/tengine/sbin/nginx
nginx_config=/usr/local/tengine/conf/nginx.conf
nginx_pid=/var/run/nginx.pid
RETVAL=0
prog="nginx"

# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
[ -x $nginxd ] || exit 0
# Start nginx daemons functions.
start() {
if [ -e $nginx_pid ];then
    echo "tengine is already running...."
    exit 1
fi
    echo -n $"Starting $prog: "
    daemon $nginxd -c ${nginx_config}
    RETVAL=$?
    echo
    [ $RETVAL = 0 ] && touch /var/lock/subsys/nginx
    return $RETVAL
}
# Stop nginx daemons functions.
stop() {
    echo -n $"Stopping $prog: "
    killproc $nginxd
    RETVAL=$?
    echo
    [ $RETVAL = 0 ] && rm -f /var/lock/subsys/nginx /var/run/nginx.pid
}
reload() {
    echo -n $"Reloading $prog: "
    #kill -HUP `cat ${nginx_pid}`
    killproc $nginxd -HUP
    RETVAL=$?
    echo
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    reload)
        reload
        ;;
    restart)
        stop
        start
        ;;
    status)
        status $prog
        RETVAL=$?
        ;;
*)

    echo $"Usage: $prog {start|stop|restart|reload|status|help}"
    exit 1
esac
exit $RETVAL  

     # chmod 775 /etc/rc.d/init.d/nginx

    # chkconfig --level 2345 nginx on  

 

 如果启动失败,错误提示如: 

     nginx: [emerg] unknown directive "deny" in ...

这一般是未载入带该directive的module(见官方module页)。 nginx所有的module目前必须编译时选择, 幸好tengine可以动态载入


 nginx.conf 

dso {
    load ngx_http_fastcgi_module.so;
    load ngx_http_rewrite_module.so;
    load ngx_http_access_module;          ## 'deny', 'allow' 就属于这个module
}

http { ...... }

错误提示如:
      nginx: [emerg] unknown "fastcgi_https" variable  ...

这一般是 server 配置中使用了未定义的变量 $fastcgi_https , 使用正确的变量或自定义即可。

 

配置nginx.conf,使用和 php-fpm 相同的 user 和 group, use epoll ,不出意外nginx已经能够运行php了。 

 

 

转载于:https://www.cnblogs.com/antarctican/p/3759816.html

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

[LTMP搭建] Centos 6.5 安装配置 Tengine 的相关文章

  • 排序算法

    include lt iostream gt include lt cstdlib gt include lt cstdio gt include lt time h gt using namespace std 插入排序 void Ins
  • C++应用中调用YOLOv3(darknet)进行目标检测

    YOLOv3论文 xff1a https pjreddie com media files papers YOLOv3 pdf 官网和代码 xff1a https pjreddie com darknet yolo属于one stage x
  • DJI开发之航线重叠率的计算

    介绍 无人机在规划一块区域的时候 xff0c 我们需要手动的给予一些参数来影响无人机飞行 xff0c 对于一块地表 xff0c 无人机每隔N秒在空中间隔的拍照地表的一块区域 xff0c 在整个任务执行结束后 xff0c 拍到的所有区域照片能
  • MODBUS MASTER RTU在STM32上的实现

    MODBUS MASTER RTU在STM32上的实现 1 概述 最近需要将几个信号采集模块通过总线串联起来 xff0c 这样便于系统模块化 故将目光关注到了工业上经常使用的modbus协议 modbus协议是一种一主多从的拓扑结构 xff
  • 基于HttpClient的HttpUtils(后台访问URL)

    最近做在线支付时遇到需要以后台方式访问URL并获取其返回的数据的问题 xff0c 在网络上g了一把 xff0c 发现在常用的还是Apache的HttpClient 因为以经常要用到的原故 xff0c 因此我对其进行了一些简单的封装 xff0
  • micropython安装ros_ROS2与STM32入门教程-microROS的freertos版本

    ROS2与STM32入门教程 micro ros的freertos版本 说明 xff1a 介绍如何安装使用micro ros 测试开发板 xff1a olimex stm32 e407 步骤 xff1a 安装ros2版本foxy xff0c
  • C#中通过com组件操作excel不能关闭的问题

    问题 xff1a 当用如下代码操作完Excel xff0c 虽然调用了Application的Quit 方法 xff0c 但发现Excel进程并没退出 object missing 61 System Reflection Missing
  • 交叉编译的概念及交叉编译工具的安装

    目录 一 什么是交叉编译 二 为什么要交叉编译 xff1f 三 交叉编译链的安装 四 相关使用方法 五 软连接 一 什么是交叉编译 交叉编译是指将一种编程语言编写的程序编译成另一种编程语言的程序 xff0c 通常是在不同的操作系统或硬件环境
  • .cn根服务器被攻击之后

    如果是互联网行业的人员应该知道 xff0c 8月25日凌晨 xff0c 大批的 cn 域名的网站都无法访问 xff0c 当然包括weibo cn等大型网站 个人比较奇怪的一件事情是 xff0c 微博PC网页版是 www weibo com
  • [UML]UML系列——包图Package

    系列文章 UML UML系列 用例图Use Case UML UML系列 用例图中的各种关系 xff08 include extend xff09 UML UML系列 类图Class UML UML系列 类图class的关联关系 xff08
  • VBA编程中的 sheet1 与 sheets(1)的区别

    自己理解 sheet1是一个专有名词 xff0c 不是任何对象的属性 xff0c 只能单独使用 xff0c 特指代码所在工作簿的那个sheet1 和顺序无关 xff0c 是固定的一个表 xff0c sheets 1 则和顺序有关 参考资料
  • python练习笔记——计算1/1-1/3+1/5-1/7……的和

    1 1 1 3 43 1 5 1 7 43 求100000个这样的分式计算之为是多少 xff1f 将此值乘以4后打印出来 xff0c 看看是什么 xff1f num list 61 count 61 1 i 61 1 while True
  • Django Model获取指定列的数据

    model一般都是有多个属性的 xff0c 但是很多时候我们又只需要查询特定的某一个 xff0c 这个时候可以用到values和values list 利用values查询 from attendence models import Emp
  • HIVE自定义函数的扩展

    作者简介 淳敏 xff0c 物流架构师同时也是一位team leader xff0c 工作认真负责 xff0c 曾在休假期间 面向大海编程 xff0c 不明觉厉 在Hive中 xff0c 用户可以自定义一些函数 xff0c 用于扩展Hive
  • Flink Window分析及Watermark解决乱序数据机制深入剖析-Flink牛刀小试

    版权声明 xff1a 本套技术专栏是作者 xff08 秦凯新 xff09 平时工作的总结和升华 xff0c 通过从真实商业环境抽取案例进行总结和分享 xff0c 并给出商业应用的调优建议和集群环境容量规划等内容 xff0c 请持续关注本套博
  • 使用Network Recycle Bin启用映射网络驱动器上的回收站

    前言 在内网环境中我们经常会使用NAS或者Samba在Windows中映射网络驱动器 xff0c 方便局域网用户实时共享交换数据 但当存储在网络或映射网络上的任何文件被删除时 xff0c 该文件将被永久删除 它不会去到本地计算机回收站 xf
  • 为强化机器学习性能,ARM推出两款新GPU Mali-G52和Mali-G31

    ARM于近期推出了两款图形处理器产品 xff0c 分别为Mali G52以及Mali G31 xff0c 主要应用于主流移动市场 由于移动端AI计算 图形处理需求的与日俱增 xff0c GPU之于手机SoC的作用日渐凸显 xff0c ARM
  • 判断python字典某个键的值是否为空

    2019独角兽企业重金招聘Python工程师标准 gt gt gt code if dict get key 0 61 61 0 值即为空 code 转载于 https my oschina net u 2254175 blog 37213
  • javascript中的==和===

    判断两个变量是否相等是程序设计中非常重要的运算 在处理原始值时 xff0c 这种运算相当简单 xff0c 但涉及对 象 xff0c 任务就稍有点复杂 ECMAScript提供了两套运算符处理这个问题 xff0c 等号和非等号用于处理原始值
  • 如何检测资源泄露

    Window上我们常见的资源泄露包括内存和对象句柄泄露 xff0c 下面讨论下对各类泄露的检测方法 关于内存泄漏 xff0c 我以前写过2篇文章 xff1a C 43 43 中基于Crt的内存泄漏检测 xff0c 基于WinDbg的内存泄漏

随机推荐

  • WPF触屏Touch事件在嵌套控件中的响应问题

    前几天遇到个touch事件的坑 xff0c 记录下来以增强理解 具体是 想把一个listview嵌套到另一个listview xff0c 这时候如果list view xff08 子listview xff09 的内容过多超过容器高度 xf
  • 设计模式-工厂模式

    xl echo编辑整理 xff0c 欢迎转载 xff0c 转载请声明文章来源 欢迎添加echo微信 微信号 xff1a t2421499075 进行交流学习 百战不败 xff0c 依不自称常胜 xff0c 百败不颓 xff0c 依能奋力前行
  • IBM AIX5.3 linux下C/C++实现HTTPS接口

    最近在工作中需要开发一个Https接口 xff0c 其不同于http soap等协议 xff0c 可以直接组织报文并发送 xff0c 不存在加密 xff0c 认证和获取密钥等安全操作 且之前开发的项目没有开发过这类接口 xff0c 所以当时
  • c语言把网络字节序转换成小端,网络编程字节序转换问题

    一 xff1a 大小端 一 大小端区别 字节 区别是依据 xff1a 计算机系统在存储数据时起始地址是高地址仍是低地址 小端 xff1a 从低地址开始存储 大端 xff1a 从高地址开始存储 补充 xff1a 这里大小端是按字节区别的 xf
  • [转载]Linux C 字符串函数 sprintf()、snprintf() 详解

    一 sprintf 函数详解 在将各种类 型的数据构造成字符串时 xff0c sprintf 的强大功能很少会让你失望 由于 sprintf 跟 printf 在用法上几乎一样 xff0c 只是打印的目的地不同而已 xff0c 前者打印到字
  • http Authorization

    MDN 文档 HTTP协议中的 Authorization 请求消息头含有服务器用于验证用户代理身份的凭证 xff0c 通常会在服务器返回401 Authorization lt type gt lt credentials gt curl
  • linux编译动态库未定义,GCC链接库的一个坑:动态库存在却提示未定义动态库的函数...

    背景 在GCC中已经指定链接库 xff0c 然而编译时却提示动态库函数未定义 xff01 测试出现的错误提示如下 xff1a GMPY 64 13 48 tmp gcc o test L lmylib test c tmp ccysQZI3
  • .inf右键没有安装菜单项解决办法

    打开我的电脑 xff0c 工具菜单中的文件夹选项 切换至文件类型选项卡 xff0c 在其中找到inf文件 xff0c 点高级按钮 xff0c 双击安装 I xff0c 没有新建一个 按如下内容修 改 用于执行操作的应用程序C WINDOWS
  • C++ : 编译单元、声明和定义、头文件作用、防止头文件在同一个编译单元重复引用、static和不具名空间...

    转 自 xff1a http www cnblogs com rocketfan archive 2009 10 02 1577361 html 1 编译单元 xff1a 一个 cc或 cpp文件作为一个编译单元 xff0c 生成 o 2
  • request方法

    2019独角兽企业重金招聘Python工程师标准 gt gt gt 1request概述 request是Servlet service 方法的一个参数 xff0c 类型为javax servlet http HttpServletRequ
  • Eclipse调试:改变颜色, 背景与字体大小 和xml字体调整

    Eclipse背景颜色修改 xff1a 操作界面默认颜色为白色 对于我们长期使用电脑编程的人来说 xff0c 白色很刺激我们的眼睛 xff0c 所以我经常会改变workspace的背景色 xff0c 使眼睛舒服一些 设置方法如下 xff1a
  • ASM汇编常用跳转指令-极速查

    作者 xff1a 逆向驿站 微信公众号 xff1a 逆向驿站 知乎 xff1a 逆向驿站 若不是老鸟 xff0c 是不是经常为各种JXX汇编跳转指令查资料 xff1f 影响效率 xff0c 更影响潜意识整体分析的 34 灵光一现 34 本公
  • Android签名机制及原理

    Android签名机制及原理 Android系统在安装APK的时候 xff0c 首先会检验APK的签名 xff0c 如果发现签名文件不存在或者校验签名失败 xff0c 则会拒绝安装 xff0c 所以应用程序在发布之前一定要进行签名 给APK
  • chrome扩展获取页面dom对象信息

    chrome扩展 xff0c 在popup页面 xff0c 给页面对象绑定点击事件 xff0c 获取当前tab加载页面的DOM对象信息 本chrome扩展功能主要用于获取百度搜索输入框中用户输入的关键字 效果如下 源代码如下 注意 xff1
  • CentOS 7之FirewallD与iptables的区别

    2019独角兽企业重金招聘Python工程师标准 gt gt gt FirewallD 即Dynamic Firewall Manager of Linux systems xff0c Linux系统的动态防火墙管理器 xff0c 是 ip
  • goland编辑器护眼背景颜色设置

    2019独角兽企业重金招聘Python工程师标准 gt gt gt 打开goland软件 菜单栏 file settings 打开如下 搞定 色调 xff1a 85 xff1b 饱和度 xff1a 123 xff1b 亮度 xff1a 20
  • 让IE8支持HTML5及canvas功能!

    让IE8支持HTML5及canvas功能 xff01 微软出的IE9支持HTML5 xff0c 但因为不支持XP系统 xff0c 暂时我还用不了 即使能用 xff0c 现阶段如果开发HTML5页面 xff0c 并考虑到兼容性问题的话 xff
  • 卷积神经网络(CNN)的训练过程

    卷积神经网络的训练过程 卷积神经网络的训练过程分为两个阶段 第一个阶段是数据由低层次向高层次传播的阶段 xff0c 即前向传播阶段 另外一个阶段是 xff0c 当前向传播得出的结果与预期不相符时 xff0c 将误差从高层次向底层次进行传播训
  • 编程常用英语词汇大全

    编程常用英语词汇大全 很实用的编程英语词库 xff0c 共收录一千五百余条词汇 第一部分 xff1a application 应用程式 应用 应用程序 application framework 应用程式框架 应用框架 应用程序框架 arc
  • [LTMP搭建] Centos 6.5 安装配置 Tengine

    接上篇 xff1a http www cnblogs com antarctican p 3752812 html 安装PHP 一 安装依赖的扩展 记得前几天编译tengine xff0c 不使用 with http lua module