这里简单记录学习Golang之旅,方便自己回顾。
package
main
import
"fmt"// 我们需要使用fmt包中的Println()函数
func
main() {
fmt.Println("Hello, world!")
}
每个Go源代码文件的开头都是一个package声明,表示该Go代码所属的包。包是Go...
分类:
其他好文 时间:
2015-01-27 16:28:47
阅读次数:
158
File System为了让Linux运行起来,通常需要2个file systemboot file system (bootfs)root file system (rootfs)在传统的Linux boot, kernel首先mount(挂载)rootfs, 此时为read-only模式, 然后...
分类:
其他好文 时间:
2015-01-26 19:09:35
阅读次数:
149
tty: teletype, teletypewriterpseudo-tty 伪终端-t assigns a pseudo-tty or terminal inside our new container-imake an interactive connection
分类:
其他好文 时间:
2015-01-26 18:40:47
阅读次数:
176
1.准备条件:
1)下载安装IntelliJ IDEA
2)下载安装maven
3)下载安装perforce客户端(pv4)
4)下载安装tomcat
2.IDEA下配置maven
3.IDEA下配置perforce
4.IDEA下部署tomcat
5.IDEA下...
分类:
Web程序 时间:
2015-01-24 16:01:18
阅读次数:
191
Dockerize封装云,绿色免安装,下载后直接运行,按用户需求build私有云,build once, run anywhere,分布式计算原理,横向规模无限可扩展,极大降低销售,运维,升级,交付成本,Build, SHIP, run your CLOUD, not only app...
分类:
其他好文 时间:
2015-01-24 15:54:45
阅读次数:
133
在Linux系统下,重启Tomcat使用命令操作的!首先,进入Tomcat下的bin目录cd /usr/local/tomcat/bin使用Tomcat关闭命令./shutdown.sh查看Tomcat是否以关闭ps -ef|grep java如果显示以下相似信息,说明Tomcat还没有关闭root...
分类:
系统相关 时间:
2015-01-22 20:10:41
阅读次数:
264
ETCD官方的token请求的时候,因为网络的原因会请求失败;本文介绍一下如何自己部署一台类似discovery.etcd.io的服务器;系统环境:centos6:etcd(stable):v0.4.6官方文档指南:https://github.com/coreos/etcd/releases/downloadpackagescurl-Lhttps://github.com/coreos/etcd/..
分类:
其他好文 时间:
2015-01-22 18:27:49
阅读次数:
187
我们在使用dockerrun创建Docker容器时,可以用--net选项指定容器的网络模式,Docker有以下4种网络模式:host模式,使用--net=host指定。container模式,使用--net=container:NAME_or_ID指定。none模式,使用--net=none指定。bridge模式,使用--net=bridge指定,默认设置。默认..
分类:
其他好文 时间:
2015-01-22 15:40:59
阅读次数:
791
原文地址:http://www.cnblogs.com/linjiqin/p/3625609.htmlDocker中文网站http://www.docker.org.cn
分类:
系统相关 时间:
2015-01-22 14:58:08
阅读次数:
168