This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# brew search で"-redis"関連のモジュール検索 | |
brew search -redis | |
php53-redis php54-redis php55-redis php56-redi | |
# php5.3系の為、以下php53-redisをインストール | |
# php5.n => php5n-redisをインストールしてください。 | |
brew install php53-redis | |
............................ | |
ログ出力 | |
............................ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sshd_config記述にミスがないかチェック | |
/usr/sbin/sshd -t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User-Agent: * | |
Disallow: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sitemap: http://hogehoge.com/sitemap.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dockerインストール | |
sudo yum install -y docker | |
# Docker デーモン起動 | |
sudo service docker start | |
# Dockerバージョン確認 | |
docker --version | |
Docker version 1.5.0, build a8a31ef/1.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Docker公式サイトのチュートリアルで使用するイメージ取得 | |
sudo docker pull learn/tutorial | |
# Dockerイメージ一覧表示 | |
sudo docker images | |
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE | |
learn/tutorial latest 8dbd9e392a96 24 months ago 128 MB | |
# Dockerでコマンド実行 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Vagrantがインストールされていることを前提 | |
# ~/CentOS7にVagrant box imageを作成しビルドします。 | |
cd ~ | |
mkdir CentOS7 | |
cd CentOS7 | |
# centos7 のboxイメージをcentos7という名称で取得 | |
vagrant box add centos7 https://f0fff3908f081cb6461b407be80daf97f07ac418.googledrive.com/host/0BwtuV7VyVTSkUG1PM3pCeDJ4dVE/centos7.box | |
# centos7 box初期化 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum -y install gcc gcc-c++ kernel-devel | |
sudo yum -y install python-devel libxslt-devel libffi-devel openssl-devel | |
pip install cryptography |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rootユーザに変更 | |
sudo su - | |
# virtualenvインストール | |
pip install -U virtualenv | |
virtualenv /www/sentry/ | |
source /www/sentry/bin/activate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rootユーザへ変更 | |
sudo su - | |
# nginxリポジトリ設定 | |
rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm | |
yum clean all | |
yum update | |
# nginxインストール |