Comments (25)
cd /root
mkdir go
export GOPATH=/root/go
go get github.com/orvice/shadowsocks-go
cd /root/go/src/github.com/orvice/shadowsocks-go/mu
go get
go build
./mu -debug
from shadowsocks-go.
mkdir
export GOPATH=/root/go
请问是不是输入的mkdir之后再输入GOPATH=/root/go ?
但我输入的mkdir没反应
from shadowsocks-go.
先 mkdir go
from shadowsocks-go.
在root
我已经有go文件夾了
之后再输入export GOPATH=/root/go
再输入go get github.com/orvice/shadowsocks-go就不行了
出现如下
warning: GOPATH set to GOROOT (/root/go) has no effect
package github.com/orvice/shadowsocks-go: cannot download, $GOPATH must not be set to $GOROOT. For more details see: go help gopath
from shadowsocks-go.
go env
输出发下
from shadowsocks-go.
warning: GOPATH set to GOROOT (/root/go) has no effect
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root/go"
GORACE=""
GOROOT="/root/go"
GOTOOLDIR="/root/go/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
from shadowsocks-go.
另外我是这样配置环境变量
环境变量
echo "export GOROOT=$HOME/go" >> ~/.profile
echo "PATH=$PATH:$GOROOT/bin" >> ~/.profile
source ~/.profile
代码目录
mkdir ~/gocode
echo "export GOPATH=$HOME/gocode" >> ~/.profile
echo "PATH=$PATH:$GOPATH/bin" >> ~/.profile
source ~/.profile
from shadowsocks-go.
我的go root是这样的,你参考下
GOROOT="/usr/local/go"
from shadowsocks-go.
wget -c https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.6.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
export GOPATH=~/.go
go get github.com/orvice/shadowsocks-go
cd ~/.go/src/github.com/orvice/shadowsocks-go/mu
go get
go build
from shadowsocks-go.
可以了 万分感谢2位大大
想问最后一条问题
就是输入./mu 出现
ERRO[0000] open config.conf: no such file or directory
是不是先要cp examlple.conf config.conf先可以?
但我在mu目录输入cp example.conf config.conf出现
cp: cannot stat ‘examlple.conf’: No such file or directory
from shadowsocks-go.
https://github.com/orvice/shadowsocks-go/blob/master/mu/example.conf
from shadowsocks-go.
对了 我忘了一件事 这个mu是不是直接配合ss-panel 不用安装在SS服务端吧
mu要安装在ss-panel网站的同一个vps上 之后再安装mu完成后再输入cp examlple.conf config.conf 再配置config.conf 才能正常运行?
因为这个mu不太清楚 所以开的vps是新开来测试的安装mu
from shadowsocks-go.
@alexking99 不用。这个就是服务端。
from shadowsocks-go.
@VishKozus 这个就是SS服务端? 哪再修改example.conf的ip指向ss-panel数据库就行了?
from shadowsocks-go.
@alexking99 你是ss-panel v2 还是v3?v3可以用api方式。参考这里:http://bitzhi.com/2016/03/install-ss-go-mu-and-ss-panel-v3/
from shadowsocks-go.
@VishKozus 明白了 非常感谢 请问启动报错是什么原因?
ERRO[0000] boot redis fail: ERR Client sent AUTH, but no password is set
from shadowsocks-go.
@VishKozus 可以启动了 但在线人数还是0的 是不是要等?
另外我想问设置多台服务器在线人数应该怎样改
[webapi]
url xxxx
key xxxx
node_id 1 <------怎样改?
from shadowsocks-go.
base的配置发下
from shadowsocks-go.
[base]
N 1
ip 0.0.0.0
client webapi
checktime 60
synctime 60
[webapi]
url 我的url
key 我的mukey
node_id 1
[mysql]
host 127.0.0.1:3306
user 我的root
pass 我的pass
db 我的db
table table
[redis]
host localhost:6379
#pass ""
db 1
from shadowsocks-go.
node_id是ss-panel数据库中,对应节点的id
from shadowsocks-go.
@orvice
但我这样改可不可以?
[webapi]
url 我的url
key 我的mukey
node_id 1
node_id 2
node_id 3
但如果我是这样改再输入./mu启动就会出现
ERRO[0000] section: webapi already has key: url at 13
from shadowsocks-go.
node_id 只能有一个...
from shadowsocks-go.
@orvice 那是不是只能显示一台服务器在线人数?
from shadowsocks-go.
一个ss-go mu是一个节点
你只需要配置一个节点在ss-panel 中对应的node id
每个mu都有不同的id,在ss-panel中会显示所有节点的在线信息
from shadowsocks-go.
@orvice 明白了 但在线人数还是0的 要等?还是?
from shadowsocks-go.
Related Issues (20)
- 可否公开下代码的设计文档,或者写一个类似这样的代码分析https://0x01.io/2016/02/28/shadowsocks-%E6%BA%90%E7%A0%81%E9%98%85%E8%AF%BB/
- Releases v2.1 go get时遇到如下错误 cannot use v (type *User) as type HOT 1
- unrecognized import path "shadowsocks/shadowsocks-go/mu/config" (import path does not begin with hostname) HOT 2
- unrecognized import path "shadowsocks/shadowsocks-go/mu/config" (import path does not begin with hostname) HOT 1
- 编译时go提示包循环 HOT 2
- ./mu debug 时,只有在 ss-panel 新增的用户才能生效,而数据库中原有的用户不生效 HOT 2
- 刷朋友圈时后端提示错误
- shadowsocks manyuser切换过来平滑吗?
- 在新服务器,新编译出来的mu用不了;把老服务器编译好的mu复制过来就可以用 HOT 3
- mu版无法初始化用户端口问题(已屏蔽) HOT 4
- supervisorctl 管理mu运行问题 HOT 2
- go版本支持udp吗 HOT 1
- mu有个用户报这个错误【error getting request[来路ip] [本地ip] addr type * not supported】 HOT 1
- 关于UDP和FASTOPEN HOT 1
- 安装 shadowsocks-go mu 一直卡住了 HOT 2
- 是否考虑支持混淆?
- 端口突然出现问题 HOT 5
- shadowsocks go mu can't starting, Get User Error%!(EXTRA *json.Unmarshal was reported HOT 1
- 这些也要删除了吧。昨晚才知道。。很郁闷 HOT 1
- 邀请码
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shadowsocks-go.