2
0

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.

NTPサーバ起動コマンド

Posted at

NTPサーバ起動コマンド

■現状確認
ss -antup | grep 123
ps ax | grep ntp
ps -ef | grep ntp

■grepしかない場合は起動していない
25705 pts/1 S+ 0:00 grep --color=auto ntp

■起動コマンド
systemctl start ntpd

■確認
[root@localhost ~]# ps ax | grep ntp
25799 ? Ss 0:00 /usr/sbin/ntpd -u ntp:ntp -g
25884 pts/1 S+ 0:00 grep --color=auto ntp
[root@localhost ~]# ss -antup | grep 123
udp UNCONN 0 0 192.168.122.1:123 : users:(("ntpd",pid=25799,fd=20))
udp UNCONN 0 0 192.168.100.2:123 : users:(("ntpd",pid=25799,fd=19))
udp UNCONN 0 0 127.0.0.1:123 : users:(("ntpd",pid=25799,fd=18))
udp UNCONN 0 0 :123 : users:(("ntpd",pid=25799,fd=16))
udp UNCONN 0 0 fe80::20c:29ff:febf:a94d%eno16777984:123 :::
users:(("ntpd",pid=25799,fd=22))
udp UNCONN 0 0 ::1:123 :::* users:(("ntpd",pid=25799,fd=21))
udp UNCONN 0 0 :::123 :::* users:(("ntpd",pid=25799,fd=17))

■サーバ起動後、サービス起動
systemctl enable ntpd

■サービスステータス確認
systemctl status ntpd

2
0
0

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
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?