mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
Modify default rpcport, wsport
This commit is contained in:
parent
1b1e2397c3
commit
3d2051fa4e
8 changed files with 11 additions and 11 deletions
|
|
@ -8,7 +8,7 @@ RUN \
|
||||||
apk del git go make gcc musl-dev && \
|
apk del git go make gcc musl-dev && \
|
||||||
rm -rf /go-ethereum && rm -rf /var/cache/apk/*
|
rm -rf /go-ethereum && rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
EXPOSE 8545
|
EXPOSE 8588
|
||||||
EXPOSE 30303
|
EXPOSE 30303
|
||||||
|
|
||||||
ENTRYPOINT ["/geth"]
|
ENTRYPOINT ["/geth"]
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ One of the quickest ways to get Ethereum up and running on your machine is by us
|
||||||
|
|
||||||
```
|
```
|
||||||
docker run -d --name ethereum-node -v /Users/alice/ethereum:/root \
|
docker run -d --name ethereum-node -v /Users/alice/ethereum:/root \
|
||||||
-p 8545:8545 -p 30303:30303 \
|
-p 8588:8588 -p 30303:30303 \
|
||||||
ethereum/client-go --fast --cache=512
|
ethereum/client-go --fast --cache=512
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -130,12 +130,12 @@ HTTP based JSON-RPC API options:
|
||||||
|
|
||||||
* `--rpc` Enable the HTTP-RPC server
|
* `--rpc` Enable the HTTP-RPC server
|
||||||
* `--rpcaddr` HTTP-RPC server listening interface (default: "localhost")
|
* `--rpcaddr` HTTP-RPC server listening interface (default: "localhost")
|
||||||
* `--rpcport` HTTP-RPC server listening port (default: 8545)
|
* `--rpcport` HTTP-RPC server listening port (default: 8588)
|
||||||
* `--rpcapi` API's offered over the HTTP-RPC interface (default: "eth,net,web3")
|
* `--rpcapi` API's offered over the HTTP-RPC interface (default: "eth,net,web3")
|
||||||
* `--rpccorsdomain` Comma separated list of domains from which to accept cross origin requests (browser enforced)
|
* `--rpccorsdomain` Comma separated list of domains from which to accept cross origin requests (browser enforced)
|
||||||
* `--ws` Enable the WS-RPC server
|
* `--ws` Enable the WS-RPC server
|
||||||
* `--wsaddr` WS-RPC server listening interface (default: "localhost")
|
* `--wsaddr` WS-RPC server listening interface (default: "localhost")
|
||||||
* `--wsport` WS-RPC server listening port (default: 8546)
|
* `--wsport` WS-RPC server listening port (default: 8589)
|
||||||
* `--wsapi` API's offered over the WS-RPC interface (default: "eth,net,web3")
|
* `--wsapi` API's offered over the WS-RPC interface (default: "eth,net,web3")
|
||||||
* `--wsorigins` Origins from which to accept websockets requests
|
* `--wsorigins` Origins from which to accept websockets requests
|
||||||
* `--ipcdisable` Disable the IPC-RPC server
|
* `--ipcdisable` Disable the IPC-RPC server
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ RUN \
|
||||||
apk del go git make gcc musl-dev && \
|
apk del go git make gcc musl-dev && \
|
||||||
rm -rf /go-ethereum && rm -rf /var/cache/apk/*
|
rm -rf /go-ethereum && rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
EXPOSE 8545
|
EXPOSE 8588
|
||||||
EXPOSE 30303
|
EXPOSE 30303
|
||||||
|
|
||||||
ENTRYPOINT ["/geth"]
|
ENTRYPOINT ["/geth"]
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ RUN apt-get update && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -q -y geth
|
apt-get install -q -y geth
|
||||||
|
|
||||||
EXPOSE 8545
|
EXPOSE 8588
|
||||||
EXPOSE 30303
|
EXPOSE 30303
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/bin/geth"]
|
ENTRYPOINT ["/usr/bin/geth"]
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ RUN \
|
||||||
apk del go git make gcc musl-dev && \
|
apk del go git make gcc musl-dev && \
|
||||||
rm -rf /go-ethereum && rm -rf /var/cache/apk/*
|
rm -rf /go-ethereum && rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
EXPOSE 8545
|
EXPOSE 8588
|
||||||
EXPOSE 30303
|
EXPOSE 30303
|
||||||
|
|
||||||
ENTRYPOINT ["/geth"]
|
ENTRYPOINT ["/geth"]
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ RUN apt-get update && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -q -y geth
|
apt-get install -q -y geth
|
||||||
|
|
||||||
EXPOSE 8545
|
EXPOSE 8588
|
||||||
EXPOSE 30303
|
EXPOSE 30303
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/bin/geth"]
|
ENTRYPOINT ["/usr/bin/geth"]
|
||||||
|
|
|
||||||
|
|
@ -4235,7 +4235,7 @@ if (typeof Meteor !== 'undefined' && Meteor.isServer) { // jshint ignore: line
|
||||||
* HttpProvider should be used to send rpc calls over http
|
* HttpProvider should be used to send rpc calls over http
|
||||||
*/
|
*/
|
||||||
var HttpProvider = function (host) {
|
var HttpProvider = function (host) {
|
||||||
this.host = host || 'http://localhost:8545';
|
this.host = host || 'http://localhost:8588';
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,9 @@ import (
|
||||||
const (
|
const (
|
||||||
DefaultIPCSocket = "geth.ipc" // Default (relative) name of the IPC RPC socket
|
DefaultIPCSocket = "geth.ipc" // Default (relative) name of the IPC RPC socket
|
||||||
DefaultHTTPHost = "localhost" // Default host interface for the HTTP RPC server
|
DefaultHTTPHost = "localhost" // Default host interface for the HTTP RPC server
|
||||||
DefaultHTTPPort = 8545 // Default TCP port for the HTTP RPC server
|
DefaultHTTPPort = 8588 // Default TCP port for the HTTP RPC server
|
||||||
DefaultWSHost = "localhost" // Default host interface for the websocket RPC server
|
DefaultWSHost = "localhost" // Default host interface for the websocket RPC server
|
||||||
DefaultWSPort = 8546 // Default TCP port for the websocket RPC server
|
DefaultWSPort = 8589 // Default TCP port for the websocket RPC server
|
||||||
)
|
)
|
||||||
|
|
||||||
// DefaultDataDir is the default data directory to use for the databases and other
|
// DefaultDataDir is the default data directory to use for the databases and other
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue