重启服务器
Xshell 6 (Build 0095)
Copyright (c) 2002 NetSarang Computer, Inc. All rights reserved.
Type `help' to learn how to use Xshell prompt.
[D:~]$
Connecting to 10.168.10.110:22022...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
Last login: Thu Jun 1 09:45:07 2023 from 10.102.2.164
Please input account: admin
Please input passwd:
Check for double password coordination and request cooperation...
Double password collaboration completed, began to log on target system...
Warning: Permanently added '10.8.6.133' (ECDSA) to the list of known hosts.
admin@10.8.6.133's password:
Permission denied, please try again.
admin@10.8.6.133's password:
Register this system with Red Hat Insights: insights-client --register
Create an account or view all your systems at https://red.ht/insights-dashboard
Last failed login: Thu Jun 1 09:44:03 CST 2023 from 10.168.10.112 on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Wed May 31 19:32:26 2023 from 10.168.10.112
[admin@jieshu-app06 ~]$ ll
total 4
drwxrwxr-x. 3 admin admin 23 Mar 22 02:21 backup
drwxrwxr-x. 5 admin admin 4096 May 31 19:40 data
drwxrwxr-x. 3 admin admin 19 Nov 23 2022 logs
drwxrwxr-x. 4 admin admin 34 Nov 23 2022 nacos
[admin@jieshu-app06 ~]$ vi /etc/chrony.conf
[admin@jieshu-app06 ~]$ sudo /etc/chrony.conf
[sudo] password for admin:
sudo: /etc/chrony.conf: command not found
[admin@jieshu-app06 ~]$ ^C
[admin@jieshu-app06 ~]$ sudo vi /etc/chrony.conf
[admin@jieshu-app06 ~]$ systemctl restart chronyd
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ====
Authentication is required to restart 'chronyd.service'.
Authenticating as: root
Password:
polkit-agent-helper-1: pam_authenticate failed: Permission denied
==== AUTHENTICATION FAILED ====
Failed to restart chronyd.service: Access denied
See system logs and 'systemctl status chronyd.service' for details.
[admin@jieshu-app06 ~]$ chronyc -a makestep
501 Not authorised
[admin@jieshu-app06 ~]$ sudo chronyc -a makestep
200 OK
[admin@jieshu-app06 ~]$ ll
total 4
drwxrwxr-x. 3 admin admin 23 Mar 22 02:21 backup
drwxrwxr-x. 5 admin admin 4096 May 31 19:40 data
drwxrwxr-x. 3 admin admin 19 Nov 23 2022 logs
drwxrwxr-x. 4 admin admin 34 Nov 23 2022 nacos
[admin@jieshu-app06 ~]$ timedatectl status
Local time: Thu 2023-06-01 10:05:44 CST
Universal time: Thu 2023-06-01 02:05:44 UTC
RTC time: Thu 2023-06-01 02:07:10
Time zone: America/New_York (CST, +0800)
System clock synchronized: no
NTP service: active
RTC in local TZ: no
[admin@jieshu-app06 ~]$ chronyc tracking -v
Reference ID : 00000000 ()
Stratum : 0
Ref time (UTC) : Thu Jan 01 00:00:00 1970
System time : 0.000000000 seconds fast of NTP time
Last offset : +0.000000000 seconds
RMS offset : 0.000000000 seconds
Frequency : 0.000 ppm slow
Residual freq : +0.000 ppm
Skew : 0.000 ppm
Root delay : 1.000000000 seconds
Root dispersion : 1.000000000 seconds
Update interval : 0.0 seconds
Leap status : Not synchronised
[admin@jieshu-app06 ~]$ date
Thu Jun 1 10:11:04 CST 2023
[admin@jieshu-app06 ~]$ date
Thu Jun 1 10:12:02 CST 2023
[admin@jieshu-app06 ~]$ sudo vi/etc/ntp.conf
[sudo] password for admin:
sudo: vi/etc/ntp.conf: command not found
[admin@jieshu-app06 ~]$ sudo vi /etc/chrony.conf
[admin@jieshu-app06 ~]$ date
Thu Jun 1 10:23:53 CST 2023
[admin@jieshu-app06 ~]$ timedatectl
Local time: Thu 2023-06-01 10:25:52 CST
Universal time: Thu 2023-06-01 02:25:52 UTC
RTC time: Thu 2023-06-01 02:27:19
Time zone: America/New_York (CST, +0800)
System clock synchronized: no
NTP service: active
RTC in local TZ: no
[admin@jieshu-app06 ~]$ sudo vi /etc/chrony.conf
[sudo] password for admin:
[admin@jieshu-app06 ~]$ chronyc -a makestep
501 Not authorised
[admin@jieshu-app06 ~]$ sudo chronyc -a makestep
200 OK
[admin@jieshu-app06 ~]$ systemctl restart chronyd
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ====
Authentication is required to restart 'chronyd.service'.
Authenticating as: root
Password:
polkit-agent-helper-1: pam_authenticate failed: Permission denied
==== AUTHENTICATION FAILED ====
Failed to restart chronyd.service: Access denied
See system logs and 'systemctl status chronyd.service' for details.
[admin@jieshu-app06 ~]$ timedatectl status
Local time: Thu 2023-06-01 10:38:17 CST
Universal time: Thu 2023-06-01 02:38:17 UTC
RTC time: Thu 2023-06-01 02:39:44
Time zone: America/New_York (CST, +0800)
System clock synchronized: no
NTP service: active
RTC in local TZ: no
[admin@jieshu-app06 ~]$ chronyc -a makestep
501 Not authorised
[admin@jieshu-app06 ~]$ sudo chronyc -a makestep
200 OK
[admin@jieshu-app06 ~]$ sudo systemctl restart chronyd
[admin@jieshu-app06 ~]$ timedatectl status
Local time: Thu 2023-06-01 10:42:19 CST
Universal time: Thu 2023-06-01 02:42:19 UTC
RTC time: Thu 2023-06-01 02:42:19
Time zone: America/New_York (CST, +0800)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
[admin@jieshu-app06 ~]$
浙公网安备 33010602011771号