1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

serposcope で mysql 使う

Last updated at Posted at 2017-02-07

こっちに新しいの書き直しました。
http://qiita.com/ma7ma7pipipi/items/23dbdf733ba35d5d32c1

serposcope 使い方

//ポート開ける
firewall-cmd --add-port=7134/tcp --zone=public --permanent

とりあえず、起動を確認したら

ps aux | grep serposcope

でプロセスを確認しkill。
一旦終了しないとDBを使うようにならんので、必ず終了しておく。

こっからいよいよMYSQLを使う設定。
ここまでで実行完了。
つづいて、 mysql で serposcope DB を作成しておく。

/root/serposcope/serposcope.conf のファイルに以下を記述

jdbc:mysql://localhost/serposcope?user=loginname&password=loginpass&allowMultiQueries=true

で以下のコマンドで読み込ませる。

nohup java -Dserposcope.conf=/root/serposcope/serposcope.conf -jar serposcope-2.6.0.jar

起動するたび、.confを読ませないと有効にならないので注意すること。

と、これでOK。
一応以下もやったんだけど。やらんくてもいいかも。
というか、やらなくてよかった。

wget http://ftp.iij.ad.jp/pub/db/mysql/Downloads/Connector-J/mysql-connector-java-5.1.40.tar.gz

tar zxvf mysql-connector-java-5.1.40.tar.gz
ls mysql-connector-java-5.1.40/mysql-connector-java-5.1.40-bin.jar
mysql-connector-java-5.1.40/mysql-connector-java-5.1.40-bin.jar

mv コマンドで mysql-connector-java-5.1.40/mysql-connector-java-5.1.40-bin.jar
を /usr/share/java/ に移動

1
2
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?