全球LED显示屏市场中国独占83%
- 格式:docx
- 大小:128.90 KB
- 文档页数:2
ՂǖEK-820UDŽ Dž前言特征和设计多媒体投影机采用最先进的技术设计,具有便携性、耐用性和易用性。
投影机利用高亮度环保系统,具有10.7亿种颜色的调色板,采用数字光处理(DLP)技术。
计算机系统设置简单投影机配有多扫描系统,可快速符合几乎所有计算机输出信号,并且可以显示WUXGA分辨率。
实用演示功能数字变焦功能可以在演示过程中聚焦于关键信息。
激光二极管控制投影激光二极管的亮度可以手动选择(恒定功率、恒定亮度或经济模式)。
背景颜色功能背景颜色功能用于指定没有信号时的屏幕背景(“徽标”、“蓝色”、“黑色”或“白色”屏幕)。
多语言菜单显示操作菜单具有13种语言:英语、法语、西班牙语、德语、意大利语、俄语、简体中文、日语、韩语、葡萄牙语、印度尼西亚语、荷兰语和阿拉伯语。
安全功能安全功能有助于确保投影机的安全。
LAN网络功能该投影机具有有线LAN网络功能。
通过网络即可操作和管理投影机。
有关详细信息,请参考第 42 页和第47-54 页。
自动设置功能按下遥控器上的“自动”按钮,此功能即可自动搜索输入和自动调整信号。
电源管理电源管理功能可降低功耗并延长激光二极管的使用寿命。
DLP投影机—用户手册版权本出版物(包括所有照片、插图和软件)受国际版权法律保护,保留所有权利。
未经作者书面同意,不得复制本手册及其包含的任何材料。
版权所有© 2017免责声明本手册中的信息如有变更,恕不另行通知。
制造商对本文的内容不提供任何陈述或担保,特别放弃对于适销性和针对特定目的的适用性的任何隐含担保。
制造商保留修订本出版物以及不定期变更其内容、且无须向任何人通知此类修订或变更的权利。
商标本手册中的所有其他产品名称是其各自所有者的财产并且已得到认可。
前言重要安全信息使用的符号设备上以及本手册中的警告符号,用以警示危险情况。
本手册中使用以下格式为您提醒重要信息。
本手册中OSD菜单中的部件和项目采用粗体显示,如下例所示:“按遥控器上的菜单按钮,打开主菜单。
led.h是内部函数在Arduino开发中,led.h是一个头文件,用于定义和声明与LED灯相关的函数和变量。
头文件在C/C++编程中常用于声明函数和变量,以便在其他源文件中使用。
在led.h头文件中,会定义与LED灯相关的函数,比如控制LED灯亮灭、设置LED灯的亮度和颜色等。
此外,它还可能包含与LED灯相关的宏定义、数据结构和全局变量的声明。
例如,led.h头文件可能声明了一个函数来控制LED灯的亮灭:cvoid turnOnLED();void turnOffLED();这样,在其他源文件中包含led.h头文件后,就可以直接调用这些函数来控制LED 灯的亮灭。
同时,led.h头文件还可以定义与LED灯的亮度和颜色设置相关的函数,比如:cvoid setLEDBrightness(int brightness);void setLEDColor(int red, int green, int blue);这些函数可以通过参数来传递具体的亮度、红、绿、蓝三色的值,从而设置LED 灯的亮度和颜色。
除了函数的声明,led.h头文件还可以包含一些宏定义,用于定义LED灯的引脚号、亮度值的范围等。
例如:c#define LED_PIN 13#define BRIGHTNESS_MIN 0#define BRIGHTNESS_MAX 255这样,在其他源文件中引入led.h头文件后,可以直接使用这些宏定义的值,而不需要重复定义。
另外,led.h头文件可能还会声明一些全局变量,用于在使用LED灯的过程中记录一些状态或数据。
例如:cextern int ledState; 记录LED灯的状态,0表示灭,1表示亮extern int ledBrightness; 记录LED灯的亮度值extern int ledColor[3]; 记录LED灯的颜色,顺序为红、绿、蓝这些全局变量在led.h头文件中进行声明,然后在其他源文件中进行定义和使用。
常⽤汉字的Unicode码表包含汉字:的⼀是了我不⼈在他有这个上们来到时⼤地为⼦中你说⽣国年着就那和要她出也得⾥后⾃以会家可下⽽过天去能对⼩多然于⼼学么之都好看起发当没成只如事把还⽤第样道想作种开美总从⽆情⼰⾯最⼥但现前些所同⽇⼿⼜⾏意动⽅期它头经长⼉回位分爱⽼因很给名法间斯知世什两次使⾝者被⾼已亲其进此话常与活正感见明问⼒理尔点⽂⼏定本公特做外孩相西果⾛将⽉⼗实向声车全信重三机⼯物⽓每并别真打太新⽐才便夫再书部⽔像眼等体却加电主界门利海受听表德少克代员许稜先⼝由死安写性马光⽩或住难望教命花结乐⾊更拉东神记处让母⽗应直字场平报友关放⾄张认接告⼊笑内英军候民岁往何度⼭觉路带万男边风解叫任⾦快原吃妈变通师⽴象数四失满战远格⼠⾳轻⽬条呢病始达深完今提求清王化空业思切怎⾮找⽚罗钱紶吗语元喜曾离飞科⾔⼲流欢约各即指合反题必该论交终林请医晚制球决窢传画保读运及则房早院量苦⽕布品近坐产答星精视五连司巴奇管类未朋且婚台夜青北队久乎越观落尽形影红爸百令周吧识步希亚术留市半热送兴造谈容极随演收⾸根讲整式取照办强⽯古华諣拿计您装似⾜双妻尼转诉⽶称丽客南领节⾐站⿊刻统断福城故历惊脸选包紧争另建维绝树系伤⽰愿持千史谁准联妇纪基买志静阿诗独复痛消社算义竟确酒需单治卡幸兰念举仅钟怕共⽑句息功官待究跟穿室易游程号居考突⽪哪费倒价图具刚脑永歌响商礼细专黄块脚味灵改据般破引⾷仍存众注笔甚某沉⾎备习校默务⼟微娘须试怀料调⼴蜖苏显赛查密议底列富梦错座参⼋除跑亮假印设线温虽掉京初养⾹停际致阳纸李纳验助激够严证帝饭忘趣⽀春集丈⽊研班普导顿睡展跳获艺六波察群皇段急庭创区奥器谢弟店否害草排背⽌组州朝封睛板⾓况曲馆育忙质河续哥呼若推境遇⾬标姐充围案伦护冷警贝著雪索剧啊船险烟依⽃值帮汉慢佛肯闻唱沙局伯族低玩资屋击速顾泪洲团圣旁堂兵七露园⽜哭旅街劳型烈姑陈莫鱼异抱宝权鲁简态级票怪寻杀律胜份汽右洋范床舞秘午登楼贵吸责例追较职属渐左录丝⽛党继托赶章智冲叶胡吉卖坚喝⾁遗救修松临藏担戏善卫药悲敢靠伊村戴词森⽿差短祖云规窗散迷油旧适乡架恩投弹铁博雷府压超负勒杂醒洗采毫嘴毕九冰既状乱景席珍童顶派素脱农疑练野按犯拍征坏⾻余承置臓彩灯巨琴免环姆暗换技翻束增忍餐洛塞缺忆判欧层付阵玛批岛项狗休懂武⾰良恶恋委拥娜妙探呀营退摇弄桌熟诺宣银势奖宫忽套康供优课鸟喊降夏困刘罪亡鞋健模败伴守挥鲜财孤枪禁恐伙杰迹妹藸遍盖副坦牌江顺秋萨菜划授归浪听凡预奶雄升碃编典袋莱含盛济蒙棋端腿招释介烧误unicode 编码\u7684\u4e00\u662f\u4e86\u6211\u4e0d\u4eba\u5728\u4ed6\u6709\u8fd9\u4e2a\u4e0a\u4eec\u6765\u5230\u65f6\u5927\u5730\u4e3a\u5b50\u4e2d\u4f60\u8bf4\u751f\u56fd\u5e74\u7740\u5c31\u90a3\u548c\u8981\u5979\u51fa\u4e5f\u5f97\u91cc\u540e\u81ea\u4ee5\u4f1a\u5bb6\u53ef\u4e0b\u800c\u8fc7\u5929\u53bb\u80fd\u5bf9\u5c0f\u591a\u7136\u4e8e\u5fc3\u5b66\u4e48\u4e4b\u90fd\u597d\u770b\u8d77\u53d1\u5f53\u6ca1\u6210\u53ea\u5982\u4e8b\u628a\u8fd8\u7528\u7b2c\u6837\u9053\u60f3\u4f5c\u79cd\u5f00\u7f8e\u603b\u4ece\u65e0\u60c5\u5df1\u9762\u6700\u5973\u4f46\u73b0\u524d\u4e9b\u6240\u540c\u65e5\u624b\u53c8\u884c\u610f\u52a8\u65b9\u671f\u5b83\u5934\u7ecf\u957f\u513f\u56de\u4f4d\u5206\u7231\u8001\u56e0\u5f88\u7ed9\u540d\u6cd5\u95f4\u65af\u77e5\u4e16\u4ec0\u4e24\u6b21\u4f7f\u8eab\u8005\u88ab\u9ad8\u5df2\u4eb2\u5176\u8fdb\u6b64\u8bdd\u5e38\u4e0e\u6d3b\u6b63\u611f\u89c1\u660e\u95ee\u529b\u7406\u5c14\u70b9\u6587\u51e0\u5b9a\u672c\u516c\u7279\u505a\u5916\u5b69\u76f8\u897f\u679c\u8d70\u5c06\u6708\u5341\u5b9e\u5411\u58f0\u8f66\u5168\u4fe1\u91cd\u4e09\u673a\u5de5\u7269\u6c14\u6bcf\u5e76\u522b\u771f\u6253\u592a\u65b0\u6bd4\u624d\u4fbf\u592b\u518d\u4e66\u90e8\u6c34\u50cf\u773c\u7b49\u4f53\u5374\u52a0\u7535\u4e3b\u754c\u95e8\u5229\u6d77\u53d7\u542c\u8868\u5fb7\u5c11\u514b\u4ee3\u5458\u8bb8\u7a1c\u5148\u53e3\u7531\u6b7b\u5b89\u5199\u6027\u9a6c\u5149\u767d\u6216\u4f4f\u96be\u671b\u6559\u547d\u82b1\u7ed3\u4e50\u8272\u66f4\u62c9\u4e1c\u795e\u8bb0\u5904\u8ba9\u6bcd\u7236\u5e94\u76f4\u5b57\u573a\u5e73\u62a5\u53cb\u5173\u653e\u81f3\u5f20\u8ba4\u63a5\u544a \u5165\u7b11\u5185\u82f1\u519b\u5019\u6c11\u5c81\u5f80\u4f55\u5ea6\u5c71\u89c9\u8def\u5e26 \u4e07\u7537\u8fb9\u98ce\u89e3\u53eb\u4efb\u91d1\u5feb\u539f\u5403\u5988\u53d8\u901a\u5e08 \u7acb\u8c61\u6570\u56db\u5931\u6ee1\u6218\u8fdc\u683c\u58eb\u97f3\u8f7b\u76ee\u6761\u5462 \u75c5\u59cb\u8fbe\u6df1\u5b8c\u4eca\u63d0\u6c42\u6e05\u738b\u5316\u7a7a\u4e1a\u601d\u5207 \u600e\u975e\u627e\u7247\u7f57\u94b1\u7d36\u5417\u8bed\u5143\u559c\u66fe\u79bb\u98de\u79d1 \u8a00\u5e72\u6d41\u6b22\u7ea6\u5404\u5373\u6307\u5408\u53cd\u9898\u5fc5\u8be5\u8bba\u4ea4 \u7ec8\u6797\u8bf7\u533b\u665a\u5236\u7403\u51b3\u7aa2\u4f20\u753b\u4fdd\u8bfb\u8fd0\u53ca\u5219\u623f\u65e9\u9662\u91cf\u82e6\u706b\u5e03\u54c1\u8fd1\u5750\u4ea7\u7b54\u661f\u7cbe \u89c6\u4e94\u8fde\u53f8\u5df4\u5947\u7ba1\u7c7b\u672a\u670b\u4e14\u5a5a\u53f0\u591c\u9752 \u5317\u961f\u4e45\u4e4e\u8d8a\u89c2\u843d\u5c3d\u5f62\u5f71\u7ea2\u7238\u767e\u4ee4\u5468 \u5427\u8bc6\u6b65\u5e0c\u4e9a\u672f\u7559\u5e02\u534a\u70ed\u9001\u5174\u9020\u8c08\u5bb9 \u6781\u968f\u6f14\u6536\u9996\u6839\u8bb2\u6574\u5f0f\u53d6\u7167\u529e\u5f3a\u77f3\u53e4\u534e\u8ae3\u62ff\u8ba1\u60a8\u88c5\u4f3c\u8db3\u53cc\u59bb\u5c3c\u8f6c\u8bc9\u7c73\u79f0\u4e3d\u5ba2\u5357\u9886\u8282\u8863\u7ad9\u9ed1\u523b\u7edf\u65ad\u798f\u57ce\u6545\u5386 \u60ca\u8138\u9009\u5305\u7d27\u4e89\u53e6\u5efa\u7ef4\u7edd\u6811\u7cfb\u4f24\u793a\u613f\u6301\u5343\u53f2\u8c01\u51c6\u8054\u5987\u7eaa\u57fa\u4e70\u5fd7\u9759\u963f\u8bd7\u72ec \u590d\u75db\u6d88\u793e\u7b97\u4e49\u7adf\u786e\u9152\u9700\u5355\u6cbb\u5361\u5e78\u5170 \u5ff5\u4e3e\u4ec5\u949f\u6015\u5171\u6bdb\u53e5\u606f\u529f\u5b98\u5f85\u7a76\u8ddf\u7a7f\u5ba4\u6613\u6e38\u7a0b\u53f7\u5c45\u8003\u7a81\u76ae\u54ea\u8d39\u5012\u4ef7\u56fe\u5177 \u521a\u8111\u6c38\u6b4c\u54cd\u5546\u793c\u7ec6\u4e13\u9ec4\u5757\u811a\u5473\u7075\u6539 \u636e\u822c\u7834\u5f15\u98df\u4ecd\u5b58\u4f17\u6ce8\u7b14\u751a\u67d0\u6c89\u8840\u5907 \u4e60\u6821\u9ed8\u52a1\u571f\u5fae\u5a18\u987b\u8bd5\u6000\u6599\u8c03\u5e7f\u8716\u82cf \u663e\u8d5b\u67e5\u5bc6\u8bae\u5e95\u5217\u5bcc\u68a6\u9519\u5ea7\u53c2\u516b\u9664\u8dd1 \u4eae\u5047\u5370\u8bbe\u7ebf\u6e29\u867d\u6389\u4eac\u521d\u517b\u9999\u505c\u9645\u81f4 \u9633\u7eb8\u674e\u7eb3\u9a8c\u52a9\u6fc0\u591f\u4e25\u8bc1\u5e1d\u996d\u5fd8\u8da3\u652f \u6625\u96c6\u4e08\u6728\u7814\u73ed\u666e\u5bfc\u987f\u7761\u5c55\u8df3\u83b7\u827a\u516d \u6ce2\u5bdf\u7fa4\u7687\u6bb5\u6025\u5ead\u521b\u533a\u5965\u5668\u8c22\u5f1f\u5e97\u5426 \u5bb3\u8349\u6392\u80cc\u6b62\u7ec4\u5dde\u671d\u5c01\u775b\u677f\u89d2\u51b5\u66f2\u9986 \u80b2\u5fd9\u8d28\u6cb3\u7eed\u54e5\u547c\u82e5\u63a8\u5883\u9047\u96e8\u6807\u59d0\u5145 \u56f4\u6848\u4f26\u62a4\u51b7\u8b66\u8d1d\u8457\u96ea\u7d22\u5267\u554a\u8239\u9669\u70df \u4f9d\u6597\u503c\u5e2e\u6c49\u6162\u4f5b\u80af\u95fb\u5531\u6c99\u5c40\u4f2f\u65cf\u4f4e\u73a9\u8d44\u5c4b\u51fb\u901f\u987e\u6cea\u6d32\u56e2\u5723\u65c1\u5802\u5175\u4e03\u9732 \u56ed\u725b\u54ed\u65c5\u8857\u52b3\u578b\u70c8\u59d1\u9648\u83ab\u9c7c\u5f02\u62b1\u5b9d \u6743\u9c81\u7b80\u6001\u7ea7\u7968\u602a\u5bfb\u6740\u5f8b\u80dc\u4efd\u6c7d\u53f3\u6d0b \u8303\u5e8a\u821e\u79d8\u5348\u767b\u697c\u8d35\u5438\u8d23\u4f8b\u8ffd\u8f83\u804c\u5c5e \u6e10\u5de6\u5f55\u4e1d\u7259\u515a\u7ee7\u6258\u8d76\u7ae0\u667a\u51b2\u53f6\u80e1\u5409 \u5356\u575a\u559d\u8089\u9057\u6551\u4fee\u677e\u4e34\u85cf\u62c5\u620f\u5584\u536b\u836f \u60b2\u6562\u9760\u4f0a\u6751\u6234\u8bcd\u68ee\u8033\u5dee\u77ed\u7956\u4e91\u89c4\u7a97\u6563\u8ff7\u6cb9\u65e7\u9002\u4e61\u67b6\u6069\u6295\u5f39\u94c1\u535a\u96f7\u5e9c\u538b\u8d85\u8d1f\u52d2\u6742\u9192\u6d17\u91c7\u6beb\u5634\u6bd5\u4e5d\u51b0\u65e2\u72b6\u4e71\u666f\u5e2d\u73cd\u7ae5\u9876\u6d3e\u7d20\u8131\u519c\u7591\u7ec3\u91ce\u6309\u72af\u62cd\u5f81\u574f\u9aa8\u4f59\u627f\u7f6e\u81d3\u5f69\u706f\u5de8\u7434\u514d\u73af\u59c6\u6697\u6362\u6280\u7ffb\u675f\u589e\u5fcd\u9910\u6d1b\u585e\u7f3a\u5fc6\u5224\u6b27\u5c42\u4ed8\u9635\u739b\u6279\u5c9b\u9879\u72d7\u4f11\u61c2\u6b66\u9769\u826f\u6076\u604b\u59d4\u62e5\u5a1c\u5999\u63a2\u5440\u8425\u9000\u6447\u5f04\u684c\u719f\u8bfa\u5ba3\u94f6\u52bf\u5956\u5bab\u5ffd\u5957\u5eb7\u4f9b\u4f18\u8bfe\u9e1f\u558a\u964d\u590f\u56f0\u5218\u7f6a\u4ea1\u978b\u5065\u6a21\u8d25\u4f34\u5b88\u6325\u9c9c\u8d22\u5b64\u67aa\u7981\u6050\u4f19\u6770\u8ff9\u59b9\u85f8\u904d\u76d6\u526f\u5766\u724c\u6c5f\u987a\u79cb\u8428\u83dc\u5212\u6388\u5f52\u6d6a\u542c\u51e1\u9884\u5976\u96c4\u5347\u7883\u7f16\u5178\u888b\u83b1\u542b\u76db\u6d4e\u8499\u68cb\u7aef\u817f\u62db\u91ca\u4ecb\u70e7\u8befUnicode CJK 的范围分布在多个区段中,u4e00~u9fff是整个 Unicode 中区块表,带有 CJK 的区块名中都拥有汉字。
微机原理习题第一章绪论习题与答案1.把下列二进制数转换成十进制数、十六进制数及BCD码形式。
(1) 10110010B =(2) 01011101.101B =解:(1) 10110010B = 178D = B2H = (0001 0111 1000)BCD(2) 01011101.101B = 93.625D = 5D.AH= (1001 0011.0110 0010 0101)BCD2.把下列十进制数转换成二进制数。
(1) 100D =(2) 1000D =(3) 67.21D =解:(1)100D = 01100100B(2)1000D = 1111101000B(3) 67.21D = 1000011.0011B3.把下列十六进制数转换成十进制数、二进制数。
(1) 2B5H =(2) 4CD.A5H =解:(1) 2B5H = 693D = 0010 1011 0101B(2) 4CD.A5H = 1229.6445D = 0100 1100 1101.1010 0101 B4.计算下列各式。
(1) A7H+B8H =(2) E4H-A6H =解:(1) A7H+B8H = 15FH(2) E4H-A6H = 3EH5.写出下列十进制数的原码、反码和补码。
(1) +89(2) -37解:(1) [+89 ] 原码、反码和补码为: 01011001B(2) [-37] 原码 = 10100101 B[-37] 反码 = 11011010 B[-37] 补码 = 11011011 B6.求下列用二进制补码表示的十进制数(1)(01001101)补 =(2)(10110101)补 =解:(1)(01001101)补 = 77D(2)(10110101)补 = -75D7.请用8位二进制数写出下列字符带奇校验的ASCII码。
(1)C: 1000011(2)O: 1001111(3)M: 1001101(4)P: 1010000解:(1)C:0 1000011(2)O: 0 1001111(3)M:1 1001101(4)P: 1 10100008.请用8位二进制数写出下列字符带偶校验的ASCII码。
PH的计算之一常用H+浓度来表示溶液的酸碱性,当[H+]小于1mol·L-1时,为了使用方便,常用氢离子浓度的负对数,即-lg[H+]来表示溶液的酸度,并称为pH,即pH= -lg[H+]。
任何物质的水溶液中[H+]·[OH-]=Kw,室温时Kw=1×10-14。
纯水中[H+]=[OH-]=10-7mol·L-1,则pH= -lg[H+]=7。
在其他中性溶液中[H+]=[OH-]=10-7mol·L-1,pH也为7;酸性溶液中[H+]>[OH-],其pH<7;碱性溶液中[H+]<[OH-],其pH>7。
氢氧离子浓度的负对数也可表示为pOH,则溶液的pH + pOH = 14,pH=14 - pOH。
计算溶液的pH关键在于正确求出各种溶液的[H+],具体计算如下:例1:计算0.01mol·L-1盐酸溶液的pH。
解盐酸是强电解质,在水中全部电离[H+]=0.01mol·L-1pH=-lg[H+]=-lg 0.01=2答该溶液的pH为2。
例2:计算c=0.1mol·L-1醋酸溶液(电离度α=1.34%)的pH。
解醋酸是弱电解质在水中部分电离[H+]=α·C=1.34%×0.1=1.34×10-3(mol·L-1)pH= -lg[H+]=-lg 1.34×10-3=2.87答该溶液的pH为2.87。
例3:计算c(NaOH)=0.1mol·L-1氢氧化钠溶液的pH。
解 NaOH为强电解质在水中全部电离[OH-]=0.1mol·L-1pH= -lg[H+]=-lg10-13=13另一算法:pH=14-pOH=14-(-lg[OH-])=14-1=13答该氢氧化钠溶液的pH为13。
例4:某溶液的pH=5求该溶液的H+和OH-的浓度。
解 pH=5=-lg[H+] [H+]=10-5(mol·L-1)答该溶液的H+浓度为10-5mol·L-1,OH-的浓度为10-9mol·L-1pH的计算之二1.简单酸碱溶液的pH由pH= -lg[H+],只要求得[H+]即可。
Redis服务之Redis5集群相关命令说明 创建集群[root@node1 redis]# redis-cli -a admin --cluster create 192.168.0.41:6379 192.168.0.42:6379 192.168.0.43:6379 192.168.0.41:6380 192.168.0.42:6380 192.168.0.43:6380 --cluster-replicas 1 Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.>>> Performing hash slots allocation on 6 nodes...Master[0] -> Slots 0 - 5460Master[1] -> Slots 5461 - 10922Master[2] -> Slots 10923 - 16383Adding replica 192.168.0.42:6380 to 192.168.0.41:6379Adding replica 192.168.0.43:6380 to 192.168.0.42:6379Adding replica 192.168.0.41:6380 to 192.168.0.43:6379M: 91e34830f16e45110e37618540628587d5ecc7e2 192.168.0.41:6379slots:[0-5460] (5461 slots) masterM: 506776f910a52e45987785199e4fd293956ac1c5 192.168.0.42:6379slots:[5461-10922] (5462 slots) masterM: 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617 192.168.0.43:6379slots:[10923-16383] (5461 slots) masterS: 646b85ae18a63f36866c64edfba374559252dd1b 192.168.0.41:6380replicates 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617S: eb23a3ff659ee22d03661cf312d5bf38b32686b5 192.168.0.42:6380replicates 91e34830f16e45110e37618540628587d5ecc7e2S: 6274aa87409a801311e580cb19d185c1d53bfa1f 192.168.0.43:6380replicates 506776f910a52e45987785199e4fd293956ac1c5Can I set the above configuration? (type 'yes' to accept): yes>>> Nodes configuration updated>>> Assign a different config epoch to each node>>> Sending CLUSTER MEET messages to join the clusterWaiting for the cluster to join.....>>> Performing Cluster Check (using node 192.168.0.41:6379)M: 91e34830f16e45110e37618540628587d5ecc7e2 192.168.0.41:6379slots:[0-5460] (5461 slots) master1 additional replica(s)M: 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617 192.168.0.43:6379slots:[10923-16383] (5461 slots) master1 additional replica(s)S: eb23a3ff659ee22d03661cf312d5bf38b32686b5 192.168.0.42:6380slots: (0 slots) slavereplicates 91e34830f16e45110e37618540628587d5ecc7e2S: 6274aa87409a801311e580cb19d185c1d53bfa1f 192.168.0.43:6380slots: (0 slots) slavereplicates 506776f910a52e45987785199e4fd293956ac1c5M: 506776f910a52e45987785199e4fd293956ac1c5 192.168.0.42:6379slots:[5461-10922] (5462 slots) master1 additional replica(s)S: 646b85ae18a63f36866c64edfba374559252dd1b 192.168.0.41:6380slots: (0 slots) slavereplicates 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617[OK] All nodes agree about slots configuration.>>> Check for open slots...>>> Check slots coverage...[OK] All 16384 slots covered.[root@node1 redis]# 提⽰:-a表⽰指定连接集群的密码,--cluster create 表⽰创建集群,后⾯跟要加⼊集群的各节点ip地址和端⼝(包括master和slave);--cluster replicas ⽤来指定集群master对应的副本(slave)数量;它会根据我们指定的数量,去创建master和slave,并把16384个槽位平均分配给对应的master节点,并且会⾃动关联master和slave的关系; 查看集群信息[root@node1 redis]# cd[root@node1 ~]# redis-cli --cluster info 192.168.0.41:6379[ERR] Node 192.168.0.41:6379 NOAUTH Authentication required.[root@node1 ~]# redis-cli -a admin --cluster info 192.168.0.41:6379Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.192.168.0.41:6379 (91e34830...) -> 0 keys | 5461 slots | 1 slaves.192.168.0.43:6379 (0479a31d...) -> 0 keys | 5461 slots | 1 slaves.192.168.0.42:6379 (506776f9...) -> 0 keys | 5462 slots | 1 slaves.[OK] 0 keys in 3 masters.0.00 keys per slot on average.[root@node1 ~]# redis-cli -a admin --cluster check 192.168.0.41:6379Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.192.168.0.41:6379 (91e34830...) -> 0 keys | 5461 slots | 1 slaves.192.168.0.43:6379 (0479a31d...) -> 0 keys | 5461 slots | 1 slaves.192.168.0.42:6379 (506776f9...) -> 0 keys | 5462 slots | 1 slaves.[OK] 0 keys in 3 masters.0.00 keys per slot on average.>>> Performing Cluster Check (using node 192.168.0.41:6379)M: 91e34830f16e45110e37618540628587d5ecc7e2 192.168.0.41:6379slots:[0-5460] (5461 slots) master1 additional replica(s)M: 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617 192.168.0.43:6379slots:[10923-16383] (5461 slots) master1 additional replica(s)S: eb23a3ff659ee22d03661cf312d5bf38b32686b5 192.168.0.42:6380slots: (0 slots) slavereplicates 91e34830f16e45110e37618540628587d5ecc7e2S: 6274aa87409a801311e580cb19d185c1d53bfa1f 192.168.0.43:6380slots: (0 slots) slavereplicates 506776f910a52e45987785199e4fd293956ac1c5M: 506776f910a52e45987785199e4fd293956ac1c5 192.168.0.42:6379slots:[5461-10922] (5462 slots) master1 additional replica(s)S: 646b85ae18a63f36866c64edfba374559252dd1b 192.168.0.41:6380slots: (0 slots) slavereplicates 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617[OK] All nodes agree about slots configuration.>>> Check for open slots...>>> Check slots coverage...[OK] All 16384 slots covered.[root@node1 ~]# 查看集群 node 对应关系[root@node1 ~]# redis-cli -a admin -c cluster nodesWarning: Using a password with '-a' or '-u' option on the command line interface may not be safe.0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617 192.168.0.43:6379@16379 master - 0 1592495162494 3 connected 10923-16383eb23a3ff659ee22d03661cf312d5bf38b32686b5 192.168.0.42:6380@16380 slave 91e34830f16e45110e37618540628587d5ecc7e2 0 1592495164579 5 connected91e34830f16e45110e37618540628587d5ecc7e2 192.168.0.41:6379@16379 myself,master - 0 1592495158000 1 connected 0-54606274aa87409a801311e580cb19d185c1d53bfa1f 192.168.0.43:6380@16380 slave 506776f910a52e45987785199e4fd293956ac1c5 0 1592495159344 6 connected506776f910a52e45987785199e4fd293956ac1c5 192.168.0.42:6379@16379 master - 0 1592495163529 2 connected 5461-10922646b85ae18a63f36866c64edfba374559252dd1b 192.168.0.41:6380@16380 slave 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617 0 1592495161445 4 connected[root@node1 ~]# 查看集群状态[root@node1 ~]# redis-cli -a admin -c cluster infoWarning: Using a password with '-a' or '-u' option on the command line interface may not be safe.cluster_state:okcluster_slots_assigned:16384cluster_slots_ok:16384cluster_slots_pfail:0cluster_slots_fail:0cluster_known_nodes:6cluster_size:3cluster_current_epoch:6cluster_my_epoch:1cluster_stats_messages_ping_sent:159cluster_stats_messages_pong_sent:158cluster_stats_messages_sent:317cluster_stats_messages_ping_received:153cluster_stats_messages_pong_received:159cluster_stats_messages_meet_received:5cluster_stats_messages_received:317[root@node1 ~]# 提⽰:其实以上命令就是使⽤⾮交互式命令和redis交互,有点类似mysql中的-e选项,连接到对应redisserver上执⾏命令后返回,在mysql中⽤-e指定要执⾏的命令,在redis中⽤-c指定要执⾏的命令; 添加⼀个新节点到现有集群 实验环境说明 环境⽬录结构[root@node03 redis]# tree.├── 6379│└── etc│└── redis.conf├── 6380│└── etc│└── redis.conf├── 6381│└── etc│└── redis.conf├── 6382│└── etc│└── redis.conf├── bin│├── redis-benchmark│├── redis-check-aof│├── redis-check-rdb│├── redis-cli│├── redis-sentinel -> redis-server│└── redis-server├── dump_6379.rdb├── dump_6380.rdb├── logs│├── redis_6379.log│└── redis_6380.log├── redis-cluster-6379.conf├── redis-cluster-6380.conf└── run11 directories, 16 files[root@node03 redis]# 确认配置⽂件信息 提⽰:需要注意bind的地址必须能够和集群其他节点通信,端⼝不能和本机其他端⼝冲突,密码要和集群中的节点其他密码相同; 启动192.168.0.43:6081/6082 把192.168.0.43:6381/6382添加到现有集群[root@node1 ~]# redis-cli -a admin --cluster add-node 192.168.0.43:6381 192.168.0.41:6379Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.>>> Adding node 192.168.0.43:6381 to cluster 192.168.0.41:6379>>> Performing Cluster Check (using node 192.168.0.41:6379)M: 91e34830f16e45110e37618540628587d5ecc7e2 192.168.0.41:6379slots:[0-5460] (5461 slots) master1 additional replica(s)M: 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617 192.168.0.43:6379slots:[10923-16383] (5461 slots) master1 additional replica(s)S: eb23a3ff659ee22d03661cf312d5bf38b32686b5 192.168.0.42:6380slots: (0 slots) slavereplicates 91e34830f16e45110e37618540628587d5ecc7e2S: 6274aa87409a801311e580cb19d185c1d53bfa1f 192.168.0.43:6380slots: (0 slots) slavereplicates 506776f910a52e45987785199e4fd293956ac1c5M: 506776f910a52e45987785199e4fd293956ac1c5 192.168.0.42:6379slots:[5461-10922] (5462 slots) master1 additional replica(s)S: 646b85ae18a63f36866c64edfba374559252dd1b 192.168.0.41:6380slots: (0 slots) slavereplicates 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617[OK] All nodes agree about slots configuration.>>> Check for open slots...>>> Check slots coverage...[OK] All 16384 slots covered.>>> Send CLUSTER MEET to node 192.168.0.43:6381 to make it join the cluster.[OK] New node added correctly.[root@node1 ~]# redis-cli -a admin --cluster add-node 192.168.0.43:6382 192.168.0.41:6379Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.>>> Adding node 192.168.0.43:6382 to cluster 192.168.0.41:6379>>> Performing Cluster Check (using node 192.168.0.41:6379)M: 91e34830f16e45110e37618540628587d5ecc7e2 192.168.0.41:6379slots:[0-5460] (5461 slots) master1 additional replica(s)M: 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617 192.168.0.43:6379slots:[10923-16383] (5461 slots) master1 additional replica(s)S: eb23a3ff659ee22d03661cf312d5bf38b32686b5 192.168.0.42:6380slots: (0 slots) slavereplicates 91e34830f16e45110e37618540628587d5ecc7e2S: 6274aa87409a801311e580cb19d185c1d53bfa1f 192.168.0.43:6380slots: (0 slots) slavereplicates 506776f910a52e45987785199e4fd293956ac1c5M: 95fa21156efabc1e07b07b0bdbe52bf8fe004b86 192.168.0.43:6381slots: (0 slots) masterM: 506776f910a52e45987785199e4fd293956ac1c5 192.168.0.42:6379slots:[5461-10922] (5462 slots) master1 additional replica(s)S: 646b85ae18a63f36866c64edfba374559252dd1b 192.168.0.41:6380slots: (0 slots) slavereplicates 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617[OK] All nodes agree about slots configuration.>>> Check for open slots...>>> Check slots coverage...[OK] All 16384 slots covered.>>> Send CLUSTER MEET to node 192.168.0.43:6382 to make it join the cluster.[OK] New node added correctly.[root@node1 ~]# 查看现有集群信息[root@node1 ~]# redis-cli -a admin --cluster check 192.168.0.41:6379Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.192.168.0.41:6379 (91e34830...) -> 0 keys | 5461 slots | 1 slaves.192.168.0.43:6379 (0479a31d...) -> 0 keys | 5461 slots | 1 slaves.192.168.0.43:6382 (43d6e13d...) -> 0 keys | 0 slots | 0 slaves.192.168.0.43:6381 (95fa2115...) -> 0 keys | 0 slots | 0 slaves.192.168.0.42:6379 (506776f9...) -> 0 keys | 5462 slots | 1 slaves.[OK] 0 keys in 5 masters.0.00 keys per slot on average.>>> Performing Cluster Check (using node 192.168.0.41:6379)M: 91e34830f16e45110e37618540628587d5ecc7e2 192.168.0.41:6379slots:[0-5460] (5461 slots) master1 additional replica(s)M: 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617 192.168.0.43:6379slots:[10923-16383] (5461 slots) master1 additional replica(s)S: eb23a3ff659ee22d03661cf312d5bf38b32686b5 192.168.0.42:6380slots: (0 slots) slavereplicates 91e34830f16e45110e37618540628587d5ecc7e2S: 6274aa87409a801311e580cb19d185c1d53bfa1f 192.168.0.43:6380slots: (0 slots) slavereplicates 506776f910a52e45987785199e4fd293956ac1c5M: 43d6e13d06019af045e378ddc3e82b15b41ebdcd 192.168.0.43:6382slots: (0 slots) masterM: 95fa21156efabc1e07b07b0bdbe52bf8fe004b86 192.168.0.43:6381slots: (0 slots) masterM: 506776f910a52e45987785199e4fd293956ac1c5 192.168.0.42:6379slots:[5461-10922] (5462 slots) master1 additional replica(s)S: 646b85ae18a63f36866c64edfba374559252dd1b 192.168.0.41:6380slots: (0 slots) slavereplicates 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617[OK] All nodes agree about slots configuration.>>> Check for open slots...>>> Check slots coverage...[OK] All 16384 slots covered.[root@node1 ~]# redis-cli -a admin -c cluster nodesWarning: Using a password with '-a' or '-u' option on the command line interface may not be safe.0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617 192.168.0.43:6379@16379 master - 0 1592498237487 3 connected 10923-16383eb23a3ff659ee22d03661cf312d5bf38b32686b5 192.168.0.42:6380@16380 slave 91e34830f16e45110e37618540628587d5ecc7e2 0 1592498238525 5 connected 91e34830f16e45110e37618540628587d5ecc7e2 192.168.0.41:6379@16379 myself,master - 0 1592498215000 1 connected 0-54606274aa87409a801311e580cb19d185c1d53bfa1f 192.168.0.43:6380@16380 slave 506776f910a52e45987785199e4fd293956ac1c5 0 1592498234346 6 connected 43d6e13d06019af045e378ddc3e82b15b41ebdcd 192.168.0.43:6382@16382 master - 0 1592498236438 7 connected95fa21156efabc1e07b07b0bdbe52bf8fe004b86 192.168.0.43:6381@16381 master - 0 1592498235388 0 connected506776f910a52e45987785199e4fd293956ac1c5 192.168.0.42:6379@16379 master - 0 1592498239566 2 connected 5461-10922646b85ae18a63f36866c64edfba374559252dd1b 192.168.0.41:6380@16380 slave 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617 0 1592498233609 4 connected [root@node1 ~]# 提⽰:可以看到对应集群上新加了两个节点,都是master⾓⾊,并且新加的两个节点都没有slave和slot; 分配槽位给192.168.0.43:6381[root@node1 ~]# redis-cli -a admin --cluster check 192.168.0.41:6379Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.192.168.0.41:6379 (91e34830...) -> 0 keys | 5461 slots | 1 slaves.192.168.0.43:6379 (0479a31d...) -> 0 keys | 5461 slots | 1 slaves.192.168.0.43:6382 (43d6e13d...) -> 0 keys | 0 slots | 0 slaves.192.168.0.43:6381 (95fa2115...) -> 0 keys | 0 slots | 0 slaves.192.168.0.42:6379 (506776f9...) -> 0 keys | 5462 slots | 1 slaves.[OK] 0 keys in 5 masters.0.00 keys per slot on average.>>> Performing Cluster Check (using node 192.168.0.41:6379)M: 91e34830f16e45110e37618540628587d5ecc7e2 192.168.0.41:6379slots:[0-5460] (5461 slots) master1 additional replica(s)M: 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617 192.168.0.43:6379slots:[10923-16383] (5461 slots) master1 additional replica(s)S: eb23a3ff659ee22d03661cf312d5bf38b32686b5 192.168.0.42:6380slots: (0 slots) slavereplicates 91e34830f16e45110e37618540628587d5ecc7e2S: 6274aa87409a801311e580cb19d185c1d53bfa1f 192.168.0.43:6380slots: (0 slots) slavereplicates 506776f910a52e45987785199e4fd293956ac1c5M: 43d6e13d06019af045e378ddc3e82b15b41ebdcd 192.168.0.43:6382slots: (0 slots) masterM: 95fa21156efabc1e07b07b0bdbe52bf8fe004b86 192.168.0.43:6381slots: (0 slots) masterM: 506776f910a52e45987785199e4fd293956ac1c5 192.168.0.42:6379slots:[5461-10922] (5462 slots) master1 additional replica(s)S: 646b85ae18a63f36866c64edfba374559252dd1b 192.168.0.41:6380slots: (0 slots) slavereplicates 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617[OK] All nodes agree about slots configuration.>>> Check for open slots...>>> Check slots coverage...[OK] All 16384 slots covered.[root@node1 ~]# redis-cli -a admin --cluster reshard 192.168.0.41:6379Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.>>> Performing Cluster Check (using node 192.168.0.41:6379)M: 91e34830f16e45110e37618540628587d5ecc7e2 192.168.0.41:6379slots:[0-5460] (5461 slots) master1 additional replica(s)M: 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617 192.168.0.43:6379slots:[10923-16383] (5461 slots) master1 additional replica(s)S: eb23a3ff659ee22d03661cf312d5bf38b32686b5 192.168.0.42:6380slots: (0 slots) slavereplicates 91e34830f16e45110e37618540628587d5ecc7e2S: 6274aa87409a801311e580cb19d185c1d53bfa1f 192.168.0.43:6380slots: (0 slots) slavereplicates 506776f910a52e45987785199e4fd293956ac1c5M: 43d6e13d06019af045e378ddc3e82b15b41ebdcd 192.168.0.43:6382slots: (0 slots) masterM: 95fa21156efabc1e07b07b0bdbe52bf8fe004b86 192.168.0.43:6381slots: (0 slots) masterM: 506776f910a52e45987785199e4fd293956ac1c5 192.168.0.42:6379slots:[5461-10922] (5462 slots) master1 additional replica(s)S: 646b85ae18a63f36866c64edfba374559252dd1b 192.168.0.41:6380slots: (0 slots) slavereplicates 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617[OK] All nodes agree about slots configuration.>>> Check for open slots...>>> Check slots coverage...[OK] All 16384 slots covered.How many slots do you want to move (from 1 to 16384)? 4096What is the receiving node ID? 95fa21156efabc1e07b07b0bdbe52bf8fe004b86Please enter all the source node IDs.Type 'all' to use all the nodes as source nodes for the hash slots.Type 'done' once you entered all the source nodes IDs.Source node #1: allReady to move 4096 slots.Source nodes:M: 91e34830f16e45110e37618540628587d5ecc7e2 192.168.0.41:6379slots:[0-5460] (5461 slots) master1 additional replica(s)M: 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617 192.168.0.43:6379slots:[10923-16383] (5461 slots) master1 additional replica(s)M: 43d6e13d06019af045e378ddc3e82b15b41ebdcd 192.168.0.43:6382slots: (0 slots) masterM: 506776f910a52e45987785199e4fd293956ac1c5 192.168.0.42:6379slots:[5461-10922] (5462 slots) master1 additional replica(s)Destination node:M: 95fa21156efabc1e07b07b0bdbe52bf8fe004b86 192.168.0.43:6381slots: (0 slots) masterResharding plan:Moving slot 5461 from 506776f910a52e45987785199e4fd293956ac1c5Moving slot 5462 from 506776f910a52e45987785199e4fd293956ac1c5Moving slot 5463 from 506776f910a52e45987785199e4fd293956ac1c5Moving slot 5464 from 506776f910a52e45987785199e4fd293956ac1c5Moving slot 5465 from 506776f910a52e45987785199e4fd293956ac1c5Moving slot 5466 from 506776f910a52e45987785199e4fd293956ac1c5Moving slot 5467 from 506776f910a52e45987785199e4fd293956ac1c5Moving slot 5468 from 506776f910a52e45987785199e4fd293956ac1c5Moving slot 5469 from 506776f910a52e45987785199e4fd293956ac1c5……省略部分内容……Moving slot 12284 from 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617Moving slot 12285 from 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617Moving slot 12286 from 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617Moving slot 12287 from 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617Do you want to proceed with the proposed reshard plan (yes/no)? yesMoving slot 5461 from 192.168.0.42:6379 to 192.168.0.43:6381:Moving slot 5462 from 192.168.0.42:6379 to 192.168.0.43:6381:Moving slot 5463 from 192.168.0.42:6379 to 192.168.0.43:6381:Moving slot 5464 from 192.168.0.42:6379 to 192.168.0.43:6381:……省略部分内容……Moving slot 12285 from 192.168.0.43:6379 to 192.168.0.43:6381:Moving slot 12286 from 192.168.0.43:6379 to 192.168.0.43:6381:Moving slot 12287 from 192.168.0.43:6379 to 192.168.0.43:6381:[root@node1 ~]# 提⽰:这个和redis-trib.rb命令使⽤没有什么区别; 查看新分配的槽位信息[root@node1 ~]# redis-cli -a admin --cluster check 192.168.0.41:6379Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe. 192.168.0.41:6379 (91e34830...) -> 0 keys | 4096 slots | 1 slaves.192.168.0.43:6379 (0479a31d...) -> 0 keys | 4096 slots | 1 slaves.192.168.0.43:6382 (43d6e13d...) -> 0 keys | 0 slots | 0 slaves.192.168.0.43:6381 (95fa2115...) -> 0 keys | 4096 slots | 0 slaves.192.168.0.42:6379 (506776f9...) -> 0 keys | 4096 slots | 1 slaves.[OK] 0 keys in 5 masters.0.00 keys per slot on average.>>> Performing Cluster Check (using node 192.168.0.41:6379)M: 91e34830f16e45110e37618540628587d5ecc7e2 192.168.0.41:6379slots:[1365-5460] (4096 slots) master1 additional replica(s)M: 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617 192.168.0.43:6379slots:[12288-16383] (4096 slots) master1 additional replica(s)S: eb23a3ff659ee22d03661cf312d5bf38b32686b5 192.168.0.42:6380slots: (0 slots) slavereplicates 91e34830f16e45110e37618540628587d5ecc7e2S: 6274aa87409a801311e580cb19d185c1d53bfa1f 192.168.0.43:6380slots: (0 slots) slavereplicates 506776f910a52e45987785199e4fd293956ac1c5M: 43d6e13d06019af045e378ddc3e82b15b41ebdcd 192.168.0.43:6382slots: (0 slots) masterM: 95fa21156efabc1e07b07b0bdbe52bf8fe004b86 192.168.0.43:6381slots:[0-1364],[5461-6826],[10923-12287] (4096 slots) masterM: 506776f910a52e45987785199e4fd293956ac1c5 192.168.0.42:6379slots:[6827-10922] (4096 slots) master1 additional replica(s)S: 646b85ae18a63f36866c64edfba374559252dd1b 192.168.0.41:6380slots: (0 slots) slavereplicates 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617[OK] All nodes agree about slots configuration.>>> Check for open slots...>>> Check slots coverage...[OK] All 16384 slots covered.[root@node1 ~]# 提⽰:可以看到现在集群有4个节点都分配了4096个slot,还有⼀个没有slot; 更改节点(192.168.0.43:6382)为新节点(192.168.0.43:6381)的slave[root@node1 ~]# redis-cli -a admin --cluster check 192.168.0.41:6379Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.192.168.0.41:6379 (91e34830...) -> 0 keys | 4096 slots | 1 slaves.192.168.0.43:6379 (0479a31d...) -> 0 keys | 4096 slots | 1 slaves.192.168.0.43:6382 (43d6e13d...) -> 0 keys | 0 slots | 0 slaves.192.168.0.43:6381 (95fa2115...) -> 0 keys | 4096 slots | 0 slaves.192.168.0.42:6379 (506776f9...) -> 0 keys | 4096 slots | 1 slaves.[OK] 0 keys in 5 masters.0.00 keys per slot on average.>>> Performing Cluster Check (using node 192.168.0.41:6379)M: 91e34830f16e45110e37618540628587d5ecc7e2 192.168.0.41:6379slots:[1365-5460] (4096 slots) master1 additional replica(s)M: 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617 192.168.0.43:6379slots:[12288-16383] (4096 slots) master1 additional replica(s)S: eb23a3ff659ee22d03661cf312d5bf38b32686b5 192.168.0.42:6380slots: (0 slots) slavereplicates 91e34830f16e45110e37618540628587d5ecc7e2S: 6274aa87409a801311e580cb19d185c1d53bfa1f 192.168.0.43:6380slots: (0 slots) slavereplicates 506776f910a52e45987785199e4fd293956ac1c5M: 43d6e13d06019af045e378ddc3e82b15b41ebdcd 192.168.0.43:6382slots: (0 slots) masterM: 95fa21156efabc1e07b07b0bdbe52bf8fe004b86 192.168.0.43:6381slots:[0-1364],[5461-6826],[10923-12287] (4096 slots) masterM: 506776f910a52e45987785199e4fd293956ac1c5 192.168.0.42:6379slots:[6827-10922] (4096 slots) master1 additional replica(s)S: 646b85ae18a63f36866c64edfba374559252dd1b 192.168.0.41:6380slots: (0 slots) slavereplicates 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617[OK] All nodes agree about slots configuration.>>> Check for open slots...>>> Check slots coverage...[OK] All 16384 slots covered.[root@node1 ~]# redis-cli -h 192.168.0.43 -p 6382 -a admin -c cluster replicate 95fa21156efabc1e07b07b0bdbe52bf8fe004b86Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.OK[root@node1 ~]# redis-cli -a admin --cluster check 192.168.0.41:6379Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.192.168.0.41:6379 (91e34830...) -> 0 keys | 4096 slots | 1 slaves.192.168.0.43:6379 (0479a31d...) -> 0 keys | 4096 slots | 1 slaves.192.168.0.43:6381 (95fa2115...) -> 0 keys | 4096 slots | 1 slaves.192.168.0.42:6379 (506776f9...) -> 0 keys | 4096 slots | 1 slaves.[OK] 0 keys in 4 masters.0.00 keys per slot on average.>>> Performing Cluster Check (using node 192.168.0.41:6379)M: 91e34830f16e45110e37618540628587d5ecc7e2 192.168.0.41:6379slots:[1365-5460] (4096 slots) master1 additional replica(s)M: 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617 192.168.0.43:6379slots:[12288-16383] (4096 slots) master1 additional replica(s)S: eb23a3ff659ee22d03661cf312d5bf38b32686b5 192.168.0.42:6380slots: (0 slots) slavereplicates 91e34830f16e45110e37618540628587d5ecc7e2S: 6274aa87409a801311e580cb19d185c1d53bfa1f 192.168.0.43:6380slots: (0 slots) slavereplicates 506776f910a52e45987785199e4fd293956ac1c5S: 43d6e13d06019af045e378ddc3e82b15b41ebdcd 192.168.0.43:6382slots: (0 slots) slavereplicates 95fa21156efabc1e07b07b0bdbe52bf8fe004b86M: 95fa21156efabc1e07b07b0bdbe52bf8fe004b86 192.168.0.43:6381slots:[0-1364],[5461-6826],[10923-12287] (4096 slots) master1 additional replica(s)M: 506776f910a52e45987785199e4fd293956ac1c5 192.168.0.42:6379slots:[6827-10922] (4096 slots) master1 additional replica(s)S: 646b85ae18a63f36866c64edfba374559252dd1b 192.168.0.41:6380slots: (0 slots) slavereplicates 0479a31d9a7bcb88a9fc1c4227f0f3e06ea3b617[OK] All nodes agree about slots configuration.>>> Check for open slots...>>> Check slots coverage...[OK] All 16384 slots covered.[root@node1 ~]# 提⽰:我上⾯使⽤-c在shell上连接redis执⾏命令,这个和交互式执⾏命令⼀样的效果;从上⾯的信息可以看到192.168.0.43:6381已经有⼀个slave了,对应192.168.0.43:6382也没有出现到master列表中了; 验证:向集群中读写数据[root@node1 ~]# redis-cli -a adminWarning: Using a password with '-a' or '-u' option on the command line interface may not be safe.127.0.0.1:6379> KEYS *(empty list or set)127.0.0.1:6379> set aa bb(error) MOVED 1180 192.168.0.43:6381127.0.0.1:6379> set cc dd(error) MOVED 700 192.168.0.43:6381127.0.0.1:6379> set k v(error) MOVED 7629 192.168.0.42:6379127.0.0.1:6379> set kk vvOK127.0.0.1:6379> get kk"vv"127.0.0.1:6379> 提⽰:从上⾯的结果看,读写都可以正常执⾏,也能够正常的把对应的key进⾏计算,并告诉我们该到那个节点上执⾏对应的key读写操作; 验证:停掉集群中任意⼀台master,看看对应slave是否提升为master?[root@node2 redis]# redis-cli -a admin --cluster info 192.168.0.42Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.[ERR] Invalid arguments: you need to pass either a valid address (ie. 120.0.0.1:7000) or space separated IP and port (ie. 120.0.0.1 7000)[root@node2 redis]#[root@node2 redis]# redis-cli -a admin --cluster info 192.168.0.42:6379Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.192.168.0.42:6379 (506776f9...) -> 0 keys | 4096 slots | 1 slaves.192.168.0.43:6379 (0479a31d...) -> 0 keys | 4096 slots | 1 slaves.192.168.0.41:6379 (91e34830...) -> 1 keys | 4096 slots | 1 slaves.192.168.0.43:6381 (95fa2115...) -> 0 keys | 4096 slots | 1 slaves.[OK] 1 keys in 4 masters.0.00 keys per slot on average.[root@node2 redis]# ps -ef |grep redisroot 20256 1 0 11:40 ? 00:00:15 redis-server 0.0.0.0:6379 [cluster]root 20258 1 0 11:40 ? 00:00:13 redis-server 0.0.0.0:6380 [cluster]root 20318 1926 0 13:04 pts/1 00:00:00 grep --color=auto redis[root@node2 redis]# kill -9 20256[root@node2 redis]# redis-cli -a admin --cluster info 192.168.0.41:6379Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.Could not connect to Redis at 192.168.0.42:6379: Connection refused*** WARNING: 192.168.0.43:6380 claims to be slave of unknown node ID 506776f910a52e45987785199e4fd293956ac1c5.192.168.0.41:6379 (91e34830...) -> 1 keys | 4096 slots | 1 slaves.192.168.0.43:6379 (0479a31d...) -> 0 keys | 4096 slots | 1 slaves.192.168.0.43:6381 (95fa2115...) -> 0 keys | 4096 slots | 1 slaves.[OK] 1 keys in 3 masters.0.00 keys per slot on average.[root@node2 redis]# redis-cli -a admin --cluster info 192.168.0.41:6379Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.Could not connect to Redis at 192.168.0.42:6379: Connection refused192.168.0.41:6379 (91e34830...) -> 1 keys | 4096 slots | 1 slaves.192.168.0.43:6379 (0479a31d...) -> 0 keys | 4096 slots | 1 slaves.192.168.0.43:6380 (6274aa87...) -> 0 keys | 4096 slots | 0 slaves.192.168.0.43:6381 (95fa2115...) -> 0 keys | 4096 slots | 1 slaves.[OK] 1 keys in 4 masters.0.00 keys per slot on average.[root@node2 redis]# 提⽰:可以看到对应slave是能够被提升为master的; 验证:把对应宕机的节点启动起来,看看是否⾃动降级为slave呢?[root@node2 redis]# redis-cli -a admin --cluster info 192.168.0.41:6379Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.Could not connect to Redis at 192.168.0.42:6379: Connection refused192.168.0.41:6379 (91e34830...) -> 1 keys | 4096 slots | 1 slaves.192.168.0.43:6379 (0479a31d...) -> 0 keys | 4096 slots | 1 slaves.192.168.0.43:6380 (6274aa87...) -> 0 keys | 4096 slots | 0 slaves.192.168.0.43:6381 (95fa2115...) -> 0 keys | 4096 slots | 1 slaves.[OK] 1 keys in 4 masters.0.00 keys per slot on average.[root@node2 redis]# redis-server /usr/local/redis/6379/etc/redis.conf[root@node2 redis]# redis-cli -a admin --cluster info 192.168.0.41:6379Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.192.168.0.41:6379 (91e34830...) -> 1 keys | 4096 slots | 1 slaves.192.168.0.43:6379 (0479a31d...) -> 0 keys | 4096 slots | 1 slaves.192.168.0.43:6380 (6274aa87...) -> 0 keys | 4096 slots | 1 slaves.192.168.0.43:6381 (95fa2115...) -> 0 keys | 4096 slots | 1 slaves.[OK] 1 keys in 4 masters.0.00 keys per slot on average.[root@node2 redis]# redis-cli -a admin -h 192.168.0.42 -p 6379 -c info replicationWarning: Using a password with '-a' or '-u' option on the command line interface may not be safe.# Replicationrole:slavemaster_host:192.168.0.43master_port:6380master_link_status:upmaster_last_io_seconds_ago:3master_sync_in_progress:0slave_repl_offset:6594slave_priority:100slave_read_only:1connected_slaves:0master_replid:7b45a2b847aba7e40e3a6b7f39d4511fa2a62b6amaster_replid2:0000000000000000000000000000000000000000master_repl_offset:6594second_repl_offset:-1repl_backlog_active:1repl_backlog_size:1048576repl_backlog_first_byte_offset:6497repl_backlog_histlen:98[root@node2 redis]#。
全球LED显示屏市场中国独占83% 应用最成熟
全彩屏市场是主要增长动力
2010年中国LED显示屏总产值的快速增长主要得益于led全彩屏市场的快速增长;其次,全球LED显示屏生产向中国转移也是产值增长迅速的原因之一。
而单双色显示屏的需求量增长已经趋于平稳,没有出现爆发式的增长。
中国生产全球83%的LED显示屏
目前,中国已经成为全球LED显示屏的制造基地,LED显示屏全球市场份额从2008年的70%,增长到2010年的83%。
2010年中国LED显示屏市场规模达185亿元
中国生产的LED显示屏质量已经被全球市场认可,中国LED显示屏本土品牌企业在不断发展壮大。
全球领先的LED显示屏企业纷纷找中国工厂给其代工,例如深圳锐拓是松下的主要代工企业。
中国LED显示屏产量情况
2010年中国LED显示屏总产量260万平方米,同比增长48%。
其中,按生产面积先后顺序排列分别为LED全彩屏、LED单色显示屏、LED双色显示屏。
三个类别的显示屏面积差别不大。
预计,2011年LED双色显示屏生产面积有望超过LED单色显示屏。
LED显示屏芯片主要供应企业
中国LED芯片企业士兰明芯、华灿、三安、大连路美是显示屏用蓝绿光LED芯片本土主要供应商,而厦门乾照是主要红黄光LED芯片本土供应商。
中国本土企业生产的显示屏用LED芯片已经完全能够替代进口芯片,并且在质量上的差距也越来越小。
台湾光磊生产的红光LED芯片是不少显示屏企业的第一选择,而台湾晶元也以供应红光LED芯片和小部分蓝绿光LED芯片。
国际企业日亚、CREE,OSRAM是中国主要的高档显示屏用LED芯片供应商,主要供应蓝绿光LED芯片,特别是日亚和CREE在中国显示屏用LED芯片领域,占有较大的市场份额。
LED应用最成熟的市场之一,上市潮来临
显示屏一直是中国LED应用最成熟的领域之一,也是LED行业规模企业最集中的领域之一。
发展稍好的LED显示屏企业的销售规模都在1亿元人民币以上。
截至2010年,中国LED显示屏企业年产值超过1亿元人民币的超过40家,其中大部分企业都有上市的计划。
2011年4月18日,以LED显示屏生产为主的深圳洲明科技和深圳奥拓电子成功过会,成为今年最先上市的LED企业。
两个上市的LED显示屏企业都集中在深圳是行业发展的必然,因为深圳LED显示屏企业数量占全国的41%,更是集中了全国75%以上的LED全彩屏企业,其中约30家企业LED显示屏销售收入超过1亿元人民币。
包括洲明、联建、艾比森、钧多立、锐拓等。
长时间以来,LED显示屏领域并未受到主流媒体、投资机构、甚至LED业内人士的关注。
相信洲明和奥拓的上市将使市场更多的目光关注LED显示屏行业。
而且随着行业的发展,中国LED显示屏在国际市场也会以代工为主转变成自主品牌为主。