Ubuntinstallredmineguide (1) Installation redmineroot@www.linuxidc.com :~ # Apt-getinstallredmineredmine-mysqlDoyouwanttocontinue [Y/n]? Y (2) During the installation process, configure the database (3) check whether there is a session in the/etc/redmine/default directory.
Ubunt install redmine guide
(1) install redmine
Root@www.linuxidc.com :~ # Apt-get install redmine-mysql
Do you want to continue [Y/n]? Y
(2) configure the database during installation
(3) check whether the/etc/redmine/default directory contains the session. xml and database. xml files.
(4) run the vim or cat command to open the session. xml file and check whether the database name, user name, and password are correctly set.
(5) If there are no session. xml and database. xml files in the/etc/redmine/default directory, perform the following operations and generate the two files by yourself.
(5.1) Run RAILS_ENV = production rake generate_session_store in/usr/share/redmine/to generate a session key.
(5.2) There is a database under the/usr/share/redmine/templates/directory. yml. template File. Put it in the/etc/redmine/default/directory and change the file name to database. yml, and then open the file to modify the configuration
Production:
Adapter: mysql // Database Type
Database: redmine // database Name
Host: localhost // Database host
Port: 3306 // port
Username: root // database username
Password: root // Database password
Encoding: utf8 // encoding
Note: You need to manually create the database redmine
Then run RAILS_ENV = production rake db: migrate under/usr/share/redmine/to generate the database structure and initial data.
(6) This step is to create the log folder and log file, create a folder log under the/usr/share/redmine directory, and create an empty file under the log folder, the file name is production. log
(7) Start redmine and execute it under the command line.
Sudo/usr/share/redmine/script/server-e production
Ps: To be executed as a service
Sudo/usr/share/redmine/script/server-e production-d
(8) set the redmine listening IP address and port
Vim/usr/share/redmine/vendor/rails/railties/lib/commands/server. rb
Options = {
: Port => 3000,
: Host => "0.0.0.0 ",
: Environment => (ENV ['rails _ env'] | "development"). dup,
: Config => RAILS_ROOT + "/config.ru ",
: Detach => false,
: Debugger => false,
: Path => nil
}
(9) set the default start language to Chinese.
Vim/usr/share/redmine/config/settings. yml
Default_language:
Default: zh