摘要: #================================以下是全局配置项#运行nginx的所属组和所有者user nginx nginx;#开启4个nginx 工作进程worker_processes 4;worker_rlimit_nofile 65535;events { #连接规则 use epoll; #每个进程可建立的连接数 worker_conn... 阅读全文
posted @ 2016-08-24 19:19 wuzhenzhou 阅读(171) 评论(0) 推荐(0)
摘要: VERSION=1.13.0wget -P /tmp http://nginx.org/download/nginx-$VERSION.tar.gz# 安装必要的组件yum install -y gcc pcre* openssl-devel# 创建组和用户groupadd nginxuseradd -g nginx nginx -s /sbin/nologin# 文件存放目录mkdir... 阅读全文
posted @ 2016-08-24 19:18 wuzhenzhou 阅读(156) 评论(0) 推荐(0)
摘要: $mySubscriptionName="订阅名称"Set-AzureSubscription -SubscriptionName $mySubscriptionName -CurrentStorageAccountName $myStorageAccountSelect-AzureSubscription -SubscriptionName $mySubscriptionName$mySt... 阅读全文
posted @ 2016-08-23 17:28 wuzhenzhou 阅读(155) 评论(0) 推荐(0)
摘要: #!/bin/bash# 时间服务器yum install -y ntpsystemctl enable ntpdsystemctl start ntpd# 免密登录ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsacat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keyschmod 0600 ~/.ssh/authorized... 阅读全文
posted @ 2016-08-19 19:28 wuzhenzhou 阅读(308) 评论(0) 推荐(0)
摘要: #!/bin/bash# JAVA JDK 安装文件JDK_INSTALL_FILE=/tmp/jdk-8u131-linux-x64.rpm# JAVA JDK 目录JDK_INSTALL_DIR=/usr/java/jdk1.8.0_131# 安装JAVA JDKif [ -f $JDK_INSTALL_FILE ]; then rpm -ivh /tmp/jdk-8u131-linux-x6... 阅读全文
posted @ 2016-08-19 19:27 wuzhenzhou 阅读(159) 评论(0) 推荐(0)
摘要: . 检查是否可以无秘钥登录ssh localhost. 生成公钥,密钥ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa. 添加到信任cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys. 更改权限chmod 0600 ~/.ssh/authorized_keys. 复制公钥到远程计算机ssh-copy-id -i ~/.ss... 阅读全文
posted @ 2016-08-19 14:14 wuzhenzhou 阅读(228) 评论(0) 推荐(0)
摘要: Switch-AzureMode -name AzureResourceManagerAdd-AzureAccount -Environment AzureChinaCloudSelect-AzureSubscription -name “环境名称"New-AzureResourceGroup -Name $Name -Location "China North"New-AzureRedisCac... 阅读全文
posted @ 2016-08-17 17:36 wuzhenzhou 阅读(244) 评论(0) 推荐(0)