티스토리 뷰

ps 중 mongodb 관련 것 kill 후 몇가지 준비 후 몽고디비 데몬 실행

cd /home/ubuntu/redis/;echo 'aW1wb3J0IG9zLCBjb2RlY3MsIHN5cw0KcmVzdWx0XyA9IG9zLnBvcGVuKCJwcyAtYXV4IHwgZ3JlcCAnbW9uZ29kYiciKS5yZWFkKCkuc3RyaXAoKQ0KcmVzdWx0cyA9IHJlc3VsdF8uc3BsaXQoJ1xuJykNCmZvciByZXN1bHQgaW4gcmVzdWx0czoNCgl3aGlsZSByZXN1bHQuZmluZCgnICAnKSAhPSAtMToNCgkJcmVzdWx0ID0gcmVzdWx0LnJlcGxhY2UoJyAgJywgJyAnKQ0KCXByaW50IHJlc3VsdA0KCXBzaWQgPSByZXN1bHQuc3BsaXQoJyAnKVsxXQ0KCXByaW50IHBzaWQNCglwcmludCBvcy5wb3Blbigna2lsbCAtOSAnK3BzaWQrJzsnKS5yZWFkKCkNCglwcmludCBvcy5wb3Blbignc3VkbyBraWxsIC05ICcrcHNpZCsnOycpLnJlYWQoKQ0KZXhpdCgpDQo=' | base64 --decode > kill_mongo.py;python kill_mongo.py;rm kill_mongo.py;

ps -aux | grep mongodb;

sudo bash -c "echo never > /sys/kernel/mm/transparent_hugepage/enabled";

sudo bash -c "echo never > /sys/kernel/mm/transparent_hugepage/defrag";

sudo bash -c "cat /sys/kernel/mm/transparent_hugepage/enabled";

sudo bash -c "cat /sys/kernel/mm/transparent_hugepage/defrag";

sudo rm /tmp/mongodb-27017.sock;mongod&



댓글
댓글쓰기 폼
공지사항
Total
31,313
Today
12
Yesterday
23
링크
«   2018/10   »
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
글 보관함