Skip to content

在客户端机器上,在哪里写入服务器的ip地址? #1

@briteming

Description

@briteming

hi.

root@umh:/node-webproxy-by-21paradox# ls
config.json config.json.bak lib.js local.js node_modules package.json readme.md server.js
root@umh:
/node-webproxy-by-21paradox# nano config.json
root@umh:/node-webproxy-by-21paradox# ps aux|grep server.js
root 15043 0.0 0.0 11072 872 pts/1 S+ 19:50 0:00 grep server.js
root@umh:
/node-webproxy-by-21paradox# lsof -i:8002
root@umh:/node-webproxy-by-21paradox# node server.js &
[1] 15047
root@umh:
/node-webproxy-by-21paradox# listening on 8002
root@umh:/node-webproxy-by-21paradox# lsof -i:8002
root@umh:
/node-webproxy-by-21paradox# ps aux|grep server.js
root 15047 0.3 0.8 884752 18840 pts/1 Sl 19:50 0:00 node server.js
root 15055 0.0 0.0 11072 876 pts/1 S+ 19:51 0:00 grep server.js
root@umh:/node-webproxy-by-21paradox#
root@umh:
/node-webproxy-by-21paradox# cat config.json
{
"hostname": "0.0.0.0",
"local_port": 8001,
"remote_port": 8002
}
root@umh:~/node-webproxy-by-21paradox#

不过在客户端机器上,在哪里写入服务器的ip地址?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions