chown -R & chmod 777 & chmod +x
https://linux.die.net/man/1/chown
- chown - change file owner and group
https://linux.die.net/man/2/chown
- chown, fchown, lchown - change ownership of a file
https://www.geeksforgeeks.org/chown-command-in-linux-with-examples/
chown
MongoDB
# start service
$ mongod
# start mongodb REPL instance
$ mongo
$ sudo mkdir -P /data/db
$ whoami
# xgqfrms-mbp
# sudo chown -R ur/username /data/db
$ sudo chown -R xgqfrms-mbp /data/db
# list services
$ brew services list
$ brew services start mongodb
$ brew services stop mongodb
https://www.youtube.com/watch?v=GTuJ1p7gpx4
chmod 777 & chmod +x
#!/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
# sudo ./db.sh
# nodemon -w ./server.js localhost 8888
# /bin/sh db.sh
# ps -ef | grep node
# sudo kill -9 <PID>
https://www.cnblogs.com/xgqfrms/p/9546961.html
©xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!