Linux & chmod & cmd All In One
Linux & chmod & cmd All In One
linux & chmod 777 & chmod +x
https://www.cnblogs.com/xgqfrms/p/9546961.html
https://www.cnblogs.com/xgqfrms/p/9551553.html
https://www.cnblogs.com/xgqfrms/p/9626636.html
https://github.com/xgqfrms-GitHub/Node-CLI-Tools/blob/master/bash-shell-chmod.md
#!/bin/sh
# echo "^-v-^ JSON DB is running in development env!" && npm run db
# echo "^-v-^ JSON DB is running in development env!" && nodemon -w ./server.js localhost 8888
JSONDB="nodemon -w ./server.js localhost 8888"
${JSONDB} &
# chmod +x db.sh
# OR
# chmod 777 db.sh
# sudo ./db.sh
# nodemon -w ./server.js localhost 8888
# /bin/sh db.sh
# ps -ef | grep node
# sudo kill -9 <PID>
bug
Raspberry Pi 3B
$ /bin/sh dev.sh
$ sudo dev.sh
$ ./dev.sh
bash & shell
dev.sh
#!/usr/bin/env bash
echo "^-v-^ app is running in development env!" && ane env=dev && npm run dev
node & cmd
dev.cmd / dev.sh
#!/usr/bin/env node
echo "^-v-^ app is running in development env!" && ane env=dev && npm run dev
app.cmd / app.sh
#!/usr/bin/env node
echo "^-v-^ app is running in production env!" && ane env=prod && npm run build
refs
©xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/11119206.html
未经授权禁止转载,违者必究!