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
# set -x | |
# set +o xtrace | |
alias ls='ls --color=auto' | |
alias ll='ls -alF' | |
alias la='ls -A' | |
alias lt='ls -ltr' | |
alias l='ls -CF' | |
alias grep='grep --color=auto' | |
alias fgrep='fgrep --color=auto' |
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 oracle-xe-11.2.0-1.0.x86_64.rpm.zip root@192.168.1.10:~ | |
# 必要なライブラリを取得 | |
sudo yum -y install glibc make gcc binutils libaio libaio-devel bc unzip | |
# スワップ領域の拡張 | |
dd if=/dev/zero of=/swapfileadd bs=1024K count=2048 | |
chmod 600 /swapfileadd | |
mkswap /swapfileadd |
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
# CentOS 7 には mariaDB という MySQL 互換のデータベースサーバーがデフォルトでインストールされている場合がありますので、 | |
# これからインストールする MySQL と競合を起こさないように削除しておきましょう。 つぎのコマンドのように mariaDB 本体とデータフォルダを削除しておきます。 | |
yum remove mariadb-libs | |
rm -rf /var/lib/mysql/ | |
# MySQL 公式 yum リポジトリの追加 | |
yum localinstall http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm | |
# インスコ | |
yum -y install mysql-community-server |
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 docker-io | |
sudo service docker start | |
sudo chkconfig docker on | |
# sudo docker run --detach --hostname gitlab.example.com --publish 443:443 --publish 80:80 --name gitlab --restart always --volume /srv/gitlab/config:/etc/gitlab --volume /srv/gitlab/logs:/var/log/gitlab --volume /srv/gitlab/data:/var/opt/gitlab gitlab/gitlab-ce:latest | |
sudo docker run --detach --hostname gitlab.example.com --publish 443:443 --publish 80:80 --publish 23:22 --name gitlab --restart always --volume /srv/gitlab/config:/etc/gitlab --volume /srv/gitlab/logs:/var/log/gitlab --volume /srv/gitlab/data:/var/opt/gitlab gitlab/gitlab-ce:latest | |
docker exec -it gitlab vim /etc/gitlab/gitlab.rb |
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
# 確認 | |
VBoxManage showhdinfo disk1.vdi | |
# 容量変更 | |
※12GB × 1024MB = 12288 | |
※50GB × 1024MB = 51200 | |
VBoxManage modifyhd clone-disk1.vdi --resize 20480 | |
# vmdk→vdiへ変更 | |
VBoxManage clonehd "box-disk1.vmdk" "clone-disk1.vdi" --format vdi |
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
SET TIMING ON | |
SET SERVEROUTPUT ON | |
DECLARE | |
-- ============================Oracle - @192.168.1.10====================== | |
-- 指定範囲内でランダムな数値を取得する。 | |
-- P_FROM 範囲数値(FROM) | |
-- P_TO 範囲数値(TO) | |
-- ================================================== | |
FUNCTION RANDOM_NUMBER(P_FROM IN NUMBER, P_TO IN NUMBER) RETURN NUMBER |
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
■APPサーバ等に使用する場合 | |
-XX:+UnlockCommercialFeatures | |
-XX:+FlightRecorder | |
-Dcom.sun.management.jmxremote=true | |
-Dcom.sun.management.jmxremote.port=7091 | |
-Dcom.sun.management.jmxremote.authenticate=false | |
-Dcom.sun.management.jmxremote.ssl=false | |
■バッチ等に使用する場合 | |
-XX:+UnlockCommercialFeatures |
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
crawler \ | |
-u クロール対象のURL \ | |
-s "どんなリンクを辿るか@リンクをたどった際に行う処理" \ | |
-i インターバル |