跳至主要内容

管理MongoDB

MongoDB可配置的启动选项
  • --dbpath    指定数据目录,每个mongod进程都需要独立的数据目录,mongod启动时会创建mongod.lock文件,防止其他mongod进程使用该数据库目录
  • --port    指定服务器监听的端口号,运行多个mongod的话需要指定多个端口
  • --fork    以守护进程方式运行MongoDB
  • --logpath    指定日志输出路径,会将已有日志文件覆盖,清除原来的日志记录,如果想保留,还需要使用--logappend选项
  • --config    指定配置文件,加载命令行未指定的各种选项

Popular posts from 产品随想的博客

《Elon Musk》Chapter 1 - 10

To anyone I’ve offended, I just want to say, I reinvented electric cars and I’m sending people to Mars in a rocket ship. Did you think I was also going to be a chill, normal dude? ——Elon Musk, Saturday Night Live, May 8, 2021 PROLOGUE: Muse of Fire Near the end of the first week, the boys were divided into two groups and told to attack each other. “It was so insane, mind-blowing,” Musk recalls. Every few years, one of the kids would die. The counselors would recount such stories as warnings. “Don’t be stupid like that dumb fuck who died last year,” they would say. “Don’t be the weak dumb fuck.” 这种氛围有毒 “I realized by then that if someone bullied me, I could punch them very hard in the nose, and then they wouldn’t bully me again. They might beat the shit out of me, but if I had punched them hard in the nose, they wouldn’t come after me again.” 勇于挑战,哈哈哈 In the emergency room, when they were preparing to stitch him up, he resisted being treated until he was promised that the dog would not ...

