标签:导致 return ssi pytho 当前系统时间 options ack pack offset
一.强制卸载OpenSSL:
rpm -e --nodeps openssl
二.卸载后重装OpenSSL提示:
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
libssl.so.10: cannot open shared object file: No such file or directory
Please install a package which provides this module, or
verify that the module is installed correctly.
It’s possible that the above module doesn’t match the
current version of Python, which is:
2.6.6 (r266:84292, Aug 18 2016, 15:13:37)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
三.解决方案
1.下载:https://www.openssl.org/source/old/1.0.1/openssl-1.0.1e.tar.gz 上传到服务器,
tar xvf openssl-1.0.1e.tar.gz cd openssl-1.0.1e ./config shared zlib-dynamic #生成Makefile文件 make #生成libssl.so.1.0.0 和 libcrypto.so.1.0.0 cp libssl.so.1.0.0 /usr/lib64 cp libcrypto.so.1.0.0 /usr/lib64 cd /usr/lib64 ln -s libssl.so.1.0.0 libssl.so.10 ln -s libcrypto.so.1.0.0 libcrypto.so.10
./configure --prefix=/usr/local/ntp --bindir=/usr/sbin --sysconfdir=/etc
make && make install
#!/bin/bash
# chkconfig: - 58 74
. /etc/init.d/functions
. /etc/sysconfig/network
prog=ntpd
lockfile=/var/lock/subsys/$prog
start() {
[ "$EUID" != "0" ] && exit 4
[ "$NETWORKING" = "no" ] && exit 1
[ -x /usr/sbin/ntpd ] || exit 5
[ -f /etc/sysconfig/ntpd ] || exit 6
. /etc/sysconfig/ntpd
# Start daemons.
echo -n $"Starting $prog: "
daemon $prog $OPTIONS
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch $lockfile
return $RETVAL
}
stop() {
[ "$EUID" != "0" ] && exit 4
echo -n $"Shutting down $prog: "
killproc $prog
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f $lockfile
return $RETVAL
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status $prog
;;
restart|force-reload)
stop
start
;;
try-restart|condrestart)
if status $prog > /dev/null; then
stop
start
fi
;;
reload)
exit 3
;;
*)
echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
exit 2
esac
客户机与服务器时间同步
[root@cdh2 ~]# ntpdate -u 192.168.20.134
查看时间是否同步
[root@cdh2 ~]# ntpq -p
remote refid st t when poll reach delay offset jitter==============================================================================
cdh1 LOCAL(0) 6 u 14 64 3 1.092 9.130 3.475
remote #列出源的 IP 地址或主机名,“+”表示优先,“*”表示次优先 refid #参考上一层ntp主机地址 st #stratum阶层 when #多少秒前曾经同步过时间 poll #指出轮询间隔时间。该值会根据本地时钟的精度相应增加。 reach #是一个八进制数字,指出源的可存取性。值 377 表示源已应答了前八个连续轮询。 delay #网络延迟 offset #是源时钟与本地时钟的时间差(毫秒) jitter #系统时间与bios时间差
查看时间,东部标准时间 (EST),这样会导致看到的时间不一致,需要修改时区。
# date 2019年 01月 04日 星期五 04:12:05 EST # dpkg-reconfigure tzdata #更改时区 # date #查看当前系统时间 2019年 01月 04日 星期五 17:59:20 CST hwclock #查看当前硬件时间 date -s "2018-01-01 11:20:30" #设置系统时间,字符串形式 hwclock --systohc #将系统时间同步到硬件
标签:导致 return ssi pytho 当前系统时间 options ack pack offset
原文地址:https://www.cnblogs.com/linuxws/p/12181028.html