 
        
         
        2015年10月27日
    
 
        
        
摘要:        
以前只是了解Nodejs 这回打算好好学学。学到熟练使用的程度var options={ user:'test_user', pass:'123456'};mongoose.connect('mongodb://127.0.0.1/test',options);var User = mongoo...    
阅读全文
            posted @ 2015-10-27 20:11
c3tc3tc3t
阅读(194)
推荐(0)
        
            
        
        
摘要:        
icosudo add-apt-repository ppa:nitrux-team/nitrux-artworksudo apt-get updatesudo apt-get install nitrux-icon-themetheme wget http://gnome-look.org/CON...    
阅读全文
            posted @ 2015-10-27 20:09
c3tc3tc3t
阅读(176)
推荐(0)
        
 
		
    
        
             
        
         
        2015年9月11日
    
 
        
        
摘要:        
原文 : https://robots.thoughtbot.com/how-to-use-arguments-in-a-rake-tasknamespace :tweets do desc 'Send some tweets to a user' task :send, [:username]...    
阅读全文
            posted @ 2015-09-11 15:07
c3tc3tc3t
阅读(330)
推荐(0)
        
 
		
    
        
             
        
         
        2015年7月12日
    
 
        
        
摘要:        
1 要安装js运行环境,例如Nodejs,如果使用nvm记得,安装完执行nvm use '版本号'2或者在Gemfile文件中加入:gem 'execjs'gem 'therubyracer'然后bundle install,再去执行rails s就成功了。3修改Gemfile文件的source '...    
阅读全文
            posted @ 2015-07-12 06:40
c3tc3tc3t
阅读(165)
推荐(0)
        
 
		
    
        
             
        
         
        2015年7月10日
    
 
        
        
摘要:        
今天遇到的问题,是使用gem install mysql遇到的。报下面的错误Building native extensions. This could take a while...ERROR: Error installing mysql2:ERROR: Failed to build gem ...    
阅读全文
            posted @ 2015-07-10 15:49
c3tc3tc3t
阅读(243)
推荐(0)
        
            
        
        
摘要:        
编译安装mysql1 查找系统是否安装了myql rpm -q mysql mysql-server1.1如果安装了。就删除 sudo yum -y remove mysql mysql-server sudo rm -rf /etc/my.cnf2 安装依赖 sudo yum install...    
阅读全文
            posted @ 2015-07-10 10:34
c3tc3tc3t
阅读(180)
推荐(0)
        
            
        
        
摘要:        
1 在appplications中添加一个desktop文件sudo gedit /usr/share/applications/xdbe.desktop2 在desktop文件中添加如下[Desktop Entry]Name=xdbeComment=databaseToolsExec=/home/...    
阅读全文
            posted @ 2015-07-10 10:12
c3tc3tc3t
阅读(381)
推荐(0)
        
 
		
    
        
             
        
         
        2015年7月9日
    
 
        
        
摘要:        
1 安装git ,按照这篇文章安装http://www.cnblogs.com/or2-/p/4350252.html2 安装编译需要的各种包sudo apt-get install build-essential cmakesudo apt-get install clangsudo apt-ge...    
阅读全文
            posted @ 2015-07-09 20:49
c3tc3tc3t
阅读(423)
推荐(0)
        
 
		
    
        
             
        
         
        2015年6月25日
    
 
        
        
摘要:        
iso放入光驱(虚拟机光驱)后,设备目录是/dev/sr0 表示光驱,被挂载道 /run/media/c4t/CentOS\ 7\ x86_64目录下[c4t@localhost ~]$ df文件系统 1K-块 已用 可用 已用% 挂载点/dev/sda1 ...    
阅读全文
            posted @ 2015-06-25 22:05
c3tc3tc3t
阅读(357)
推荐(0)
        
            
        
        
摘要:        
虚拟机中的centos7安装vbox的增强工具报错Building the main Guest Additions module [FAILED]查看日志发现unable to find the sources of your current Linux ker...    
阅读全文
            posted @ 2015-06-25 20:10
c3tc3tc3t
阅读(564)
推荐(0)