`
coolesting
  • 浏览: 12279 次
  • 性别: Icon_minigender_1
  • 来自: 广州
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
安装 难点主要是关联扩展, 这个没装会报错 yum install libevent libevent-devel gem install thin 运行 假如公网ip 10.21.133.2,   (cd入config.ru的根目录) thin start -a 10.21.133.2 -p 80 -R config.ru 放后台运行, thin start -a 10.21.133.2 -p 80 -R config.ru -d 停服务器thin thin stop 重启 thin restart
第一, 以aliyun的centos 6.2 安全加固版为例, 先装编译器, 有编译器可以跳过这步 vi /etc/yum.conf 注解掉 #exclude=kernel* 然后安装 yum install gcc gcc-c++ make git patch 第二, 安装ruby的关联扩展 ruby2.0要一个libyaml的库, 添加库源, 注意查看版本架构是i368还是x86_64, 命令"uname -a" rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6 rpm -Kih ...
好几次遇到错误, 在github上发帖, 几个小时就有人回复说错误被修复, 应用已更新。 github应用群和社区真是强大, 也是开源的强大之处。 特发此帖。

git usage

    博客分类:
  • git
checkout a file from repository git checkout HEAD^1 <filename> or git checkout <HASH NAME> <filename> reset the checkout git reset --hard <HASH NAME> add tag git tag -a v0.0.1 -m 'version 0.0.1' git push origin v0.0.1

my vimrc

    博客分类:
  • vim
"basic operation set autoindent set ts=4 cmap Q q cmap W w cmap WQ wq cmap Wq wq cmap tn tabnew map <C-h> ^ map <C-l> $ map <C-k> { map <C-j> } "search, and replace the string or text vnoremap ,s y/<C-R>"<CR> vnoremap ,r y:% ...
How to build a rubygems How to build ruby DSL app
Fixing the openssl extension after the ruby installation. # yum install openssl-devel.i686 openssl.i686 # cd /path/to/ruby_install_package/ext/openssl/ # ruby extconf.rb --with--openssl=/usr/bin/openssl --with--openssl-lib=/usr/lib/openssl # make && make install
Sometime the system will loses some packages for installing the ruby, here is the CentOS, the following denpendenices is nesscary . Donwloading ruby package from http://www.ruby-lang.org/en/downloads/ Step 1 install the dependenicy packages of system and ruby #su #yum install openssl* gcc-c++ z ...
Solution 1 : Coping this  http://redmine.lighttpd.net/wiki/1/ScriptsUbuntu to your folder /etc/init.d/lighttpd, and fix the path in that file as the following. USER=www-data GROUP=www-data PATH=/sbin:/bin:/usr/sbin:/usr/bin LIGHTY_DAEMON=/usr/local/lighttpd/sbin/lighttpd LIGHTY_OPTS="- ...
Step 0 System envrionment , Ubuntu 10.04 Downloading from http://www.lighttpd.net/download Step 1 sudo su tar -xf lighttpd-1.4.29.tar.gz cd lighttpd-1.4.29 Step 2 installing dependencies apt-get install libssl-dev zlib1g-dev libbz2-dev libattr1-dev libpcre3-dev libmysqlclient15-dev libfam-dev ...
sudo apt-get install build_essential libmysqlclient15-dev libmysqld-dev sudo gem install mysql more details please check this link http://www.ruby-forum.com/topic/133380#new
RVM安装ruby系统应用免除编译安装的痛苦, 方便快捷。 su password(...密码) $ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) $ echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile $ ln -sf /usr/local/rvm /root/.r ...
环境: ubuntu10.04, ruby1.9.2, gem1.8.5, rails3等 1. 下载包 ruby下载: http://www.ruby-lang.org/en/downloads/ gem下载: http://rubyforge.org/frs/?group_id=126 1.1 安装依赖包 和 ruby $ sudo su (entering the password) # aptitude install build-essential libssl-dev libreadline5 libyaml-ruby libreadline5-dev zlib1g zlib ...
Global site tag (gtag.js) - Google Analytics