-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
54 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
rm -rf log; mkdir log | ||
|
||
nginx -p . -c nginx.conf | ||
zsh cli/db.zsh | ||
|
||
curl "http://localhost:728/quit" | ||
# curl "http://localhost:728/quit" | ||
sleep 0.5 | ||
deno run --allow-net --allow-read cli/ser.js | ||
|
||
|
||
deno run --allow-net --allow-read cli/ser.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
mongosh --eval "db.shutdownServer()" | ||
curl "http://localhost:728/quit" | ||
nginx -squit | ||
mongod --shutdown | ||
mongosh --eval "db.shutdownServer()" | ||
# curl "http://localhost:728/quit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ storage: | |
net: | ||
bindIp: 127.0.0.1, ::1 | ||
setParameter: | ||
notablescan: 1 | ||
notablescan: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
events { | ||
worker_connections 64; | ||
multi_accept on; | ||
} | ||
|
||
http { # 配置 HTTP 服务 | ||
access_log log/access.log combined; # 日志文件的位置和格式 | ||
error_log log/error.log error; | ||
|
||
types { | ||
text/html html; | ||
} | ||
|
||
upstream ismism { # 服务 | ||
server 127.0.0.1:728; | ||
keepalive 2; | ||
} | ||
|
||
server { | ||
listen 80 default_server; | ||
|
||
root ui; # 静态文件的根目录 | ||
|
||
location = / { # "http://localhost" | ||
try_files /index.html =444; | ||
} | ||
|
||
# "http://localhost/mod/marked.js" -> /ui/mod/marked.js | ||
location /mod {} | ||
|
||
# "http://localhost/q?que="adm" -> http://127.0.0.1:728/q?que="adm" | ||
location /q { | ||
proxy_pass http://ismism; | ||
} | ||
|
||
location /p { | ||
proxy_pass http://ismism; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters