12월, 2019의 게시물 표시

How to connect to remote MongoDB server

How to connect to remote MongoDB server ~ $  sudo vi /etc/mongod.conf # network interfaces net:   port: 27017   bindIp: 127.0.0.1   bindIpAll: true ~ $ sudo service mongod restart

Show free space of storage on Linux

$ df Filesystem     1K-blocks     Used Available Use% Mounted on udev               998984       0     998984   0% /dev tmpfs             203840     8408     195432   5% /run /dev/xvda1       49563892 3523424   43499720   8% / tmpfs             1019184       0   1019184   0% /dev/shm tmpfs               5120       0       5120   0% /run/lock tmpfs             1019184       0   1019184   0% /sys/fs/cgroup tmpfs             203944       0     203944   0% /run/user/1000 tmpfs             203944       0     203944 ...