2022-11-17 14:34:37 +08:00
|
|
|
rm -rf log; mkdir log
|
|
|
|
|
2022-11-29 14:56:49 +08:00
|
|
|
if systemctl > /dev/null; then
|
|
|
|
cp -f mongod.service /lib/systemd/system/
|
|
|
|
systemctl daemon-reload
|
|
|
|
systemctl start mongod
|
|
|
|
else
|
|
|
|
nohup mongod --config mongod.yaml > log/mongod.log &
|
|
|
|
fi
|
|
|
|
|
2022-12-06 11:49:17 +08:00
|
|
|
sleep 3.0
|
2022-12-05 14:59:02 +08:00
|
|
|
|
2023-03-29 10:30:40 +08:00
|
|
|
nohup deno run --allow-net --allow-read cli/ser.js 728 > log/ismism728.log &
|
|
|
|
nohup deno run --allow-net --allow-read cli/ser.js 729 > log/ismism729.log &
|
2022-11-17 14:34:37 +08:00
|
|
|
nohup nginx -p . -c nginx.conf > log/nginx.log &
|
|
|
|
|
2022-12-05 14:59:02 +08:00
|
|
|
sleep 0.5
|
|
|
|
|
2023-03-29 10:30:40 +08:00
|
|
|
tail log/mongo.log log/access.log log/error.log log/nginx.log log/mongod.log log/ismism{728,729}.log
|
2022-11-17 14:34:37 +08:00
|
|
|
echo "\nismism started\n"
|
|
|
|
pgrep -lf nginx; pgrep -lf mongo; pgrep -lf "deno run"
|