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

質問編集履歴

9

修正

2020/08/25 11:07

投稿

cosmosyuki
cosmosyuki

スコア4

title CHANGED
File without changes
body CHANGED
@@ -80,6 +80,7 @@
80
80
  色々検索し沢山のサイトを見てまわり、ファイルの記述を変更したりと試してみましたが、起動しません。
81
81
  【追記分】↓journalctl というコマンドがあるようなので試してみました。以下のログは一部抜粋です。2000行以上ありました。
82
82
  ```ここに言語名を入力
83
+ //1、2行目から時々でてくる、 authentication failures; に何かヒントがありますか?
83
84
  [root@ik1-426-45381 logs]# journalctl -xe
84
85
  Aug 25 19:47:22 ik1-426-45381.vs.sakura.ne.jp sshd[4585]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser=
85
86
  Aug 25 19:47:27 ik1-426-45381.vs.sakura.ne.jp sshd[4599]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ss

8

追記

2020/08/25 11:07

投稿

cosmosyuki
cosmosyuki

スコア4

title CHANGED
File without changes
body CHANGED
@@ -1,6 +1,6 @@
1
1
  ### さくらのVPSでデータベースを利用したwebアプリケーションの作成をしたいが、Tomcatの起動ができなくなった
2
2
 
3
- ###【「試してみたこと」に追記しました(2020:08:25)】
3
+ ###【「試したこと」に追記しました(2020:08:25)】
4
4
  tomcatのアプリケーションマネジャーを起動するところまで、一度はできたものの、その後データベースソフトを入れた後に再度起動しようとしたらできなくなっていました。色々試していますが、解決しません・・
5
5
  エラーメッセージから何か分かるものでしょうか。
6
6
  宜しくお願いいたします。
@@ -78,7 +78,7 @@
78
78
  ### 試したこと
79
79
 
80
80
  色々検索し沢山のサイトを見てまわり、ファイルの記述を変更したりと試してみましたが、起動しません。
81
- ↓journalctl というコマンドがあるようなので試してみました。以下のログは一部抜粋です。2000行以上ありました。
81
+ 【追記分】↓journalctl というコマンドがあるようなので試してみました。以下のログは一部抜粋です。2000行以上ありました。
82
82
  ```ここに言語名を入力
83
83
  [root@ik1-426-45381 logs]# journalctl -xe
84
84
  Aug 25 19:47:22 ik1-426-45381.vs.sakura.ne.jp sshd[4585]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser=

7

修正

2020/08/25 11:05

投稿

cosmosyuki
cosmosyuki

スコア4

title CHANGED
File without changes
body CHANGED
@@ -1,5 +1,6 @@
1
1
  ### さくらのVPSでデータベースを利用したwebアプリケーションの作成をしたいが、Tomcatの起動ができなくなった
2
2
 
3
+ ###【「試してみたこと」に追記しました(2020:08:25)】
3
4
  tomcatのアプリケーションマネジャーを起動するところまで、一度はできたものの、その後データベースソフトを入れた後に再度起動しようとしたらできなくなっていました。色々試していますが、解決しません・・
4
5
  エラーメッセージから何か分かるものでしょうか。
5
6
  宜しくお願いいたします。
@@ -77,7 +78,24 @@
77
78
  ### 試したこと
78
79
 
79
80
  色々検索し沢山のサイトを見てまわり、ファイルの記述を変更したりと試してみましたが、起動しません。
81
+ ↓journalctl というコマンドがあるようなので試してみました。以下のログは一部抜粋です。2000行以上ありました。
82
+ ```ここに言語名を入力
83
+ [root@ik1-426-45381 logs]# journalctl -xe
84
+ Aug 25 19:47:22 ik1-426-45381.vs.sakura.ne.jp sshd[4585]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser=
85
+ Aug 25 19:47:27 ik1-426-45381.vs.sakura.ne.jp sshd[4599]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ss
86
+ Aug 25 19:47:29 ik1-426-45381.vs.sakura.ne.jp sshd[4599]: Failed password for root from 222.186.31.83 port 60939 ssh2
87
+ Aug 25 19:47:32 ik1-426-45381.vs.sakura.ne.jp sshd[4599]: Failed password for root from 222.186.31.83 port 60939 ssh2
88
+ Aug 25 19:47:35 ik1-426-45381.vs.sakura.ne.jp sshd[4599]: Failed password for root from 222.186.31.83 port 60939 ssh2
89
+ Aug 25 19:47:35 ik1-426-45381.vs.sakura.ne.jp sshd[4599]: Received disconnect from 222.186.31.83 port 60939:11: [preauth]
90
+ Aug 25 19:47:35 ik1-426-45381.vs.sakura.ne.jp sshd[4599]: Disconnected from 222.186.31.83 port 60939 [preauth]
91
+ Aug 25 19:47:35 ik1-426-45381.vs.sakura.ne.jp sshd[4599]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser=
92
+ Aug 25 19:47:36 ik1-426-45381.vs.sakura.ne.jp sshd[4611]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ss
93
+ Aug 25 19:47:38 ik1-426-45381.vs.sakura.ne.jp sshd[4611]: Failed password for root from 222.186.31.83 port 22182 ssh2
94
+ Aug 25 19:47:41 ik1-426-45381.vs.sakura.ne.jp sshd[4611]: Failed password for root from 222.186.31.83 port 22182 ssh2
95
+ Aug 25 19:47:44 ik1-426-45381.vs.sakura.ne.jp sshd[4611]: Failed password for root from 222.186.31.83 port 22182 ssh2
80
96
 
97
+ ```
98
+
81
99
  ### 補足情報(FW/ツールのバージョンなど)
82
100
  【JDKバージョン】
