linux 服务器时间校准
Linux 时间矫正
sudo
ntpdate -u ntp.api.bz
第一使用可能提示ntpdate没安装,用以下命令安装即可
ubuntu系统
sudo
apt
install
ntpdate
centos系统
sudo yum install -y ntp ntpdate
关闭自动校准时间命令
timedatectl set-ntp false
然后执行date -s “2021-02-02 02:02:02”
修改服务器系统时间
Linux 时间矫正
sudo
ntpdate -u ntp.api.bz
第一使用可能提示ntpdate没安装,用以下命令安装即可
ubuntu系统
sudo
apt
install
ntpdate
centos系统
sudo yum install -y ntp ntpdate
关闭自动校准时间命令
timedatectl set-ntp false
然后执行date -s “2021-02-02 02:02:02”
修改服务器系统时间
configure:error:no acceptable C compiler found in $PATH这里提示是缺少C的编译器这个时候需要安装C的编译器但是我冬日大神告诉我还要点别的省的出问题。执行下面搞定:apt ins...
添加用户useradd username 修改用户密码passwd username修改文件用户和用户组chown -R username:group /project/修改归属用户chown&...
ubuntu:rm /etc/localtimeln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtimecentos echo "A...
python2.7因业务需求。要把程序放入到docker容器中但是在docker执行的时候程序出现异常缓慢的情况检查函数执行情况发现当第一个线程执行到popen的时候会导致所有线程的挂起p1 = subprocess.P...
yum update 跟apt-get update 不一样centos的yum update相当于ubuntu的apt upgrade如果想用ubuntu的apt update,centos是yum makecache因为执行yum -y...
Linux下如何查看版本信息, 包括位数、版本信息以及CPU内核信息、CPU具体型号等等,整个CPU信息一目了然。 1、# uname -a (Linux查看版本当前操作系统内核信息)&nb...