In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
I. Preface
Redmine is a web-based project management software developed with Ruby. It is a cross-platform project management system developed with ROR framework. It is said to be derived from the ror version of Basecamp. It supports a variety of databases and has many unique features of its own, such as providing wiki, news stations, etc., and can also integrate other version management systems and BUG tracking systems, such as Perforce, SVN, CVS, TD and so on. This Web form of project management system organizes members, tasks (problems), documents, discussions and various forms of resources together in the form of "Project". Everyone participates in updating tasks, documents and other contents to promote the progress of the project. at the same time, the system uses time clues and various dynamic report forms to automatically report the progress of the project to members.
Second, install dependencies and postgresql databases
1. First, we need to install the following dependencies
[root@bogon ~] # yum-y install zip unzip libyaml-devel zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel gcc ruby-devel gcc-c++ make postgresql-devel ImageMagick-devel sqlite-devel perl-LDAP mod_perl perl-Digest-SHA
2. Then install the Epel source and postgresql database
[root@bogon ~] # yum-y install epel-release [root@bogon ~] # yum-y install postgresql*
3. Initialize the database
[root@bogon ~] # postgresql-setup initdb
4. Set postgresql to boot and start automatically.
[root@bogon ~] # systemctl restart postgresql [root@bogon ~] # systemctl enable postgresql
5. Log in to the database to view the status (can be omitted)
[root@bogon ~] # su-postgres-bash-4.2$ psqlpostgres=#\ du (View roles) postgres=#\ l (list all databases) postgres=#\ Q (exit)
6. Create postgresql users and database instances
[root@bogon ~] # su-postgres-bash-4.2$ createuser redmine create user name-bash-4.2$ createdb-e-O redmine redmine binding username and database instance
7. Set the password for the new user in the database
[root@bogon ~] # su-postgres-bash-4.2$ psqlpostgres=#\ password redmine create a password for user redmine Enter new password: enter password Enter it again: enter password again postgres=# postgres-#\ Q exit-bash-4.2$ exit [root@bogon ~] #
8. Edit the / var/lib/pgsql/data/pg_hba.conf file and add # IPv4 local connections:
Host all all 127.0.0.1 host all all 32 ident ident changed to md5
9. Restart the database to make the new verification method effective
[root@bogon ~] # systemctl restart postgresql
10. New users log in to the database (can be omitted)
[root@bogon] # psql-U redmine-d redmine-h 127.0.0.1Password for user redmine: psql (9.2.15) Type "help" for help.redmine= >
11. Disable selinux
[root@bogon ~] # setenforce 0 this is temporarily turned off and will be automatically turned on when the system is rebooted. Setenforce: SELinux is disabled
Close permanently, edit the / etc/selinux/config file, and set SELINUX to disabled.
Install PHP and PHP related plug-ins, as well as rvm and ruby installation
1. Php dependent installation
[root@bogon ~] # yum-y install php php-mysql php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc php-pecl-apc php-soap
2. Rvm installation
[root@bogon ~] #\ curl-L https://get.rvm.io | bash
3. Add the rvm command to the environment variable of the system
[root@bogon ~] # source / etc/profile.d/rvm.sh
4. Install rubygems
[root@bogon ~] # yum install-y rubygems
5. Remove the official source of ruby and use the rubygems source of Taobao (the official source has been dropped by the wall)
[root@bogon ~] # gem sources-a join Taobao Source [root@bogon ~] # gem sources-remove remove official website source [root@bogon ~] # gem sources-l View rubygems feed
6. View the rvm version and install ruby using rvm
[root@bogon ~] # rvm list known [root@bogon ~] # rvm install 1.9.3 install rvm and Ruby [root @ bogon ~] # ruby-v to view the version of the installed ruby
Download and install redmine
1. Download and decompress
[root@bogon ~] # wget download [root@bogon ~] # unzip redmine-3.3.0.zip decompress [root@bogon ~] # ln-sv redmine-3.3.0 redmine link
2. Configure the information related to the database in the redmine program
[root@bogon ~] # cd redmine/config/ [root@bogon config] # cp database.yml.example database.yml
Edit the database.yml file and modify it as follows:
3. Support for installing rails-related libraries
[root@bogon config] # gem install bundlerFetching: bundler-1.12.5.gem Successfully installed bundler-1.12.5Parsing documentation for bundler-1.12.5Installing ri documentation for bundler-1.12.5Done installing documentation for bundler after 7 seconds1 gem installed [root@bogon config] #
4. Edit the file Gemfile file in the redmine folder
[root@bogon redmine] # vim Gemfile source 'change the source to Taobao Source [root@bogon redmine] # bundle install bundle installation, there may be an error. [root@bogon redmine] # gem update needs to update gem first
5. Create a session installation key
[root@bogon redmine] # rake generate_secret_token
6. Create and initialize all table tables used by redmine
[root@bogon redmine] # RAILS_ENV=production rake db:migrate
7. Load the default configuration information and enter zh (select Chinese)
[root@bogon redmine] # RAILS_ENV=production rake redmine:load_default_data
8. Start redmine
[root@bogon redmine] # rails server webrick-e production
9. Running in the background
[root@bogon redmine] # rails server webrick-e production-d
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.