83
101
  Java(TM) SE Runtime Environment (build 14.0.2+12-46)

6

追記

2020/08/25 11:04

投稿

cosmosyuki
cosmosyuki

スコア4

title CHANGED
File without changes
body CHANGED
@@ -85,4 +85,6 @@
85
85
  【tomcat】
86
86
  バージョン 9.0.0.37
87
87
  【OS】
88
- CentOs7
88
+ CentOs7
89
+ 【ローカル端末】
90
+ windows10

5

修正

2020/08/25 06:40

投稿

cosmosyuki
cosmosyuki

スコア4

title CHANGED
File without changes
body CHANGED
@@ -7,6 +7,7 @@
7
7
  ### 発生している問題・エラーメッセージ
8
8
  ```ここに言語名を入力
9
9
  //systemct. start tomcat.serviceを行うと以下のエラーがでます
10
+ [root@ik1-426-45381 etc]# systemctl start tomcat.service
10
11
  Job for tomcat.service failed because the control process exited with error code. See "systemctl status tomcat.service" and "journalctl -xe" for details.
11
12
  ```
12
13
 
@@ -26,8 +27,6 @@
26
27
  ```
27
28
  ```ここに言語名を入力
28
29
  //journalctlを確認してみたら以下のようになりました
29
- [root@ik1-426-45381 etc]# systemctl start tomcat.service
30
- Job for tomcat.service failed because the control process exited with error code. See "systemctl status tomcat.service" and "journalctl -xe" for details.
31
30
  [root@ik1-426-45381 etc]# systemctl status systemd-journald.service
32
31
  * systemd-journald.service - Journal Service
33
32
  Loaded: loaded (/usr/lib/systemd/system/systemd-journald.service; static; vendor preset: disabled)

4

追記

2020/08/25 06:36

投稿

cosmosyuki
cosmosyuki

スコア4

title CHANGED
File without changes
body CHANGED
@@ -24,7 +24,26 @@
24
24
  Aug 25 14:05:51 ik1-426-45381.vs.sakura.ne.jp systemd[1]: Unit tomcat.service entered failed state.
25
25
  Aug 25 14:05:51 ik1-426-45381.vs.sakura.ne.jp systemd[1]: tomcat.service failed.
26
26
  ```
27
+ ```ここに言語名を入力
28
+ //journalctlを確認してみたら以下のようになりました
29
+ [root@ik1-426-45381 etc]# systemctl start tomcat.service
30
+ Job for tomcat.service failed because the control process exited with error code. See "systemctl status tomcat.service" and "journalctl -xe" for details.
31
+ [root@ik1-426-45381 etc]# systemctl status systemd-journald.service
32
+ * systemd-journald.service - Journal Service
33
+ Loaded: loaded (/usr/lib/systemd/system/systemd-journald.service; static; vendor preset: disabled)
34
+ Active: active (running) since Tue 2020-08-25 14:00:03 JST; 1h 33min ago
35
+ Docs: man:systemd-journald.service(8)
36
+ man:journald.conf(5)
37
+ Main PID: 354 (systemd-journal)
38
+ Status: "Processing requests..."
39
+ CGroup: /system.slice/systemd-journald.service
40
+ `-354 /usr/lib/systemd/systemd-journald
27
41
 
42
+ Aug 25 14:00:03 localhost.localdomain systemd-journal[354]: Runtime journal is using 6.1M (max allowed 49.5M, trying to leave 74.3M free of 489.…t 49.5M).
43
+ Aug 25 14:00:03 localhost.localdomain systemd-journal[354]: Journal started
44
+ Hint: Some lines were ellipsized, use -l to show in full.
45
+ ```
46
+
28
47
  ### /etc/systemd/system/tomcat.service
29
48
 
30
49
  ```ここに言語名を入力

3

追記

2020/08/25 06:35

投稿

cosmosyuki
cosmosyuki

スコア4

title CHANGED
File without changes
body CHANGED
@@ -5,6 +5,10 @@
5
5
  宜しくお願いいたします。
6
6
 
7
7
  ### 発生している問題・エラーメッセージ
8
+ ```ここに言語名を入力
9
+ //systemct. start tomcat.serviceを行うと以下のエラーがでます
10
+ Job for tomcat.service failed because the control process exited with error code. See "systemctl status tomcat.service" and "journalctl -xe" for details.
11
+ ```
8
12
 
9
13
  ```
10
14
  [root@ik1-426-45381 ~]# systemctl status tomcat.service

2

追記

2020/08/25 06:32

投稿

cosmosyuki
cosmosyuki

スコア4

title CHANGED
File without changes
body CHANGED
@@ -59,4 +59,8 @@
59
59
  ### 補足情報(FW/ツールのバージョンなど)
60
60
  【JDKバージョン】
61
61
  Java(TM) SE Runtime Environment (build 14.0.2+12-46)
62
- Java HotSpot(TM) 64-Bit Server VM (build 14.0.2+12-46, mixed mode, sharing)
62
+ Java HotSpot(TM) 64-Bit Server VM (build 14.0.2+12-46, mixed mode, sharing)
63
+ 【tomcat】
64
+ バージョン 9.0.0.37
65
+ 【OS】
66
+ CentOs7

1

文字の修正

2020/08/25 06:26

投稿

cosmosyuki
cosmosyuki

スコア4

title CHANGED
File without changes
body CHANGED
@@ -41,9 +41,6 @@
41
41
 
42
42
  [Install]
43
43
  WantedBy=multi-user.target
44
- export JAVA_HOME=/usr/java/
45
- export PATH=$JAVA_HOME/bin:$PATH
46
- export CATALINA_HOME=/usr/local/tomcat
47
44
  ```
48
45
 
49
46
  ### /usr/local/tomcat/bin/setenv.sh