CentOS下配置Ruby on Rails并部署Redmine
时间:2014-07-24 22:10 来源:linux.it.net.cn 作者:it
git
确保已安装了依赖的包:
-
yum install curl
-
yum install curl-devel
-
yum install zlib-devel
-
yum install openssl-devel
-
yum install perl
-
yum install cpio
-
yum install expat-devel
-
yum install gettext-devel
下载git包并编译安装:
-
wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
-
tar xzvf git-latest.tar.gz
-
cd git-2011-11-30 #你的目录可能不是这个
-
autoconf
-
./configure
-
make
-
sudo make install
查看git版本:
-
git --version
1.ruby
-
sudo yum install ruby
2.rails
-
gem install rails
3.mysql
-
[root@xiaoluo ~]# yum install -y mysql-server mysql mysql-devel
-
-
-
[root@xiaoluo ~]# rpm -qi mysql-server
-
-
-
[root@xiaoluo ~]# service mysqld start
-
[root@xiaoluo ~]# service mysqld restart
-
[root@xiaoluo ~]# chkconfig --list | grep mysqld
-
mysqld 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭
-
[root@xiaoluo ~]# chkconfig mysqld on
-
[root@xiaoluo ~]# chkconfig --list | grep mysql
-
mysqld 0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭
-
[root@xiaoluo ~]# mysqladmin -u root password 'root' // 通过该命令给root账号设置密码为 root
4.Redmine
1)mysql
2)Database connection configuration
Example for a MySQL database using ruby 1.9 (adapter must be set to mysql2
):
3)Dependencies installation
If ImageMagick is not installed on your system, you should skip the installation of the rmagick gem using:
4)Session store secret generation
-
with Redmine 2.x:
5) Database schema objects creation
6) Database default data set
7)File system permissions
The user account running the application must have write permission on the following subdirectories:
-
files
(storage of attachments)
-
log
(application log file production.log
)
-
tmp
and tmp/pdf
(create these ones if not present, used to generate PDF documents among other things)
-
public/plugin_assets
(assets of plugins)
E.g., assuming you run the application with a redmine user account:
8) Test the installation
-
with Redmine 2.x:
Use default administrator account to log in:
-
login: admin
-
password: admin
You can go to Administration menu and choose Settings to modify most of the application settings.
(责任编辑:IT)
git 确保已安装了依赖的包:
下载git包并编译安装:
查看git版本:
1.ruby
2.rails
3.mysql
4.Redmine 1)mysql 2)Database connection configuration
Example for a MySQL database using ruby 1.9 (adapter must be set to 3)Dependencies installation
If ImageMagick is not installed on your system, you should skip the installation of the rmagick gem using: 4)Session store secret generation
6) Database default data set
7)File system permissions
The user account running the application must have write permission on the following subdirectories:
E.g., assuming you run the application with a redmine user account: 8) Test the installation
Use default administrator account to log in:
You can go to Administration menu and choose Settings to modify most of the application settings. |