`
文章列表
http://blog.sina.com.cn/s/blog_5b1ae38b0101hxgh.html

centos6.5 更换163源

1, cd /etc/yum.repos.d 2. mv CentOS-Base.repo CentOS-Base.repo.backup 3. wget http://mirrors.163.com/.help/CentOS6-Base-163.repo 4. mv CentOS6-Base-163.repo CentOS-Base.repo 5. yum clean all 6. yum update
fatal: unable to connect to github.com: 解决: git config --global url."https://".insteadOf git://
Downloading http://cdn.bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2 Saving to /tmp/phantomjs/phantomjs-1.9.7-linux-x86_64.tar.bz2 总是超时,解决,下载phantomjs-1.9.7-linux-x86_64.tar.bz2放在/tmp/phantomjs/下,重新编译就过去 下载地址: https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1 ...
libxml2 is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies. 解决: sudo apt-get install libxslt-dev libxml2-dev 再运行: `gem install nokogiri -v '1.5.6' 成功
sudo locale-gen en_US.UTF-8 sudo vim /etc/default/locale 删除全部,添加如下 LC_ALL="en_US.UTF-8" source /etc/default/locale 或者 export LANGUAGE=en_US.UTF-8 export LANG=en_US.UTF-8 export LC_ALL=en_US.UTF-8 或者 vim .profile 加入 export LANGUAGE=en_US.UTF-8 export LANG=en_US.UTF-8 export LC_ALL=en_U ...
http://gudh.github.io/ihover/dist/index.html
ubuntu vim 编程好帮手 sudo apt-get install terminator
Nginx: To put EL behind reverse proxy (in this case Nginx), you will need an virtualhost that looks something like this: server {     listen       80;     server_name  your.domain.tld;     access_log   /var/log/nginx/your.domain.tld.log;     error_log    /var/log/nginx/your.domain.tld.log;     loca ...
gem uninstall bundler -v=1.6.2 因为使用rvm 安装的ruby,会提示: ERROR:  While executing gem ... (Gem::InstallError)     bundler is not installed in GEM_HOME, try: gem uninstall -i /home/vagrant/.rvm/gems/ruby-1.9.3-p545@global bundler [vagrant@vagrant-centos65 canvas-centos]$ gem uninstall -i /home/vagrant/.rv ...
http://www.csdn123.com/html/tag/cdc872db616ac66adb3166c75e9ad183.htm
创建数据时候,因为之前系统编码问题,导致PostgreSQL数据库enconding不是UTF8,不是UTF8项目写入中文时候会报错,目前解决的丑陋办法是,把数据库删除,有数据的可以到处数据先再删除,然后在创建数据库时候指定UTF8 sudo -u postgres createdb -E UTF8 -T template0 canvas_queue_production  --owner=canvas --locale=en_US.utf8 参考:http://stackoverflow.com/questions/8351436/change-lc-ctype-for-postgresq ...

ubuntu设置DNS

ubuntu设置DNS。重启也有效的方法 方法一 (我是没有成功,,不知是不是我设置有问题)通过/etc/network/interfaces,在它的最后增加一句: dns-nameservers 8.8.8.8 8.8.8.8是Google提供的DNS服务,这里只是举一个例子,你也可以改成电信运营商的DNS。重启后DNS就生效了,这时候再看/etc/resolv.conf,最下面就多了一行: # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) #     DO NOT EDIT THIS ...
当 vagrant box add xxx url 时候,出现 Download failed. Will try another box URL if there is one. An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again. Failed writing body (0 != 16383) 解决办法: sudo chown youruser:youruser -R ...

SCP 命令

http://www.cnblogs.com/hitwtx/archive/2011/11/16/2251254.html
Global site tag (gtag.js) - Google Analytics