diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-06-05 23:37:41 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-06-05 23:37:41 -0700 |
| commit | 299312c8057c5b96f67a8ac825ee026fe01dd8fc (patch) | |
| tree | ec17f807d12adcb3fb4b8b35663258cfbeaeeb3f /weed/command/mount.go | |
| parent | 95fe745a0cf98975172e5e8fc166647c48f52c80 (diff) | |
| download | seaweedfs-299312c8057c5b96f67a8ac825ee026fe01dd8fc.tar.xz seaweedfs-299312c8057c5b96f67a8ac825ee026fe01dd8fc.zip | |
use separate filer grpc port
Diffstat (limited to 'weed/command/mount.go')
| -rw-r--r-- | weed/command/mount.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/command/mount.go b/weed/command/mount.go index 6ba3b3697..df215674f 100644 --- a/weed/command/mount.go +++ b/weed/command/mount.go @@ -2,6 +2,7 @@ package command type MountOptions struct { filer *string + filerGrpcPort *int dir *string collection *string replication *string @@ -15,6 +16,7 @@ var ( func init() { cmdMount.Run = runMount // break init cycle mountOptions.filer = cmdMount.Flag.String("filer", "localhost:8888", "weed filer location") + mountOptions.filerGrpcPort = cmdMount.Flag.Int("filer.grpc.port", 0, "filer grpc server listen port, default to http port + 10000") mountOptions.dir = cmdMount.Flag.String("dir", ".", "mount weed filer to this directory") mountOptions.collection = cmdMount.Flag.String("collection", "", "collection to create the files") mountOptions.replication = cmdMount.Flag.String("replication", "000", "replication to create to files") |
