Closed c0rpse closed 7 years ago
I have solved this. '-serve' is not useful now.API port will still bind to 8000 as default even you use -serve to modify it.
What's more,We should set nginx's parameter 'root' refer to gosint's 'website' directory.If not, you'll got a 404 error.
Configuring you php-fpm properly! CHeck your php-fpm mode!
[root@instance-1 GOSINT]# ./gosint --serve localhost:8020
/:::/ \:::\ \ /:::/ / \:::\ \ \:::\ \:::\ \ /::::\ \ /:::/ |::| | /::::\ \
/:::/ / \:::\ \ /:::// \:::__\ _\:::\ \:::\ \ _ /::::::\ \ /:::/ |::| | ____ /::::::\ \
/:::/ / \:::\ _|:::| | |:::| |/\ \:::\ \:::\ \ /\ \ /:::/\:::\ \ /:::/ |::| |/\ \ /:::/\:::\ \ /:::/_/ \:::| |:::|| |:::| /::\ \:::\ \:::\/::\ \/:::/ \:::__/:: / |::| /::__\/:::/ \:::__\ \:::\ \ /\ /:::|__|\:::\ \ /:::/ /\:::\ \:::\ \::/ \:::\ /:::/ \::/ \::/ /|::| /:::/ /:::/ \::/ / \:::\ /::\ \::/ / \:::\ \ /:::/ / \:::\ \:::\ \// \:::\/:::/ / \// \// |::| /:::/ /:::/ / \// \:::\ \:::\ \// \:::\ /:::/ / \:::\ \:::\ \ \::::::/ / |::|/:::/ /:::/ /
\:::\ \:::\\ \:::__/:::/ / \:::\ \:::__\ \::::/__/ |::::::/ /:::/ /
\:::\ /:::/ / \::::::::/ / \:::\ /:::/ / \:::\ \ |:::::/ /\::/ /
\:::\/:::/ / \::::::/ / \:::\/:::/ / \:::\ \ |::::/ / \//
\::::::/ / \::::/ / \::::::/ / \:::\ \ /:::/ /
\::::/ / \::// \::::/ / \:::__\ /:::/ /
\::/__/ ~~ \::/ / \::/ / \::/ /
\// \// \/____/
2017/09/07 06:04:57 Connecting to database... 2017/09/07 06:04:57 Successfully connected to backend database. 2017/09/07 06:04:57 Feeds not running, proceeding to start. 2017/09/07 06:04:57 Missing Twitter API keys... cannot start Twitter stream. 2017/09/07 06:04:57 Orchestration started. 2017/09/07 06:04:57 Missing Alienvault OTX API key... cannot start feed. 2017/09/07 06:04:57 No feeds found. ^Z [1]+ Stopped ./gosint --serve localhost:8020 [root@instance-1 GOSINT]# bg 1 [1]+ ./gosint --serve localhost:8020 & [root@instance-1 GOSINT]# netstat -ano|grep 8020 [root@instance-1 GOSINT]#
**_I set gosint to listen on 8020 but nothing happend.
When i use nginx's proxypass to upstream this port,error occured like below:**
2017/09/07 06:09:52 [error] 30956#0: 82 connect() failed (111: Connection refused) while connecting to upstream, client: 156.73.169.73, server: 156.77.144.211, request: "GET /inc/css/bootstrap.min.css.map HTTP/1.1", upstream: "http://127.0.0.1:8020/inc/css/bootstrap.min.css.map", host: "156.77.144.211" 2017/09/07 06:09:52 [error] 30956#0: 82 connect() failed (111: Connection refused) while connecting to upstream, client: 156.73.169.73, server: 156.77.144.211, request: "GET /inc/css/bootstrap.min.css.map HTTP/1.1", upstream: "http://127.0.0.1:8020/inc/css/bootstrap.min.css.map", host: "156.77.144.211" 2017/09/07 06:09:52 [error] 30956#0: 92 no live upstreams while connecting to upstream, client: 156.73.169.73, server: 156.77.144.211, request: "GET /api/post/ HTTP/1.1", upstream: "http://localhost/api/post/", host: "156.77.144.211", referrer: "https://156.77.144.211/transfer-station.php" 2017/09/07 06:09:52 [error] 30956#0: 93 connect() failed (111: Connection refused) while connecting to upstream, client: 156.73.169.73, server: 156.77.144.211, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:8020/favicon.ico", host: "156.77.144.211", referrer: "https://156.77.144.211/transfer-station.php" 2017/09/07 06:09:52 [error] 30956#0: *93 connect() failed (111: Connection refused) while connecting to upstream, client: 156.73.169.73, server: 156.77.144.211, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:8020/favicon.ico", host: "156.77.144.211", referrer: "https://156.77.144.211/transfer-station.php"
Wait for your solution.