質問するログイン新規登録

質問編集履歴

3

見栄え

2015/10/28 07:41

投稿

ucan-lab
ucan-lab

スコア888

title CHANGED
File without changes
body CHANGED
@@ -54,25 +54,20 @@
54
54
  詳細モードで起動試してみました。
55
55
 
56
56
  * ajentiの停止
57
- ```
58
57
  # servive stop ajenti
59
58
  -bash: servive: command not found
60
- ```
61
59
 
60
+ コマンドがないらしい。
62
61
 
63
- ```
62
+ * 代わりにこちらで停止。
64
63
  # systemctl stop ajenti
65
- ```
66
- 代わりにこちらで停止。
67
64
 
65
+
68
66
  * listenポートの確認(8000のlistenがなくなっているはず)
69
- ```
70
67
  # netstat -tlnp | grep 8000
71
- ```
72
68
  なくなりました。
73
69
 
74
70
  * ajentiを詳細モードで起動
75
- ```
76
71
  # ajenti-panel -v
77
72
  28.10.2015 16:18 ajenti-panel:105 INFO Using config file /etc/ajenti/config.json
78
73
  28.10.2015 16:18 ajenti-panel:130 INFO Ajenti starting in foreground
@@ -92,11 +87,10 @@
92
87
  28.10.2015 16:18 feedback.py:30 DEBUG Feedback >> ping ({'edition': 'vanilla', 'version': '1.2.22.13', 'os': 'centos', 'id': 172438})
93
88
  28.10.2015 16:18 feedback.py:35 DEBUG Feedback << {"status": "ok"}
94
89
  ...
95
- ```
96
90
 
97
91
  長かったので最初と最後だけ抜き出しました。
98
92
  こちらに全部載せました。
