首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > Ruby Rails >

ror装配

2012-12-18 
ror安装fedora 14 1. 安装Rubyyum install ruby ruby-libs ruby-devel ruby-rdoc ruby-mysql ruby-irb2.

ror安装
fedora 14

1. 安装Ruby

yum install ruby ruby-libs ruby-devel ruby-rdoc ruby-mysql ruby-irb
2. 安装gems

yum install rubygems

3. 安装Rails

gem install rails --version 2.2.2      版本2.2.2

4.安装LAMP
apache
yum install httpd httpd-devel
etc/init.d/httpd start

mysql
yum install mysql mysql-server mysql-devel
/etc/init.d/mysqld start

设置密码
mysql> USE mysql;
mysql> UPDATE user SET Password=PASSWORD('newpassword') WHERE user='root';
mysql> FLUSH PRIVILEGES;
登陆
mysql -u root -p
Enter Password: <your new password>
创建一个用户管理数据库
mysql > create database demo
mysql >GRANT ALL PRIVILEGES ON demo.* TO 'guest'@'localhost' IDENTIFIED BY 'guest' WITH GRANT OPTION;
mysql> UPDATE user SET Password=PASSWORD('guest') WHERE user='guest';

安装php
yum install php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml

etc/init.d/httpd restart

设置开机启动
chkconfig httpd on
chkconfig mysqld on

5.安装netbeans 6.9.1 java... 省略

热点排行