`
cocos
  • 浏览: 393599 次
  • 性别: Icon_minigender_1
  • 来自: 福州
社区版块
存档分类
最新评论
文章列表

埃及CDN介绍

一、背景 因项目合作需要,准备在埃及落地国家级项目项目(MOE),其中主要功能为教育直播、点播,需要能覆盖埃及全国家,带宽TB级需求。但从目前已了解信息埃及政府无法提供本地的CDN供应商。 二、第三方云厂家支持情况 经过渠道沟通了解,海外、国内的大部分云厂家、CDN厂家对埃及国家(半沙漠国家)覆盖情况都不理想。目前盘点,已知仅akamai、cloudflare 在埃及部分城市有节点。   厂家 覆盖情况 说明 akamai 部分城市   cloudflare(CF) 部分城市 自己商务表达,埃及加速效果不理想   cloudflare 在非洲 ...
一、问题背景 在之前的项目开发中,因为团队和技术限制,服务以小服务(微服务)的模式进行开发,各自服务的web端使用独立的访问域名;从用于测看,一个产品用户会点击出大量的不同域名,在统一认证和用户体验上都是一个比较糟糕的实现。基于此问题,团队考虑一个透明的将多个web站点集成在一个域名下的解决方案。   目前的域名示例: 课程:http://webfront-course.sdp.101.com/ndu/course/11600ebe-3314-4c73-93db-5c2f4583a345 培训:http://webfront-train.sdp.101.com/ndu/train ...
一、nginx log_format   log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '"$status" $host $upstream_addr $body_bytes_sent "$http_referer" ' '"$http_user_ag ...
比如有文章表 Article(Id,Category,InsertDate) 现在要用SQL找出每种类型中时间最新的前N个数据组成的集合 SELECT A1.* FROM Article AS A1 INNER JOIN (SELECT A.Category,A.InsertDate FROM Article AS A LEFT JOIN Article AS B ON A.Category = B.Category ...

mongostat

flushes – this shows how many times data has been flushed to disk. MongoDB only physically writes data to disk every 60 seconds (by default). This has the effect of increasing performance but can decrease durability because a hard crash inbetween flushes will result in that data not being written, ...
SELECT * FROM tb1 WHERE varcharstring LIKE '%~%%' ESCAPE '~'   like查询中模糊查询特殊字符,可以用escape转义  
处理一次32bit mongdb 数据超过2G问题 can't map file memory - mongo requires 64 bit build for larger datasets   生产环境下某32bit windows机器安装了mongodb,一日数据超过2G 然后,任何操作都会报错 {         "assertion" : "can't map file memory - mongo requires 64 bit build for larger datasets",         "as ...
#!/bin/sh binpath="/usr/local/mongodb/bin" backpath="/data1/mongodbgwy/back" port=29017 $binpath/mongodump  --port $port -o  $backpath/mongodb_`date +%Y%m%d` find $backpath/* -type d  -prune -mtime 30  -name mongodb*  -exec rm -rf {} \;
Error moving temp DB file on the final destination: Invalid cross-device link   dbfilename /data1/redisdata/dump.rdb 路径需要同文件系统,否则无法写入dump.rdb文件 ? /** Save the DB on disk. Return REDIS_ERR on error, REDIS_OK on success */ 0405 int rdbSave(char *filename) { 0406 dictIterator *di = NULL; 0407 ...

SLAVEOF host port

The SLAVEOF command can change the replication settings of a slave on the fly. If a Redis server is already acting as slave, the command SLAVEOF NO ONE will turn off the replication turning the Redis server into a MASTER. In the proper form SLAVEOF hostname port will ...
1、安装Plugin   语法如下: INSTALL PLUGIN plugin_name SONAME 'plugin_library'   实例:   Mysql>INSTALL PLUGIN  Archive    SONAME ‘ha_archive.so’;   Mysql>INSTALL PLUGIN  InnoDB    SONAME ‘ha_innodb.so’;   plugin_name 是在plugin声明中定义的plugin的名称,plugin名字大小写敏感可以由系统设置。plugin_library 是共享库的名字,共享库在 ...
usermod -g 组名 用户名:更改用户所属组,是覆盖; 小写 是 覆盖 usermod -G 组名1[,组名2,……] 用户名:添加用户所属组; 大写 是添加 usermod -G 组名 用户名 类似于,Linux系统 一个组可以包含多个用户成员,反过来 ...

mysql 变量

1. 使用用户变量     可以清空MySQL 用户变量以记录结果,不必将它们保存到客户端的临时变量中。 例如,要找出价格最高或最低的物品的,其方法是: mysql> SELECT @min_price:=MIN(price),@max_price:=MAX(price) FROM shop; mysql> SELECT * FROM shop WHERE price=@min_price OR price=@max_price; +---------+--------+-------+ | article | dealer | pric ...

windows findstr

mysqldump --help | findstr defau   ASSOC          显示或修改文件扩展名关联。 ATTRIB         显示或更改文件属性。 BREAK          设置或清除扩展式 CTRL+C 检查。 BOOTCFG        设置 boot.ini 文件的属性以便控制启动加 ...
Can't locate DBI.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5. ...
Global site tag (gtag.js) - Google Analytics