CSS小知识以及mongod.conf相关配置

First Post:

Last Update:

媒介查询H5端横屏与竖屏

1
2
@media all and(orientation: landscape) /* 横屏CSS */
@media all and(orientation: portrait) /* 竖屏CSS */

CSS 动态计算长度值

1
calc( ... )

mongod.conf

1
2
3
4
logpath = /usr/local/src/mongodb/logs/mongod.log
logappend = true
fork = true
dbpath = /usr/local/src/mongodb/data/db
此处遇坑

由于mongodb目录下一开始无logs文件夹,故以–fork参数启动mongd失败。
报错:

1
2
3
4
about to fork child process, waiting until server is ready for connections.
forked procsee: 1624 (PS: 此数字不固定)
ERROR: child process failed, exited with error number 1
To see additional in this output, start without the "--fork" option.