99
- http://climbi.com/b/5388/0
93
+ [http://climbi.com/b/5388/0](http://climbi.com/b/5388/0)
100
94
 
101
95
  status okなのでokなんでしょうか。。
102
96
  ブラウザからアクセスしてみましたが状況は変わりませんでした。

2

追記

2015/10/28 07:41

投稿

ucan-lab
ucan-lab

スコア888

title CHANGED
File without changes
body CHANGED
@@ -47,4 +47,56 @@
47
47
  何かわかる方がいましたらご教授ください。
48
48
 
49
49
  Ajentiのインストールで必要な物はすべてインストールしてくれるイメージでしたが、
50
- 足りないものとかないでしょうか?
50
+ 足りないものとかないでしょうか?
51
+
52
+
53
+ == 追記 ==
54
+ 詳細モードで起動試してみました。
55
+
56
+ * ajentiの停止
57
+ ```
58
+ # servive stop ajenti
59
+ -bash: servive: command not found
60
+ ```
61
+
62
+
63
+ ```
64
+ # systemctl stop ajenti
65
+ ```
66
+ 代わりにこちらで停止。
67
+
68
+ * listenポートの確認(8000のlistenがなくなっているはず)
69
+ ```
70
+ # netstat -tlnp | grep 8000
71
+ ```
72
+ なくなりました。
73
+
74
+ * ajentiを詳細モードで起動
75
+ ```
76
+ # ajenti-panel -v
77
+ 28.10.2015 16:18 ajenti-panel:105 INFO Using config file /etc/ajenti/config.json
78
+ 28.10.2015 16:18 ajenti-panel:130 INFO Ajenti starting in foreground
79
+ 28.10.2015 16:18 registry.py:282 DEBUG registered 'sha512_crypt' handler: <class 'passlib.handlers.sha2_crypt.sha512_crypt'>
80
+ 28.10.2015 16:18 compat.py:20 DEBUG Popen: git describe --tags 2> /dev/null
81
+ 28.10.2015 16:18 compat.py:20 DEBUG Popen: ['lsb_release', '-sd']
82
+ 28.10.2015 16:18 compat.py:20 DEBUG Popen: ['uname', '-mrs']
83
+ 28.10.2015 16:18 core.py:60 INFO Ajenti 1.2.22.13 running on platform: centos
84
+ ...
85
+ 28.10.2015 16:18 core.py:99 INFO Starting server on (u'0.0.0.0', 8000)
86
+ 28.10.2015 16:18 __init__.py:207 DEBUG Root context instantiated [SessionMiddleware] <ajenti.middleware.SessionMiddleware object at 0x388de10>
87
+ 28.10.2015 16:18 __init__.py:207 DEBUG Root context instantiated [AuthenticationMiddleware] <ajenti.middleware.AuthenticationMiddleware object at 0x38834d0>
88
+ 28.10.2015 16:18 __init__.py:207 DEBUG Root context instantiated [CentralDispatcher] <ajenti.routing.CentralDispatcher object at 0x3883610>
89
+ 28.10.2015 16:18 core.py:134 INFO SSL enabled: /etc/ajenti/ajenti.pem
90
+ 28.10.2015 16:18 __init__.py:207 DEBUG Root context instantiated [IPCServer] <ajenti.ipc.IPCServer object at 0x3883210>
91
+ 28.10.2015 16:18 __init__.py:207 DEBUG Root context instantiated [Licensing] <ajenti.licensing.Licensing object at 0x3883050>
92
+ 28.10.2015 16:18 feedback.py:30 DEBUG Feedback >> ping ({'edition': 'vanilla', 'version': '1.2.22.13', 'os': 'centos', 'id': 172438})
93
+ 28.10.2015 16:18 feedback.py:35 DEBUG Feedback << {"status": "ok"}
94
+ ...
95
+ ```
96
+
97
+ 長かったので最初と最後だけ抜き出しました。
98
+ こちらに全部載せました。
99
+ http://climbi.com/b/5388/0
100
+
101
+ status okなのでokなんでしょうか。。
102
+ ブラウザからアクセスしてみましたが状況は変わりませんでした。

1

タグ付け

2015/10/28 07:39

投稿

ucan-lab
ucan-lab

スコア888

title CHANGED
File without changes
body CHANGED
@@ -1,33 +1,45 @@
1
1
  AjentiをCentOS7にインストールしたいのですがうまく設定できず...困ってます。
2
2
 
3
- http://ajenti.org/
3
+ [http://ajenti.org/](http://ajenti.org/)
4
4
 
5
5
  使用したコマンドなど。
6
6
 
7
7
  ○ Ajentiのインストール
8
+ ```
8
9
  # curl https://raw.githubusercontent.com/ajenti/ajenti/1.x/scripts/install-rhel7.sh | sh
10
+ ```
9
11
 
10
12
  ○ Ajenti再起動で起動の確認
13
+ ```
11
14
  # service ajenti restart
12
15
  Restarting ajenti (via systemctl): [ OK ]
16
+ ```
13
17
 
14
18
  ○ ポート開放できているのを確認
19
+ ```
15
20
  # sudo netstat -tlnp | grep 8000
16
21
  tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN
22
+ ```
17
23
 
18
24
  ○ バインドエラー
25
+ ```
19
26
  # ajenti-panel -v
20
27
  28.10.2015 13:25 core.py:99 INFO Starting server on (u'0.0.0.0', 8000)
21
28
  28.10.2015 13:25 core.py:121 ERROR Could not bind to (u'0.0.0.0', 8000)
29
+ ```
22
30
 
23
31
  ○ 他のプロセスが8000ポートを使ってるわけではないみたい。
32
+ ```
24
33
  # netstat -lnp | grep :8000
34
+ ```
25
35
 
26
36
  ○ /etc/ajenti/config.json ホスト名を0.0.0.0から自分のIPに変更してみた。
37
+ ```json
27
38
  "bind": {
28
39
  "host": "xxx.xxx.xxx.xxx",
29
40
  "port": 8000
30
41
  },
42
+ ```
31
43
 
32
44
  ○ Ajentiの再起動、OSごと再起動してみたが変わらず。。
33
45