先来看看线程的几个方法: package thread.basics; public class Test_Sleep_Yield_Join { public static void main(String[] args) { //sleep意思就是睡眠,当前线程暂停一段时间让其他线程去执行,时间到 ...
分类:
编程语言 时间:
2020-05-24 00:36:26
阅读次数:
72
第一种方法: 去maven 项目 helo-world 项目 配置pom.xml,在pom.xml配置 只有本项目才用到这个Nexus仓库 [root@ci-node2 ~]# cd /root/hello-world [root@ci-node2 hello-world]# ll total 4 ...
分类:
其他好文 时间:
2020-05-23 19:58:29
阅读次数:
74
Automation自动化需要安装Puppetclass nginx { package {"nginx": ensure => 'installed',} #确认Nginx已安装 service {"nginx": ensure => 'true', hasrestart => 'true', # ...
分类:
其他好文 时间:
2020-05-22 19:48:34
阅读次数:
72
显示状态1-处于"/"旋转 #!/bin/sh sleep 10 & pid=$! # Process Id of the previous running command spin='-\|/' i=0 while kill -0 $pid 2>/dev/null do i=$(( (i+1) % ...
分类:
系统相关 时间:
2020-05-22 19:39:19
阅读次数:
349
昨日内容回顾 阻止后续事件发生 # 第一种(常用)return false# 第二种e.preventDefault()# 记form表单触发提交动作的按钮 事件冒泡 # 第一种(常用)return false# 第二种e.stopPropagation() 事件委托 # 针对标签无论是事先写好的还 ...
分类:
Web程序 时间:
2020-05-22 18:58:50
阅读次数:
67
简介 装饰器是可调用的对象,其参数是另一个函数(被装饰的函数)。 装饰器可能会处理被装饰的函数,然后把它返回,或者将其替换成另一个函数或可调用对象。 形式 假如有个名为 decorate 的装饰器: @decorate def target(): print('running target()') ...
分类:
编程语言 时间:
2020-05-22 18:58:00
阅读次数:
43
Total number of allocations 476778 进程创建到现在一共创建了多少对象 Total bytes allocated 52MB 进程创建到现在一共申请了多少内存 Total bytes freed 52MB 进程创建到现在一共释放了多少内存 Free memory 77 ...
分类:
其他好文 时间:
2020-05-22 13:19:00
阅读次数:
139
最近在阿里云服务器centos上安装了mysql数据库,默认是不开启远端访问功能,需要设置一下防火墙,在开放默认端口号 3306时提示FirewallD is not running,经过排查发现是防火墙就没打开造成的,出于安装考虑还是把防火墙开上吧,以下步骤仅供参考啦。 工具/原料 阿里云服务器c ...
分类:
其他好文 时间:
2020-05-22 09:17:56
阅读次数:
51
1、IDEA配置tomcat后运行项目报错Error running Tomcat: Unable to open debugger port (127.0.0.1:63591) 问题原因: 1、多半是由于Tomcat是新下载的,bin文件夹里的catalina.sh权限是rwxr--r--,普通用 ...
分类:
编程语言 时间:
2020-05-22 00:04:19
阅读次数:
77
Go的安装配置这里就不说了 这里主要讲安装Beego框架 首先安装beego。运行以下指令,安装beego(需要先安装GIT): go get github.com/beego/bee 安装完成后 如果 还不能 使用 bee 命令的话 需配置环境变量 vi ~/.bash_profile 加入 # ...
分类:
系统相关 时间:
2020-05-21 21:18:21
阅读次数:
79