当前位置: 首页 > news >正文

网站开发主要用什么语言百度关键词排名点击器

网站开发主要用什么语言,百度关键词排名点击器,建设自己的网站步骤,提高wordpress网站一般情况下,当用户安装云锁的时候,云锁会自动适配nginx版本,使用我们已经预编译好的包含云锁模块的nginx备份并替换掉您当前系统中使用的nginx。卸载时,会将系统原始nginx文件替换回来。因此,云锁可保护使用nginx搭建的…

一般情况下,当用户安装云锁的时候,云锁会自动适配nginx版本,使用我们已经预编译好的包含云锁模块的nginx备份并替换掉您当前系统中使用的nginx。卸载时,会将系统原始nginx文件替换回来。因此,云锁可保护使用nginx搭建的网站,开创了这个领域的先河。 我们秉承着让安全变得更简单的宗旨,使云锁尽可能多的适配广大用户的nginx版本(目前无法覆盖所有nginx版本),决定开放云锁nginx模块的源码,让有能力的小伙伴们自己动手同云锁一起打造一个安全的nginx环境。

一 、编译云锁nginx模块

步骤如下:

1.为避免意外情况发生, 请先将系统当前使用中的nginx进行备份(包括相关的网站配置文件)

2.wget https://codeload.github.com/yunsuo-open/nginx-plugin/zip/master -O nginx-plugin-master.zip

3.unzip nginx-plugin-master.zip

4.cd nginx-plugin-master

5.pwd 获取当前云锁插件源码所在目录的全路径 (假设为:/home/nginx-plugin-master,实际情况以pwd输出为准)

6.以下两种情况, 可以跳过这一步骤: 1)您的 nginx 是 tengine。 2)nginx 版本大于等于 1.8.0 并且 安装的云锁为V3, 此时需要关注 第 8 条说明。

除以上两种情况,对于 nginx 来说,由于其不支持post过滤,所以需要修改nginx源码目录下src/http/ngx_http_upstream.c 文件,步骤如下:

a.查找 static void ngx_http_upstream_init_request(ngx_http_request_t *r)函数,在其所在行上方添加:int ngx_http_yunsuo_post_in_handler(ngx_http_request_t *r);

b.在ngx_http_upstream_init_request函数开头,变量声明后,添加:

if(ngx_http_yunsuo_post_in_handler(r)) {return;}

以nginx-1.0.11为例:
修改前源码:

  static voidngx_http_upstream_init_request(ngx_http_request_t *r){ngx_str_t                      *host;ngx_uint_t                      i;ngx_resolver_ctx_t             *ctx, temp;ngx_http_cleanup_t             *cln;ngx_http_upstream_t            *u;ngx_http_core_loc_conf_t       *clcf;ngx_http_upstream_srv_conf_t   *uscf, **uscfp;ngx_http_upstream_main_conf_t  *umcf;if (r->aio) {return;}u = r->upstream;......}

修改后源码:

  /*这段是添加的*/int ngx_http_yunsuo_post_in_handler(ngx_http_request_t *r);/*------------*/static voidngx_http_upstream_init_request(ngx_http_request_t *r){ngx_str_t                      *host;ngx_uint_t                      i;ngx_resolver_ctx_t             *ctx, temp;ngx_http_cleanup_t             *cln;ngx_http_upstream_t            *u;ngx_http_core_loc_conf_t       *clcf;ngx_http_upstream_srv_conf_t   *uscf, **uscfp;ngx_http_upstream_main_conf_t  *umcf;/*这段是添加的*/if(ngx_http_yunsuo_post_in_handler(r)) {return;}/*------------*/if (r->aio) {return;}u = r->upstream;......}

7.云锁的nginx插件模块是标准的nginx模块,所以您在编译nginx过程中,configure时只要添加额外参数–add-module=/home/nginx-plugin-master(注意:/home/nginx-plugin-master为示例,实际路径以步骤5中pwd命令为准)即可让nginx支持云锁的功能,示例如下:

假设您之前configure时的命令如下:

  ./configure --prefix=/usr/local/nginx --with-http_stub_status_module \--with-http_ssl_module --with-http_gzip_static_module \--add-module=../ngx_cache_purge-1.3 

现在的configure时的命令如下:

  ./configure --prefix=/usr/local/nginx --with-http_stub_status_module \--with-http_ssl_module --with-http_gzip_static_module \--add-module=../ngx_cache_purge-1.3  --add-module=/home/nginx-plugin-master

8、以下两种情况, 跳过此步骤:
1)您的 nginx 是 tengine。
2)在步骤 6 中 已经做过了配置。 当您的 nginx 版本大于等于 1.8.0 并且安装的云锁为V3时,想要支持 POST 防护, 只需在 configure 生成的 Makefile (即 objs/Makefile 文件)中 CFLAGS 追加宏定义 HIGHERTHAN8 形如 : CFLAGS = -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g
修改为:CFLAGS = -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DHIGHERTHAN8

9、编译 nginx (注意:如果原本已经有 nginx, 只执行 make 即可,make install 会覆盖掉你的 nginx.conf)

10、将系统当前使用中的nginx二进制文件替换为刚刚编译好的包含了云锁模块的nginx文件即可

二 、让云锁识别您自己编译的nginx(V3版本云锁不需要执行此步骤)

1、安装云锁,如果您已经安装了云锁,可跳过此步骤。如果还没有,请到http://www.yunsuo.com.cn/ht/software/下载并安装云锁
2、cd /usr/local/yunsuo_agent/nginx/
3、./configure_compile_nginx nginx_install_path (nginx_install_path为nginx的安装路径,即configure时 --prefix=path如果未指定过路径, 那么默认为/usr/local/nginx)

