1
0
mirror of https://github.com/captn3m0/Scripts.git synced 2024-09-21 00:57:51 +00:00
scripts/mongo-cleanup.sh
2012-02-18 21:44:10 +05:30

6 lines
141 B
Bash
Executable File

#!/bin/bash
sudo rm /var/lib/mongodb/mongod.lock
sudo -u mongodb mongod -f /etc/mongodb.conf --repair
sudo start mongodb
sudo status mongodb