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   0% /run/user/1001 $ df -h Filesystem       Size   Used Avail Use% Mounted on udev             976M     0   976M   0% /dev tmpfs           200M   8.3M   191M   5% /run /dev/xvda1       48G   3.4G   42G   8% / tmpfs           996M     0   996M   0% /dev/shm tmpfs           5.0M     0   5.0M   0% /run/lock tmpfs           996M     0   996M   0% /sys/fs/cgroup tmpfs           200M     0   200M   0% /run/user/1000 tmpfs           200