由于Go的源码是通过Mercurial进行管理的, 所以需要先安装Mercurial来实现Go源码的获取,依次执行以下命令:
sudo apt-get install bison ed gawk gcc libc6-dev make
sudo apt-get install python-setuptools
sudo apt-get install python-dev
sudo apt-get install build-essential
sudo apt-get install mercurial
tar -zxvf go1.3.src.tar.gz #源文件已经有go1.3.src.tar.gz
cd ~/go/src
-
#####Golang学习 - io/ioutil 包:
-
#####XORM:
-
#####strconv:
-
#####Redis学习手册(目录):
###指针、地址###
package main
import(
"fmt"
)
func main(){
p :=new(int)//var p *int,但是这样下面的*p=a必须替换成p=&a,否者产生空指针{new返回指针,而此方法返回对象,需要为对象赋值},使用new则两者都行
a :=1
*p =a
http://jameszhao1987.iteye.com/blog/1480090
1、以管理员身份登录mysql
mysql -u root -p
2、选择mysql数据库
use mysql
###git、NodeJS、 MongoDB 2.6.5、 Redis、 ZeroMQ、 nginx、 imagemagick一键安装
sudo apt-get install wget
#####git
sudo apt-get install git
#####nodejs
wget http://nodejs.org/dist/v0.10.33/node-v0.10.33-linux-x64.tar.gz
tar -xvf node-v0.10.33-linux-x64.tar.gz
###DNS服务器
#####1. 安装相应的服务器软件:
apt-get install bind9 安装bind9
#####2. 设置主服务器域和域解析文件
vim /etc/bind/named.conf.local
然后设置域zone和域解析文件file:
zone "linux31.com"{
type master;
file "db.linux31.com";
##使用sublime text 2的node.js配置 本机环境: windows7 64位
从nodejs官网下载安装包
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| aaa |
OlderNewer