我正在testing4个分片的本地Ubuntu机器上的分片mongodb设置。 我在屏幕上运行分片mongo服务器,因为它们必须托pipe在不同的端口上。 对于单个的mongo,我启动服务作为service mongod start ,默认启动mongo 27017.如何将它们设置为可以将端口作为parameter passing的服务? 例如service mongod start 27012,service mongod stop 27012.我在/etc/init.d中找不到任何mongod脚本来编辑和获取参数。