代码改变世界

随笔档案-2023年08月

基于NTP的时间同步

2023-08-30 11:07 by ndzj, 24 阅读, 收藏, 编辑
摘要: CentOS基于NTP的时间同步(How) 1、安装ntp: yum install ntp 2、修改/etc/ntp.conf # Use public servers from the pool.ntp.org project. # Please consider joining the poo 阅读全文

Python3多线程并发写入数据到MongoDB

2023-08-22 14:34 by ndzj, 18 阅读, 收藏, 编辑
摘要: !/usr/bin/python ! * coding:utf-8 * from pymongo import MongoClient import threading import time 连接单机 single mongo c = MongoClient(host="192.168.89.15 阅读全文
点击右上角即可分享
微信分享提示