Skip to content

Instantly share code, notes, and snippets.

@ponsuke0531
ponsuke0531 / file0.txt
Last active June 3, 2019 15:17
MacでインストールされているJavaを確認する方法 ref: https://qiita.com/ponsuke0531/items/0506d41e355a585ccc97
$ java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
@ponsuke0531
ponsuke0531 / file0.txt
Last active May 29, 2020 12:03
Error in linking security policy for appName -- Inconsistent Module State. となってしまった時の対応方法 ref: https://qiita.com/ponsuke0531/items/ebe6b56d5e8be1d5241e
cannot Deploy appName
deploy is failing=Error occurred during deployment: Exception while loading the app : Error in linking security policy for appName -- Inconsistent Module State. Please see server.log for more details.
@ponsuke0531
ponsuke0531 / file0.txt
Last active April 22, 2020 08:27
localにあるGlassFishとPayaraのバージョンを確認する方法 ref: https://qiita.com/ponsuke0531/items/505e2ccd826511821c5b
asadmin> version
@ponsuke0531
ponsuke0531 / file0.txt
Last active May 14, 2019 02:30
MacでJavaのバージョンを切り替える方法 ref: https://qiita.com/ponsuke0531/items/795cd00d93b71c14d07b
$ java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
@ponsuke0531
ponsuke0531 / file0.txt
Last active October 14, 2020 01:17
Gitでやりたいことをやりたい時に参考にするサイト集 ref: https://qiita.com/ponsuke0531/items/f13e657a28a0d84a5e31
# ディレクトリ名を指定してクローン
$ git clone {url} {ディレクトリ名}
# ブランチを指定してクローン
$ git clone -b {ブランチ名} {url}
# フェッチ
$ git fetch origin
# フェッチ : 削除されたリモートブランチをoriginから削除
$ git fetch --prune
# フェッチ : 全ブランチを更新して削除されたブランチもoriginから削除
$ git fetch --all --prune
@ponsuke0531
ponsuke0531 / file0.txt
Created May 31, 2017 12:17
macOS SierraにHomebrewでipコマンドをインストールする ref: http://qiita.com/ponsuke0531/items/bb10e2a8614501f51723
$ brew upgrade
Updating Homebrew...
==> Auto-updated Homebrew!
<省略>
$ brew doctor
Your system is ready to brew.
@ponsuke0531
ponsuke0531 / file0.txt
Last active July 13, 2017 13:39
MacのVirtualBoxに作った仮想マシンへCentOSをインストールまでしたがインターネットに接続できない時の対応方法 ref: http://qiita.com/ponsuke0531/items/244ac0367c12c62d32c0
$ sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0s3
----ifcfg-eth0s3ファイルの中身-------
<省略>
ONBOOT=yes <---------- noをyesに変更する
---------------------------------
$ service network restart
@ponsuke0531
ponsuke0531 / file0.txt
Created June 1, 2017 14:28
CentOS7において「ip addr show」の結果をちょっと理解できるように調べた記録 ref: http://qiita.com/ponsuke0531/items/b61eeefdad9bb5e2ac28
* Two character prefixes based on the type of interface:
* en -- ethernet
* sl -- serial line IP (slip)
* wl -- wlan
* ww -- wwan
*
* Type of names:
* b<number> -- BCMA bus core number
* ccw<name> -- CCW bus group name
* o<index>[d<dev_port>] -- on-board device index number
$ cat /etc/issue
# CentOS, RedHat系
$ cat /etc/redhat-release
# AmazonLinux
$ cat /etc/system-release
# Ubuntuとかいろいろ
$ cat /etc/os-release
@ponsuke0531
ponsuke0531 / file0.txt
Last active June 10, 2019 00:54
CentOSでユーザを作成してパスワードを設定してユーザ一覧で確認する方法 ref: https://qiita.com/ponsuke0531/items/bd606fbadf5f64c4dca2
# ユーザを作成する
$ useradd {ユーザ名}
# パスワードを設定する(rootの場合はユーザ名が不要)
$ passws {ユーザ名}
# ユーザ一覧を表示する
$ cat /etc/passwd