使用python3自动同步windows10系统时间
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- #更新windows时间 import os import datetime import ntplib c = ntplib.NTPClient() hosts = ['edu.ntp.org.cn', 'tw.ntp.org.cn',...
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- #更新windows时间 import os import datetime import ntplib c = ntplib.NTPClient() hosts = ['edu.ntp.org.cn', 'tw.ntp.org.cn',...
kubectl cluster-info #查询集群运行信息、版本。 kubectl apply -f test.yaml #部署指定文件,--file kubectl delete -f test.yaml #取消部署 kubectl run d1 --image httpd:alpine --port 80 #创建d1的Apache镜像 kubectl exec -it redis-master-59694fd4d5-txcbc sh #以sh进入容器 kubectl logs -f redis-master-59694fd4d5-txc...
#!/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin export PATH # Check if user is root if [ $(id -u) != "0" ]; then echo "Error: You must be root to run t...
#!/bin/bash ###########################################################################################...
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- from urllib import request import requests import json from datetime import datetime from dingtalkchatbot....
#!/bin/bash ################ Version Info ################## # Author: ...
/interface vrrp add name=vrrp1 arp=enabled authentication=none disabled=no interface=wan interval=1 mtu=1500 preemption-mode=yes priority=100 vrid=1 add name=vrrp2 arp=enabled authentication=none disabled=no interface=wan interval...
#!/bin/env bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin clear # 检查是否 root 用户 if [ $(id -u) != "0" ]; then echo "Error: You must be root to run this sc...
标签: centos 安装 shell install 一键 docker centos7 docker-compose
#!/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin export PATH # Check if user is root if [ $(id -u) != "0" ]; then echo "Error: You must be root to run this script, ...
#!/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin export PATH # Check if user is root if [ $(id -u) != "0" ]; then echo "Error: You must be root to run th...
#!/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin export PATH # Check if user is root if [ $(i...