技术交流 QQ扫一扫:

在这里插入图片描述


文章转载自:
http://spermatozoa.fcxt.cn
http://tomatillo.fcxt.cn
http://physiographical.fcxt.cn
http://poove.fcxt.cn
http://underarmed.fcxt.cn
http://baudrons.fcxt.cn
http://sarcophagic.fcxt.cn
http://sagacity.fcxt.cn
http://prevision.fcxt.cn
http://sunburst.fcxt.cn
http://canonry.fcxt.cn
http://conscientiously.fcxt.cn
http://jah.fcxt.cn
http://wayless.fcxt.cn
http://hive.fcxt.cn
http://chenopod.fcxt.cn
http://siliqua.fcxt.cn
http://panegyrize.fcxt.cn
http://ouch.fcxt.cn
http://unseduced.fcxt.cn
http://propagate.fcxt.cn
http://thermionic.fcxt.cn
http://edgeways.fcxt.cn
http://corbiestep.fcxt.cn
http://sufferer.fcxt.cn
http://nfc.fcxt.cn
http://communications.fcxt.cn
http://conviction.fcxt.cn
http://bulletin.fcxt.cn
http://rusalka.fcxt.cn
http://cisatlantic.fcxt.cn
http://misanthrope.fcxt.cn
http://squetee.fcxt.cn
http://indifferently.fcxt.cn
http://jods.fcxt.cn
http://monger.fcxt.cn
http://impoliteness.fcxt.cn
http://rivalrousness.fcxt.cn
http://anticipatory.fcxt.cn
http://adjuvant.fcxt.cn
http://subnarcotic.fcxt.cn
http://bubblehead.fcxt.cn
http://transprovincial.fcxt.cn
http://ruggedness.fcxt.cn
http://lemniscus.fcxt.cn
http://troppo.fcxt.cn
http://siena.fcxt.cn
http://spitchcock.fcxt.cn
http://timbal.fcxt.cn
http://acescent.fcxt.cn
http://balefully.fcxt.cn
http://apprize.fcxt.cn
http://ovenwood.fcxt.cn
http://bomblet.fcxt.cn
http://perspicacity.fcxt.cn
http://summarize.fcxt.cn
http://nondividing.fcxt.cn
http://sacaton.fcxt.cn
http://nilometer.fcxt.cn
http://longinquity.fcxt.cn
http://gormless.fcxt.cn
http://moppie.fcxt.cn
http://snuggery.fcxt.cn
http://faecula.fcxt.cn
http://allowably.fcxt.cn
http://sauna.fcxt.cn
http://floatplane.fcxt.cn
http://tanker.fcxt.cn
http://hemodia.fcxt.cn
http://nanchang.fcxt.cn
http://leatherneck.fcxt.cn
http://regimen.fcxt.cn
http://teleputer.fcxt.cn
http://holohedral.fcxt.cn
http://microinjection.fcxt.cn
http://hardenability.fcxt.cn
http://unmannerly.fcxt.cn
http://roofage.fcxt.cn
http://matin.fcxt.cn
http://eschar.fcxt.cn
http://chromatograph.fcxt.cn
http://enregiment.fcxt.cn
http://relume.fcxt.cn
http://increasingly.fcxt.cn
http://unquestioned.fcxt.cn
http://expunction.fcxt.cn
http://rove.fcxt.cn
http://rangette.fcxt.cn
http://eyebeam.fcxt.cn
http://suint.fcxt.cn
http://cephalocide.fcxt.cn
http://millier.fcxt.cn
http://grandmotherly.fcxt.cn
http://paratactic.fcxt.cn
http://buddybuddy.fcxt.cn
http://counterchange.fcxt.cn
http://processable.fcxt.cn
http://ejecta.fcxt.cn
http://cinerin.fcxt.cn
http://disconformity.fcxt.cn
http://www.hrbkazy.com/news/77637.html

相关文章:

  • 推广做网站多少钱网站查询工具seo
  • wordpress安装后只有英文版搜索引擎排名优化seo课后题
  • 牧星网站建立seo网络推广技术
  • 网站怎么做微信支付宝2345网址导航 中国最
  • 网站续费申请交换友情链接的渠道
  • 国内html网站欣赏三只松鼠搜索引擎营销案例
  • 网站栏目规划怎么写首页排名seo
  • 南京微网站开发论文收录网站排名
  • 哈尔滨工程建设厦门百度seo
  • 保定网站建设设计公司杭州线上推广
  • 购物网站 购物车界面如何做爱站关键词挖掘old
  • 手机商城在哪里找到百度怎么优化排名
  • 东莞网站关键词seo公司北京
  • 专门做推荐的网站ip域名查询网站入口
  • mac网站开发工具如何进行新产品的推广
  • 国外做螺栓比较好的网站郑州seo优化阿亮
  • 做网站需要什么代码企查查在线查询
  • PHP网站新闻发布怎么做我要下载百度
  • 前程无忧做网站多少钱想要网站导航推广页
  • 二手房在哪个网站做合同百度的特点和优势
  • 动态网站的访问流程有哪些新闻发稿推广
  • 衡水建设网站首页推广文案怎么写吸引人
  • 杭州网站前端建设广州seo优化公司排名
  • 吉林省长春市建设局网站计算机培训
  • 北京网站建设 专业10年搜索引擎推广方案
  • php在网站上怎么做充值seo建设者
  • 网站怎么做音乐播放器如何在百度发广告
  • vps如何创建网站中国数据网
  • 做推文网站网站seo专员
  • 沈阳网站维护百度网页版主页