すいません、VB4しかやってないんです、VBAはやったけど(ぼそ) チラシの裏だって立派な書き込み空間なんだからねっ!資源の有効活用なんだからねっ!とか偉そうに言ってるけど、実は色々と書き残したいだけ

だからなに? どうしろと? くるみサイズの脳みそしかないあやしいジャンガリアンベムスターがさすらう贖罪蹂躙(ゴシックペナルティ)

ホーム 連絡をする 同期する ( RSS 2.0 ) Login
投稿数  632  : 記事  35  : コメント  11674  : トラックバック  143

ニュース


片桐 継 は
こんなやつ

かたぎり つぐ ってよむの

大阪生まれ河内育ちなんだけど
関東に住みついちゃったの
和装着付師だったりするの
エセモノカキやってたりするの
VBが得意だったりするの
SQL文が大好きだったりするの
囲碁修行中だったりするの
ボトゲ好きだったりするの
F#かわいいよF#

正体は会った人だけ知ってるの

空気読まなくてごめんなさいなの


わんくまリンク

C#, VB.NET 掲示板
C# VB.NET掲示板

わんくま同盟
わんくま同盟Blog


WindowsでGo言語
WindowsでGo言語


ネット活動


SNSは疲れました

記事カテゴリ

書庫

日記カテゴリ

ギャラリ

イベント活動

プログラムの活動

作業の前にメモ。UbuntuとCentOSで違う所があるってことを覚えたの。

やりたいこと CentOS Ubuntu
サービスの起動設定 chkconfig サービス名 {on|off} sysv-rc-conf サービス名 {on|off}
アプリケーションパッケージの導入 yum install アプリケーション名 aptitude install アプリケーション名
apt-get install アプリケーション名

とりあえず、この二つw

またメモは増えるかも。

とりあえず、OpenSSH server + Tomcat Java server で作成したので、これらのパッケージは入った状態。

確認してみると、JavaはOpenJDK 1.7 だったので、これは Java SE 8 SDKに変更

apt-get update
apt-get install oracle-java8-installer

image

コマンドラインなのに、生意気wwwwwww

ということで、これもさくっと作業完了。

Trac導入

TracInstall ? The Trac Project
http://trac.edgewall.org/wiki/TracInstall

素直に書かれている通りにコマンドを実行。

aptitude/apt-get コマンドを使うと、困ることなくモジュールをとってこれる。

今回は、あくまでも、スタンドアロンで動かさればよいので、Apacheの連携はしない

Tracのインストールが終わったら、初期設定開始。

$ sudo mkdir -p /var/trac/projects
$ cd /var/trac/projects
$ sudo trac-admin . initenv
$ sudo htpasswd -c .htpasswd esten
$ trac-admin . permission add esten TRAC_ADMIN

Ubuntuサーバーの代理管理アカウントとしてestenを作ってあるの。とりあえず、このアカウントとrootで作業できれば事欠かないのでこのアカウントをそのままTrac管理アカウントにしてしまって、/var/trac/projectsを基本パスとして情報を登録。

ここで、動作を確認。

# tracd -p 8800 --basic-auth=projects,/var/trac/projects/.htpasswd,/var/trac/projects /var/trac/projects

image

きたーv ログインしてみる。

image

ダイアログが出てきた。IPアドレスとポート番号もあってるし、ディレクトリもあってる!OKOK!

image

ログイン成功! これでTracの基本設定が終わり。

image

画面が英語なんだけど、バージョンが最新の1.0.1なので、日本語化リソースパッケージがまだ無いのorz

image

日本語化リソースパッケージを入れようとすると、こうなりますw

日本語でないと、って人は、バージョン0.11.7-1を入れてリソース追加するか、日本語化済パッケージでインストールすると良いと思うの。

さて、スタンドアロンが動くようになったところで、これをサービス化。

実は、Ubuntuさんもデーモンスクリプト用テンプレートが /etc/init.d/skelton にあったりする。

中を見てみると、実行したいアプリケーションプログラムを start-stop-deamon コマンドを使って動かしてる。

Manpage for start-stop-daemon - man.cx manual pages
http://man.cx/start-stop-daemon%288%29/ja

開始停止はこれを使っておくと、うまくいけそう、ってことでここから「/etc/init.d/tracd」を作成してちょこっと編集。

DESC="Trac service control"
NAME=tracd
DAEMON=/usr/local/bin/$NAME
DAEMON_ARGS="-p 8800 --basic- auth=projects,/var/trac/projects/.htpasswd,/var/trac/projects /var/trac/projects"
PIDFILE=/var/run/$NAME.pid

do_start()
{
        # Return
        #   0 if daemon has been started
        #   1 if daemon was already running
        #   2 if daemon could not be started
        start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
                || return 1
        start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --background \
                --exec $DAEMON -- $DAEMON_ARGS \
                || return 2
}

頭の変数と、開始ファンクションを変更。開始ファンクションの起動オプションには「--make-pidfile --background」を追加。これを追加しておかないと、startした後で画面上でポート待ち受けが始まっちゃうので、デーモン起動してる意味が無くなる。

# service tracd start

