1、安装ntpdate,执行以下命令 # 安装utpdate命令 yum install ntpdate -y 2、手工同步网络时间,执行以下命令,将从time.nist.gov同步时间 ntpdate 0.asia.pool.ntp.org 若上面的时间服务器不可用,也可以选择以下服务器同步时间 ...
分类:
系统服务 时间:
2020-12-26 20:24:51
收藏:
0 评论:
0 赞:
0 阅读:
40
sudo apt-get install figlet 安装完之后 执行 figlet some text //some text 可以填自己想输入的内容 ...
分类:
系统服务 时间:
2020-12-26 18:04:57
收藏:
0 评论:
0 赞:
0 阅读:
51
code # 由并发变成了串行,牺牲了运行效率,但避免了竞争 import os import time import random from multiprocessing import Process,Lock def work(lock,n): lock.acquire() print('%s ...
分类:
系统服务 时间:
2020-12-26 18:04:05
收藏:
0 评论:
0 赞:
0 阅读:
29
brew install ccache 系统提示如下错误 解决方案: sudo rm -rf /Library/Developer/CommandLineTools sudo xcode-select --install 这里的坑点在于没有意识到CTL缩写的含义,否则应该很快就能意识到什么地方出了问 ...
分类:
系统服务 时间:
2020-12-26 17:59:17
收藏:
0 评论:
0 赞:
0 阅读:
100
code import os from multiprocessing import Process def f(x): print('子进程id :',os.getpid(),'父进程id :',os.getppid()) return x*x if __name__ == '__main__': ...
分类:
系统服务 时间:
2020-12-26 17:57:31
收藏:
0 评论:
0 赞:
0 阅读:
42
多进程并行 code import time from multiprocessing import Process def f(name): print('hello', name) time.sleep(1) if __name__ == '__main__': p_lst = [] for i ...
分类:
系统服务 时间:
2020-12-26 17:54:58
收藏:
0 评论:
0 赞:
0 阅读:
42
krakend 对于后端的cache 是基于httpcache 利用了http 的cache 标准定义,当然开启会加速内容以及系统性能的降级 参考资料 ... "backend": [ { "url_pattern": "/", "host": ["http://my-service.tld"], ...
分类:
系统服务 时间:
2020-12-26 17:48:52
收藏:
0 评论:
0 赞:
0 阅读:
24
1、关闭本地防火墙 2、关闭linux系统的防火墙 临时关闭: service iptables stop 永久关闭:chkconfig iptables off (重启后生效) 3、检查虚拟机的服务是否开启(全部开启就完了) 4、网络适配器可以选择NET模式,也可以选择自定义,虚拟机和本地连通就好 ...
分类:
系统服务 时间:
2020-12-26 17:47:28
收藏:
0 评论:
0 赞:
0 阅读:
26
cisco smb sf300-08 https://www.cisco.com/c/en/us/support/switches/sf300-08-8-port-10-100-managed-switch/model.html https://www.cisco.com/c/zh_cn/suppo ...
分类:
系统服务 时间:
2020-12-26 17:46:22
收藏:
0 评论:
0 赞:
0 阅读:
45
code import time import random from multiprocessing import Process, Queue # 生产者 def producer(q, i): food = 'Spam-%d' % i time.sleep(random.uniform(2, ...
分类:
系统服务 时间:
2020-12-26 17:45:44
收藏:
0 评论:
0 赞:
0 阅读:
30
Restart Strategy Selection Using Machine Learning Techniques Haim S., Walsh T. (2009) Restart Strategy Selection Using Machine Learning Techniques. In ...
分类:
系统服务 时间:
2020-12-26 17:43:39
收藏:
0 评论:
0 赞:
0 阅读:
27
Linux中遇到不太懂的命令,获取帮助,一般可以用 -h 或者--help ,但有时候不准确。可以用info ,退出用q。最多的用的是man + 命令,取的是manual。 命令: 1.date date + "%Y%m" 2.cal 日历(calendar) cal #显示本月日历 cal -y ...
分类:
系统服务 时间:
2020-12-26 11:48:23
收藏:
0 评论:
0 赞:
0 阅读:
27
eclipse的实用配置 本次选择的eclipse版本为"Eclipse 2020-03",最新版的不支持JDK1.8(==!) eclipse是什么 因为java是由sun(太阳)开发的,IBM想要取代sun成为java语言的主宰,eclipse是日蚀就是要遮蔽sun的光芒。 Eclipse(Ec ...
分类:
系统服务 时间:
2020-12-26 11:44:41
收藏:
0 评论:
0 赞:
0 阅读:
37
Linux文件设备 要理解Linux,首先要理解Linux文件结构 在Linux操作系统中,几乎所有的设备都位于/dev目录中 名称作用位置 SATA接口 电脑硬盘接口 /dev/sd[a-p] U盘 可移动设备 /dev/sd[a-p] Virtio接口 提供虚拟化 /dev/vd[a-p] 软盘 ...
分类:
系统服务 时间:
2020-12-26 10:23:11
收藏:
0 评论:
0 赞:
0 阅读:
34
1、下载插件 com.cb.eclipse.folding_1.0.6.jar 下载地址:http://files.cnblogs.com/haiq/代码折叠插件_com.cb.eclipse.folding_1.0.6.rar 2、把下载的com.cb.eclipse.folding_1.0.6. ...
分类:
系统服务 时间:
2020-12-26 10:22:35
收藏:
0 评论:
0 赞:
0 阅读:
58
升级方法 一共四步 1: rpm -Uvh http://mirror.ghettoforge.org/distributions/gf/gf-release-latest.gf.el7.noarch.rpm 2: rpm --import http://mirror.ghettoforge.org ...
分类:
系统服务 时间:
2020-12-26 10:19:28
收藏:
0 评论:
0 赞:
0 阅读:
34
shell脚本常用颜色如下:30:黑31:红32:绿33:黄34:蓝色35:紫色36:深绿37:白色echo-e"\033[31m红色字\033[0m"echo-e"\033[32m绿色字\033[0m"echo-e"\033[33m黄色字\033[0m"echo-e"\033[34m蓝色字\033[0m"让字体变为红
分类:
系统服务 时间:
2020-12-26 10:10:31
收藏:
0 评论:
0 赞:
0 阅读:
29
一、基本的控制结构 1、控制流 常见的控制流就是if、then、else语句提供测试条件,测试条件可以基于各种条件。例如创建文件是否成功、是否有读写权限等,凡是执行的操作有失败的可能就可以用控制流,注意控制流的真为0,假为1。 单层if语句 if 条件;then if 条件 命令 或 then 命令 ...
分类:
系统服务 时间:
2020-12-26 00:14:35
收藏:
0 评论:
0 赞:
0 阅读:
35
函数的作用:在编写脚本的时候,某一部分shell命令需要重复使用,为了方便调用,我们将这部分命令写在一起,给他一个名字,下次使用,直接调用名字即可,这一部分整体就被称为一个函数。优势:减少代码量、降低维护成本、让程序模块化,增加可读性、语法:函数名(){......returnn}或者function函数名(){......returnn}不同点就是,shell里面用exitx来返回值,而函数里面
分类:
系统服务 时间:
2020-12-25 22:47:11
收藏:
0 评论:
0 赞:
0 阅读:
43
crontab命令与配置 防止忘记,这里记录一下定时任务crontab的一些命令 crontab基本操作 1.安装crontabs服务 yum install crontabs 2.设置开机自启 systemctl enable crond 3.运行服务 systemctl start crond ...
分类:
系统服务 时间:
2020-12-25 19:35:18
收藏:
0 评论:
0 赞:
0 阅读:
60