Steve Jobs: `There's Sanity Returning', 1998

Nobody can doubt the charisma of Steven P. Jobs. The interim CEO of Apple Computer Inc., who returned to the company last July after his ignominious 1985 ouster, has brought back his legendary vision, impatience, and infectious passion for the Macintosh. Jobs spoke to Business Week Correspondent Andy Reinhardt in Apple's stark, fourth-floor boardroom, just after the company rolled out its new software strategy on May 11. Note: This is an extended, online-only version of the Q&A that appears in the May 25, 1998, issue of Business Week. Q: Now that you've introduced the new, bold-looking iMac, are you going to do some radically different products? A: There's a lot of talk about such things -- about handhelds, set-top boxes. A lot of computer companies have been searching for a consumer product. My view is that the personal computer has been the most successful consumer product of the last 10 years. What we have to do, what the industry stopp...

初识PAM

Pluggable Authentication Modules for Linux 可插拨认证模块 用户访问服务器,服务程序将请求发送至PAM模块

罗伯特·艾格 创始人肖像计划 <​Ep.2>

Link 罗伯特·艾格 创始人肖像计划 <​Ep.2>   https://zhuanlan.zhihu.com/p/127042313 Note 这个男人,过去十五年时间,几乎不接受采访,只是静悄悄的,花掉了1000亿美金。 ——这个男人,太厉害了...... 艾格跳槽去了ABC,从最底层的小导播做起,一辈子46年职业生涯,再也没有跳过槽。这46年里的最后15年,他升任CEO,做出了惊天动地的大事情。 今年,艾格退休写了自传,起名字叫《The Ride of a Lifetime》,我想了半天,这书名有点拽,只能翻译成《一辈子就要干一票大的》,笔者一介俗人,但愿艾总不要介意,哈哈。 ——《一辈子的旅途》,感觉会更契合些?哈哈哈 在艾总的这本《干一票》里,我读来读去,总是找不到他是怎么升到副总裁的——升到副总裁之后的一步步到CEO倒是写的很细致,看来大佬写自传也为自己讳,不愿意提太多当年勇。 ——Interesting 地表最强二人组(Tom Murphy和Dan Burke)最牛逼的成就就是不出让股权(Equity)的资本并购。一路用自由现金流加发行债券来进行收购,85年的时候举债30亿,配合巴菲特的5亿美金,小鱼吞大鱼,一把吃掉了当时比自己体量大得多的ABC电视台。他们俩的管理特点是极端节俭,冷血砍成本(不禁让人想到贝索斯),收购完成后,直接开掉1500员工、干掉高管电梯、高管餐厅、全员改坐经济舱,甚至于把曼哈顿总部的办公室卖了,换来1.75亿美金。三年多就把当时举的债还完。 作为巴菲特一辈子最推崇的企业家组合,Tom和Dan还有一个特点:放权。他们俩极为谨慎用人,但是一旦选中,就破格提拔,尚方宝剑交出,让牛人干大事。没干多久,俩人就接二连三的退休了,艾格你年轻,你来当总裁! 艾格原话是这么写的:“我心里也有预期,感觉最后总裁的位置是我的,但是确实没想到来的那么快”。按照网友的话就是“一脸懵逼”。 艾格有个特点,他性格是标准的外柔内刚,外圆内方。他不强势,不豪夺,永远不是人群中最聒噪的那位。他能等,在大都会(CapCities)花六年时间做三把手,等到二把手退休,再等好几年到一把手退休,最终上位 ——耐得住寂寞,受得住繁华 21世纪出头即提出战略: 第一句:我们只做高质量品牌视频 第二句:全力拥抱技术而不是对抗 第三句:全球化 大佬的出手案例...

怪盗基德-24集观后感悟

对《名侦探柯南》里的怪盗基德念念不忘,最终还是没有忍住,去看了怪盗基德,或者说是黑羽快斗? 下面是每一集提到,对自己有启发的话: 第1集——你可以欢脱,可以搞怪,但无论什么时候都要保持扑克脸 第2集——不要预告即将发生的事情 第3集——马戏团里最厉害的人是小丑 第4集——对你的敌人,保持各种细节的关注 第5集——魔术与魔法是不一样的 第6集——使尽浑身解数,都要保持笑容与品行 第7集——有破绽之时不要逃跑,要相信自己的实力 第8集——保持一颗童心 第9集——这是一集撩妹操作!没有名言 第10集——逆向思维,让人震惊出乎意料的 第11集——柯南来了! 第12集——已经过去八年了,如果我再捉不到你,哈哈哈,莫名搞笑的台词 第13集——这是一集滑雪集,超级暖心的!!基德本色出演滑雪,超级棒的样子 第14集——基德在帮助小王子,知道自己母亲的心意 第15集——不要等着别人来哄你开心,要努力让别人开心才可以 第16集——不给任何机会彻底打到别人的想法是愚蠢的 第17集——今晚一位名不见经传的仆人变成了耀眼的公主 第18集——日本与法国的怪盗对决 第19集——不管自己的目的有没有实现,都会给大家带上精彩绝伦表演的呢 第20集——为了这个孩子,偷走名为真相的噩梦 第21集——不能透露魔术的秘密;不能提前透露即将发生的事情;同样的魔术不能表演两次 第22集——是我的恩师为了他的孙女而装进宝石里的终极魔术 第23集——如果你无法看穿那个魔术的话,就请你金盆洗手离开魔术行业 第24集——他没有输,我就放心了,这里还真是不错的呢!!哈哈哈,四人基德侦探团

The Three Faces Of Steve Jobs, Brent Schlender, 1998 Fortune

(FORTUNE Magazine) – Well into the conversation with FORTUNE that you're about to read, Steve Jobs, the once and interim CEO of Apple Computer, professes to feel, at the wizened age of 43, no different from when he was a frisky 17-year-old. True to form, he contradicts himself a little later, confessing to be "an old man now." Those comments reveal as much about why Jobs has been able to pull off his prestidigital revival of Apple--his first and still greatest creation--as do his observations on his business strategies and actions of the past year. Here's why. Jobs is most effective as a businessman and leader when he invokes the pathos and gestalt of his generation. He is, after all, a child of the 1960s--you're still likely to find him barefoot in the office, and for breakfast he eats granola doused in apple juice. Yet Jobs is also a mature baby-boomer, with an impressive if offbeat store of business experience, plus the typical worries that go with...

CAD 天正与 AI 工作流

基本步骤   1. 天正导出 T3 .dwg 文件,尽量在2007版本   2. AI 打开,打开时候可以选择比例,因为 AI 画布是基于真实尺度   3. AI 打开 .dwg 后,更改画布到所需要的大小   4. 之后用 PS 打开 AI 文件,可以维持想要的大小和比例   5. 而且 AI 可以读取天正的图层 课外了解   1. ETH 风格平面图   2. 日本创新性的停车方式   3. AI中的实时上色功能去了解

MarkdownPad 2 Pro

有点讨厌Office套件的臃肿,有时候仅仅是记录一个小想法,尽管自己机器很强劲,但打开的延迟还是会让自己觉得很不舒服,于是乎,投到Markdown坑里,正在尝试三款Markdown编辑器