标签:trap linu volume roo blog sign tty 显示 parse
我的网站为何显示空白页面?
ELB/ALB 有一个参数Idle timeout,默认为60秒,当执行一个请求时,如果后台执行超时就会显示空白页面。
然后增加DNS,如:
DNS1="10.184.13.14"
DNS2="10.184.13.4"
重启系统后,文件/etc/resolv.conf中会自动增加DNS配置(如只在此文件中配置DNS,重启后会丢失)
4.Install CFN script for Centos7
#!/bin/bash
# Setup CentOS 7 host as AMI
# Update base OS update, and install EPEL repo and Python Pip
sudo yum -y update
sudo yum –y install epel-release
sudo yum -y install python-pip
# Install Python add-ons:
sudo pip install pystache
sudo pip install argparse
sudo pip install python-daemon
sudo pip install requests
# Install CFN-BootStrap from source
curl -sSL https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz | sudo tar -xpf -C - /opt
cd /opt/aws-cfn-bootstrap-1.4/
sudo python setup.py build
sudo python setup.py install
# Configure CFN
sudo ln -s /usr/init/redhat/cfn-hup /etc/init.d/cfn-hup
sudo chmod 775 /usr/init/redhat/cfn-hup
cd /opt
sudo mkdir aws
cd aws
sudo mkdir bin
ln -s /usr/bin/cfn-hup /opt/aws/bin/cfn-hup
用easy_install更简单:
# easy_install --script-dir /opt/aws/bin https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz
安装新版本的easy_install
# curl -O https://bootstrap.pypa.io/ez_setup.py
# python ez_setup.py
Adding aws-cfn-bootstrap (CloudFormation helper scripts) to custom Linux AMIs
Making an Amazon EBS Volume Available for Use
What are the optimal settings for using Apache as a back-end server for ELB?
How do I assign a static hostname to a private Amazon EC2 instance running RHEL 7 or Centos 7?
Migrate Your Procedural SQL Code with the AWS Schema Conversion Tool
SQLines SQL Converter
标签:trap linu volume roo blog sign tty 显示 parse
原文地址:http://blog.51cto.com/7308310/2072306