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
cat /dev/urandom | LC_CTYPE=C tr -dc '[:alnum:]' | head -c 40 |
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
# パスワード付きzipファイル生成 | |
zip -e -r file.zip directory | |
Enter password: (Password) | |
Verify password: (Password) | |
adding: directory/ (stored 0%) | |
adding: directory/file (deflated 7%) | |
*** | |
# Option | |
# -e 暗号化して格納する。パスワードは対話的に2度入力する。 |
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
su - | |
Password: (rootのパスワード入力) | |
# memcached, memcached-develインストール | |
yum -y install memcached | |
yum -y install memcached-devel | |
# php-pecl-memacheインストール | |
yum -y install php-pecl-memcache |
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
# see "man logrotate" for details | |
# rotate log files weekly | |
weekly | |
# keep 4 weeks worth of backlogs | |
rotate 53 | |
# create new (empty) log files after rotating old ones | |
create |
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
/var/log/httpd/*log { | |
daily | |
missingok | |
notifempty | |
sharedscripts | |
postrotate | |
/sbin/service httpd reload > /dev/null 2>/dev/null || true | |
endscript | |
} |
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
# 対象ファイル : data/class/pages/admin/LC_Page_Admin_Index | |
# 以下箇所を修正 | |
function action() { | |
// パラメーター管理クラス | |
$objFormParam = new SC_FormParam_Ex(); | |
switch ($this->getMode()) { | |
case 'login': | |
//ログイン処理 |
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
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でコマンド実行 |