Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Linux マシンで Tomcat 7 サーバーを実行しています。
「date」コマンドを使用してバックエンド クロックを変更すると、取得した時刻が変更されるという問題が発生します。
new Date()
同期していません。
これは、Tomcat サーバーを再起動することで修正されました。この問題を解決する方法はありますか? googld を検索しましたが、実際には答えが見つかりませんでした。
ありがとう。
Centos を使用している場合は、/etc/sysconfig/clockファイルを探して、それに応じてタイムゾーンを変更します。