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
<VirtualHost *:443> | |
DocumentRoot /var/www/html/hogehoge/cakephp/ | |
ServerName pre.kaigo-sodanshitsu.jp | |
Setenv HTTPS ON | |
</VirtualHost> | |
Alias /biz "/var/www/html/hogehoge-biz/cakephp/" | |
<Directory /hogehoge-biz> | |
Options FollowSymLinks Includes Multiviews SymLinksIfOwnerMatch | |
AllowOverride All |
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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteBase /biz | |
RewriteRule ^$ app/webroot/ [L] | |
RewriteRule (.*) app/webroot/$1 [L] | |
</IfModule> |
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
grant all on hoge_db.* to 'hoge_user'@'localhost' identified by 'hoge_pass'; |
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
#vi起動時に「E437: terminal capability "cm" required」というエラーが表示される時 | |
#.bashrcに以下を記述する | |
export TERM=vt100 |
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
# 別のブランチの内容をマージする | |
git merge <branch> |
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
# SCPコマンド リモートからディレクトリごとダウンロードする | |
scp -P 22 -i ~/.ssh/xxx.pem -r username@192.168.0.1:/var/www/html/xxx ~/tmp/ |
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
#カレントディレクトリ以下の30日以前のファイルを削除する | |
find . -name "*.txt" -type f -daystart -mtime +30 | xargs rm -f |
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
#!/bin/bash | |
# | |
# 実行ディレクトリ以下にtestディレクトリを作成しその下に日付ごとのファイルを作成する | |
# | |
mkdir ./test | |
COUNT=0 | |
#10日前までのファイルを作成する | |
while [ $COUNT -lt 10 ]; do |
抜粋元:http://l-w-i.net/t/ubuntu/service_001.txt
/etc/rc?.d/配下から/etc/init.d/<サービス>へのシンボリックリンクを作成する。
% sudo update-rc.d <サービス> defaults [<起動/停止順> | <起動順> <停止順>]
OlderNewer