# service tracd stop

で開始停止が確認できたら、

# update-rc.d tracd defaults
とすると、サービスに登録。
# sysv-rc-conf ?list | grep tracd
で、CentOSでいう、「chkconfig tracd」と同じ結果リストが出てくるので、できてるのか確認。
わーい、スタンドアロン俺俺Tracがこれで使えるようになったよー。
今日はここまで。本日の作業BGM、やくしまるえつこ「ヤミヤミ」
ほぅら、部屋の隅っこに、ほぅら、押入れの隙間にも、ぼんやりダークな奴がいる♪
投稿日時 : 2014年6月19日 13:13

コメント

# ivermectin lotion cost 2021/09/28 15:38 MarvinLic
ivermectin price canada http://stromectolfive.com/# ivermectin 5 mg price

# ivermectin 9 mg 2021/11/03 13:56 DelbertBup
ivermectin 10 ml https://stromectolivermectin19.com/# ivermectin
generic ivermectin cream

# can you buy prednisone https://prednisonesnw.com/#
prednisone tablets canada 2021/11/13 9:39 Prednisone
can you buy prednisone https://prednisonesnw.com/#
prednisone tablets canada

# sildenafil 20 mg tablet uses 2021/12/09 13:36 JamesDat
http://viasild24.com/# sildenafil 20 mg tablet

# how to take sildenafil 20 mg 2021/12/11 3:26 JamesDat
https://iverstrom24.com/# stromectol ivermectin dosage

# bimatoprost buy online usa 2021/12/12 1:45 Travislyday
http://plaquenils.online/ hydroxychloroquine nz

# bimatoprost ophthalmic solution careprost 2021/12/12 21:08 Travislyday
http://baricitinibrx.com/ baricitinib

# buy bimatoprost 2021/12/15 6:15 Travislyday
http://bimatoprostrx.com/ buy bimatoprost

# careprost for sale 2021/12/16 1:24 Travislyday
http://plaquenils.com/ plaquenil oct

# stromectol how much it cost 2021/12/17 18:02 Eliastib
suampy https://stromectolr.com stromectol coronavirus

# ivermectin 8000 2021/12/18 19:33 Eliastib
jugwkg https://stromectolr.com ivermectin 3 mg

# stromectol 3mg tablets 2022/01/18 4:58 CarolMonee
https://stromectol1st.com/# how much does ivermectin cost
stromectol 3mg

# stromectol pills 2022/02/20 13:10 EmanuelMeaks
https://stromectolis.com/# ivermectin usa

# stromectol 3mg cost 2022/02/21 1:56 EmanuelMeaks
https://stromectolis.com/# ivermectin new zealand

# EFQVPyklUmuclxJG 2022/04/19 12:57 johnansaz
http://imrdsoacha.gov.co/silvitra-120mg-qrms

# buy cheap doxycycline https://antibiotic.best/ 2022/10/08 8:54 Antibiotic
buy cheap doxycycline https://antibiotic.best/

# Best and news about drug. Everything what you want to know about pills.
https://edonlinefast.com
drug information and news for professionals and consumers. Generic Name. 2023/02/17 12:20 EdOnline
Best and news about drug. Everything what you want to know about pills.
https://edonlinefast.com
drug information and news for professionals and consumers. Generic Name.

# Get information now. Get information now.
https://edonlinefast.com
Get warning information here. Comprehensive side effect and adverse reaction information. 2023/02/18 16:58 EdOnline
Get information now. Get information now.
https://edonlinefast.com
Get warning information here. Comprehensive side effect and adverse reaction information.

# earch our drug database. Read information now.
https://canadianfast.com/
Cautions. Read information now. 2023/02/19 12:53 CanadaBest
earch our drug database. Read information now.
https://canadianfast.com/
Cautions. Read information now.

# What side effects can this medication cause? Read now.
https://canadianfast.com/
drug information and news for professionals and consumers. Medicament prescribing information. 2023/02/20 0:24 CanadaBest
What side effects can this medication cause? Read now.
https://canadianfast.com/
drug information and news for professionals and consumers. Medicament prescribing information.

# Misoprostol 200 mg buy online - https://cytotecsale.pro/# 2023/04/29 6:32 Cytotec
Misoprostol 200 mg buy online - https://cytotecsale.pro/#

# buy prednisone online fast shipping https://prednisonepharm.store/ prednisone 60 mg tablet 2024/01/20 18:05 Prednisone
buy prednisone online fast shipping https://prednisonepharm.store/ prednisone 60 mg tablet

# sweetie fox full video https://sweetiefox.pro/ - fox sweetie
2024/03/06 22:39 SwitieFox
sweetie fox full video https://sweetiefox.pro/ - fox sweetie


# gates of olympus taktik - https://gatesofolympus.auction/ gates of olympus 2024/03/27 21:12 Olympic
gates of olympus taktik - https://gatesofolympus.auction/ gates of olympus

# Abortion pills online https://cytotec.club/ buy cytotec online 2024/04/28 2:52 Cytotec
Abortion pills online https://cytotec.club/ buy cytotec online

Post Feedback

タイトル
名前
Url:
コメント