
Linux/Unix
文章平均质量分 70
LarryInTokyo
这个作者很懒,什么都没留下…
展开
-
CentOS上安装配置Ruby on Rails
0.install sublime editor(optional)ref:http://www.tecmint.com/install-sublime-text-editor-in-linux/1.install git$sudo yum install git$git --verison2.install rbenv$ git clone https://git原创 2015-06-28 15:42:25 · 1848 阅读 · 0 评论 -
配置远程连接mysql数据库 Connect to remote mysql database
设有本地机器(local machine), ip地址为localip远程机器(remote machine), ip地址remoteip要通过在local machine的终端连接remote machine的mysql数据库,并且对数据库进行操作。1.在local和remote均安装好mysql,安装方法参考另一篇博客。2.在本地ssh连接到远程host$ ssh remoteus原创 2015-07-07 22:10:28 · 3503 阅读 · 0 评论 -
生成ssh公有密钥并且注册到Github Generate ssh rsa keys and register public key on Github
私有密钥和公有密钥是成对的两个文件,私有文件保存在自己的本机,公有密钥保存到另一端的服务器,网站等。github就是一种网站。只有保存了私有密钥的机器才能访问远程的服务器等。使用该键的好处是不用使用密码,而是以密钥的方式验证用户。要想使本机能访问github。有两个步骤:1. 创建私有密钥和公有密钥2. 将公有密钥放到github里。3. 测试是否设置成功。步骤1:首先判断本机原创 2015-06-28 17:04:19 · 2500 阅读 · 0 评论 -
在heroku上使用远程mysql Connect To Remote MySQL Database From Heroku
0.bundle install --without devlopment, test, docbundle updatebundle installgit add .git commit -m ""git push -u origin master1. $heroku login2. $heroku create3. $git push heroku master4.0原创 2015-07-14 21:24:20 · 1796 阅读 · 0 评论 -
CentOS下安装使用phpMyAdmin. Set up phpMyAdmin on CentOS
需要组件:ApachePHPMysqlphpMyAdminApache0. yum install httpd1. 确认版本$ httpd -v2. 启动apache$ sudo service httpd start (http://xxx.xxx.xxx.xxx shows apache info)3.设定自动启动(optional)$ sudo chkconfig原创 2015-07-17 00:07:36 · 1247 阅读 · 0 评论 -
Mac下安装使用phpMyAdmin. Set up phpMyAdmin on MacOSX
需要组件:ApachePHPMysqlphpMyAdminApache1. 确认版本$ httpd -v2. 启动apache$ sudo apachectl restart 或者$ sudo /usr/sbin/apachectl start3.设定自动启动(optional)$ sudo launchctl load -w /System/Library/Launch原创 2015-07-14 21:17:23 · 937 阅读 · 0 评论 -
Ruby on Rails 使用mysql数据库 use local and remote mysql in development production environments in Ruby o
将Ruby on Rails 使用的数据库由默认的SQLite改成Mysql,并且配置development为本地mysql,production为远程mysql。1.修改config/database.yml$ cd config$ cp -p database.yml database.yml.old$ vim database.yml将当前内容替换为以下内容。dabase原创 2015-07-07 22:39:45 · 1442 阅读 · 0 评论 -
通过ssh特定账户的密钥访问远程host
分为以下几个步骤1.local host生成RSA公有密钥和私有密钥2.local host私有密钥配置3.将公有密钥发送至remote host并配置步骤1:本机执行$ssh-keygen -t rsa可填写密钥名,如vps_rsa.passphrase可直接按enter。结束后可使用以下命令查看生成的私有密钥和公有密钥$ls ~/.ssh/里面的vps_rsa 和vps原创 2015-06-28 18:02:04 · 1835 阅读 · 0 评论