For launching the mongod with fork is it necessary to enter --dbpath and --logpath

When I an launching the mongodb the following can be used?

mongod --dbpath /data/db --fork

The best resource is the documentation at

But you can always try

mongod --fork
BadValue: --fork has to be used with --logpath or --syslog
try 'mongod --help' for more information