由于github
太慢,把仓库地址修改coding.net
// 修改仓库地址
git remote set-url origin https://xxxx.coding.net/xxx/xx/xx
同步报错
refusing to merge unrelated histories
// 搜索镜像
docker search jenkins
// 拉取镜像
docker pull jenkins
// 安装容器 暴露端口
docker run -itd -p 301:8080 jenkins
// 查看
docker ps
// 进入docker bash
docker exec -it 6966666669666 /bin/bash
// 查看密码
Element.scrollTo({
left: 0,
top: 100,
behavior: 'smooth'
})
#下载阿里yum源2
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
#生成仓库缓存
yum makecache
yum install docker -y
git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
// 全局安装
sudo npm -g i gitbook-cli
// 初始化
gitbook init
//本地服务
gitbook serve
//打包
gitbook build
# 目录
* [前言](README.md)
package main
import (
"fmt"
"github.com/gin-gonic/gin"
"net/http"
)
type User struct {
Name string `json:"name"`
Age int `json:"age"`
}
func main() {
r := gin.Default()
npm install -g nrm
nrm use taobao
nrm use npm
// 新建文件夹 然后
npm init
新建index.js
function hello( name ){
console.log( "hello" + name )
}
exports.hello = hello
登陆npm账户 登陆和发布需要切换到npm官方源,见下↓
npm adduser
| - src
- index.go
- libs
- index.go
libs / index.go
package libs // 属于哪个包
// 方法名 首字母 大写才能导出
func Count( a int, b int ) int {
return a + b
}
index.go