• [Linux/Unix] PostgreSQL 快速上手 2020-12-03 11:04:52

    简介 PostgreSQL 是最强大的开源数据库软件,日益被小公司,大公司青睐,应用非常广泛,市场空间非常大。开源免费,功能强大,稳定快速是它的主要特性优点。 本教程讲解如何快速配置搭建postgresql数据库,基于最新的postgresql 13编写,适用于windows, linux, mac osx. 作者是在ubuntu 20.10完成测试编写文档。安装请参考官方说明,非常简单,这里就不重复了。 本文主要是讲你安装官方默认方法安装好之后,要怎么配置,以及上手使用。

  • [Linux/Unix] Linux disable Intel turbo boost to cool down 2020-11-28 13:00:22

    If you have a little laptop with an Intel CPU that supports turbo boost, you might find that it’s getting a little hot when you’re using it on your lap. For example, taking a look at my CPU:lscpu |egrep "Model name|MHz" We can see that it&rsq

  • [Linux/Unix] mongodb 安装新手教程配置密码 2020-11-26 09:42:21

    本文介绍如何快速的安装mongodb,并且配置密码登录。 默认的ubuntu安装,是不会给mongodb配置密码的,需要你稍微做一点事情,配置一下。那么让我们开始吧。 切换到root用户,安装mongodb先。以ubuntu 18.04为例,安装命令: apt-get update apt-get install -y mongodb-server 安装完成之后,mongodb应该自动启动了,我们进入shell   mongo 好

  • [Linux/Unix] ubuntu 20.04 sysctl 文件不能正常加载 2020-05-01 12:13:09

    今天发现一个问题, 升级到ubuntu20.04之后, 原本启动系统的时候,能正常加载sysctl.conf文件, 现在不能正常加载了。然后我就找到一个办法。 新建一个sysctlp.service文件, 位于/etc/systemd/system/这个目录下面 [Unit] Description=Apply Kernel Variables After=systemd-modules-load.service [Install] WantedBy=multi-user

  • [Linux/Unix] CentOS 6 fixes dns slow by add options single-request-reopen to /etc/resolv.conf 2014

    CentOS 6 fixes dns slow by add optionssingle-request-reopen to /etc/resolv.conf. Slow DNS lookups can have many reasons. Mostly they are easy to fix because it simply is a wrong IP address of the DNS  f.ex. But today i had a harder one, but was easy

  • [Linux/Unix] Persist dns nameserver for ubuntu 14.04 2014

    If you are using ubuntu 14.04, you may find you can not setting dns on your /etc/resolv.conf This is because ubuntu using resolvconf to manage the dns setting, every times system boot, resolvconf will regenerate resolv.conf file. But there always have wa

  • [Linux/Unix] Solution: centos6 can't connect to /root/.gnupg/S.gpg-agent 2013

    Today i faced a problem, when i want to git commit -S --signoff for my repository, i recieved error message:can't connect to /root/.gnupg/S.gpg-agent i have done many research, google for more than ten page solution, at last i found the right solution:&nb