摘要: 组件 Daemon 端口 配置 说明HDFS Datanode 50010 dfs.datanode.address datanode服务端口,用于数据传输HDFS DataNode 50075 dfs.datanode.http.address http服务的端口HDFS Datanode 50475 dfs.datanode.https.address https服务的端口HDFS Datan... 阅读全文
posted @ 2017-05-26 19:35 wuzhenzhou 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 01, 1万连接,共进行10万次测试set,get指令,默认数据大小为8096 bytesredis-benchmark -c 10000 -n 100000 -d 8096 -t set,get02. 5000连接[root@t-bj-redis-test ~]# redis-benchmark -c 5000 -n 100000 -d 100 -q ... 阅读全文
posted @ 2017-05-26 17:56 wuzhenzhou 阅读(209) 评论(0) 推荐(0) 编辑
摘要: #修改配置文件IP=`ifconfig eth0 | grep "inet " | awk '{ print $2}'` #ifconfig | grep inet | awk '{ print $2}' | head -n 1echo "port 26379" > /etc/sentinel.confecho "bind ${IP}" >> /etc/sentinel.confecho "dir... 阅读全文
posted @ 2017-05-26 17:55 wuzhenzhou 阅读(134) 评论(0) 推荐(0) 编辑
摘要: # redis 配置文件示例# 当你需要为某个配置项指定内存大小的时候,必须要带上单位,# 通常的格式就是 1k 5gb 4m 等:## 1k => 1000 bytes# 1kb => 1024 bytes# 1m => 1000000 bytes# 1mb => 1024*1024 bytes# 1g => 1000000000 bytes# 1gb => 1024*1024*1024... 阅读全文
posted @ 2017-05-26 17:54 wuzhenzhou 阅读(185) 评论(0) 推荐(0) 编辑
摘要: LINUXcurl --silent --location https://rpm.nodesource.com/setup_4.x | bash -yum install -y nodejsnpm install azure-cli -gexport AZURE_STORAGE_ACCOUNT=sbjfileexport AZURE_STORAGE_ACCESS_KEY=hcSt6ke0Y7... 阅读全文
posted @ 2017-05-26 17:48 wuzhenzhou 阅读(104) 评论(0) 推荐(0) 编辑
摘要: #区域 浏览azure vm location listChina EastChina North #云服务 浏览azure service list #云服务 创建azure service create "T-BJ-OPS" --location "China North" #存储账号 浏览azure storage account listazure storage account show... 阅读全文
posted @ 2017-05-26 17:45 wuzhenzhou 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 连接[Azure Resource Management]Add-AzureRmAccount -EnvironmentName AzureChinaCloud #Get-AzureRmEnvironment | select NameGet-AzureRmEnvironment | select Name或者$cred = Get-CredentialLogin-AzureRmAccou... 阅读全文
posted @ 2017-05-26 17:36 wuzhenzhou 阅读(158) 评论(0) 推荐(0) 编辑
摘要: # Windows Password Rest$extension = "VMAccessAgent"$publisher = "Microsoft.Compute"$ver = "2.*"$publicConf = '{"UserName":"DemoUser"}'$privateConf = '{"Password":"Passw0rd!"}'$vm = Get-AzureVM -Servic... 阅读全文
posted @ 2017-05-26 17:34 wuzhenzhou 阅读(153) 评论(0) 推荐(0) 编辑
摘要: $mySubscriptionName="运维环境"Select-AzureSubscription -SubscriptionName $mySubscriptionName$myServiceName="云服务名称"$myVMName="虚拟机名称"$myEndPoint="终结点名称"$myACL=New-AzureAclConfig$myRemoteSubnet="x.x.x.x/32... 阅读全文
posted @ 2017-05-26 17:33 wuzhenzhou 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Get-AzureSubscription | ForEach-Object { $mySubscriptionName = $_.SubscriptionName Select-AzureSubscription -SubscriptionName $mySubscriptionName Get-AzureVM | ForEach-Object { $myVM... 阅读全文
posted @ 2017-05-26 17:33 wuzhenzhou 阅读(128) 评论(0) 推荐(0) 编辑
摘要: $mySubscriptionName=""Select-AzureSubscription -SubscriptionName $mySubscriptionName$myServiceName=""$myInternalLoadBalancerName=""$mySubnetName="" $myStaticVNetIPAddress=""Add-AzureInternalLoadBala... 阅读全文
posted @ 2017-05-26 17:31 wuzhenzhou 阅读(157) 评论(0) 推荐(0) 编辑
摘要: $mySubscriptionName=""Select-AzureSubscription -SubscriptionName $mySubscriptionName $myServiceName = ""$myVMName = "" $myNewVMEndpoints = ("endpointname","tcp","8005","8005"),("endpointname","tcp","... 阅读全文
posted @ 2017-05-26 17:29 wuzhenzhou 阅读(132) 评论(0) 推荐(0) 编辑
摘要: $mySubscriptionName=""Select-AzureSubscription -SubscriptionName $mySubscriptionName$myServiceName=""$myVMName=""$myReservedIPName=""$myLocation="China North"$myIPAddress=""New-AzureReservedIP -Ser... 阅读全文
posted @ 2017-05-26 17:27 wuzhenzhou 阅读(107) 评论(0) 推荐(0) 编辑
摘要: $mySubscriptionName=""Select-AzureSubscription -SubscriptionName $mySubscriptionName$myStorageAccount=""$myServiceName=""$myVMName=""$myVM = Get-AzureVM -ServiceName $myServiceName -Name $myVMName$... 阅读全文
posted @ 2017-05-26 17:26 wuzhenzhou 阅读(110) 评论(0) 推荐(0) 编辑
摘要: $myStorageAccount=""$myLocation="China East"$myType="Premium_LRS"$mySubscriptionName=""$myServiceName=""$myVnetName=""$mySubnetName=""$myVMName=""$myAvailabilitySetName=""$myInstanceSize="Standard_DS4... 阅读全文
posted @ 2017-05-26 17:25 wuzhenzhou 阅读(108) 评论(0) 推荐(0) 编辑
摘要: $myStorageAccount=""$myLocation="China North"$myType="Standard_LRS"$mySubscriptionName=""$myServiceName=""$myVnetName=""$mySubnetName=""$myVMName=""$myAvailabilitySetName=""$myInstanceSize="Large"$myI 阅读全文
posted @ 2017-05-26 17:23 wuzhenzhou 阅读(79) 评论(0) 推荐(0) 编辑
摘要: $myStorageAccount=""# $myLocation="China North"# $myType="Standard_LRS"$mySubscriptionName=""$myServiceName=""$myVnetName=""$mySubnetName=""$myVMName=""$myAvailabilitySetName=""$myInstanceSize="Large" 阅读全文
posted @ 2017-05-26 17:22 wuzhenzhou 阅读(160) 评论(0) 推荐(0) 编辑
摘要: # ZOOKEEPER 国内安装文件下载地址# ZOOKEEPER_WEB_FILE=https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/zookeeper-3.4.10/zookeeper-3.4.10.tar.gz# 是否下载 ZOOKEEPER 安装文件# wget -P /tmp $ZOOKEEPER_WEB_FILE# ZOOKEE... 阅读全文
posted @ 2017-05-26 17:07 wuzhenzhou 阅读(183) 评论(0) 推荐(0) 编辑