なんかsystemdだとうまくいかないんだけどなんだこりゃ...
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ とかどこぞのページをまねて
youichi@dell:/etc/init.d$ sudo echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list youichi@dell:/etc/init.d$ sudo sudo apt-get update youichi@dell:/etc/init.d$ sudo sudo apt-get install -y mongodb-org https://gist.githubusercontent.com/madhums/1092093/raw/8f12f005a2920503843818750af97d950586bd8b/mongod をとってきてパスとか適当になおす youichi@dell:/etc/init.d$ sudo chmod u+x /etc/init.d/mongod youichi@dell:/etc/init.d$ sudo update-rc.d mongod defaults insserv: Script mongod is broken: incomplete LSB comment. insserv: missing `Required-Start:' entry: please add even if empty. insserv: missing `Required-Stop:' entry: please add even if empty. youichi@dell:/etc/init.d$ sudo /etc/init.d/mongod start -e Starting Mongodb Service -e started youichi@dell:/etc/init.d$ ps -ef|grep mongo youichi 27477 5 0 16:12 pts/0 00:00:00 less /lib/systemd/system/mongod.service root 27684 1 11 16:25 ? 00:00:01 /usr/bin/mongod --dbpath /var/lib/mongodb --noauth youichi 27712 5 0 16:26 pts/0 00:00:00 grep --color=auto mongo youichi@dell:/etc/init.d$ mongo MongoDB shell version v3.6.4 connecting to: mongodb://127.0.0.1:27017 MongoDB server version: 3.6.4 Welcome to the MongoDB shell. For interactive help, type "help". For more comprehensive documentation, see http://docs.mongodb.org/ Questions? Try the support group http://groups.google.com/group/mongodb-user Server has startup warnings: 2018-05-06T16:25:52.846+0900 I CONTROL [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended. 2018-05-06T16:25:52.846+0900 I CONTROL [initandlisten] 2018-05-06T16:25:52.846+0900 I CONTROL [initandlisten] ** WARNING: This server is bound to localhost. 2018-05-06T16:25:52.846+0900 I CONTROL [initandlisten] ** Remote systems will be unable to connect to this server. 2018-05-06T16:25:52.846+0900 I CONTROL [initandlisten] ** Start the server with --bind_ip <address> to specify which IP 2018-05-06T16:25:52.846+0900 I CONTROL [initandlisten] ** addresses it should serve responses from, or with --bind_ip_all to 2018-05-06T16:25:52.846+0900 I CONTROL [initandlisten] ** bind to all interfaces. If this behavior is desired, start the 2018-05-06T16:25:52.846+0900 I CONTROL [initandlisten] ** server with --bind_ip 127.0.0.1 to disable this warning. 2018-05-06T16:25:52.846+0900 I CONTROL [initandlisten] > show dbs admin 0.000GB local 0.000GB >