In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Service status
Address: http://ip:3000
Mainly use the redmine (rails) service, mysql service, and some other services!
Basic environment
Yum install-y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel
Yum-y install mysql-server mysql mysql-devel
Install rvm (reference: http://blog.csdn.net/mydo/article/details/47748211)
Mkdir rvm
Cd rvm
Gpg-keyserver hkp://keys.gnupg.net-recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
Curl-O https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer
Curl-O https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer.asc
Gpg-verify rvm-installer.asc & &
Bash rvm-installer stable
Rvm-v
Sed-I-e 's/ftp\ .ruby-lang\ .org / pub\ / ruby/ruby\ .taobao\ .org\ / mirrors\ / ruby/g' / usr/local/rvm/config/db
Rvm list known # to see what is available
Rvm install 2.3
Rvm 2.3.3-default
Ruby-v
Gem-v
Set gem source (reference: https://ruby.taobao.org/)
Gem sources-add https://gems.ruby-china.org/-remove https://rubygems.org/
Gem sources-l
Please make sure that only gems.ruby-china.org
Gem install rails
Ps: if gem cannot be added, you can modify vi / etc/resolv.conf to keep only nameserver 114.114.114.114, and then add it again.
Rails-v
Enter the conf of redmine, cp out a database.yml, and then modify the contents of production, refer to the following
Production:
Adapter: mysql2
Database: redmine
Host: localhost
Username: root
Password:
Create database redmine character set utf8
Mysql-u root-p redmine < xxxx.sql
Go to the root directory of redmine and execute the following command
Gem install bundler
Bundle install-without development test rmagick
Bundle exec rake generate_secret_token
Rake db:migrate RAILS_ENV=production
If there is a plug-in update: bundle exec rake db:migrate:upgrade_plugin_migrations RAILS_ENV=production rake db:migrate_plugins RAILS_ENV=production
Rake tmp:cache:clear
Rake tmp:sessions:clear
Command to start redmine3:
Bundle exec rails server webrick-e production-b 0.0.0.0-d
Linux Firewall blocks port 3000
Solution: configure firewall and open wide port 3000
# / sbin/iptables-I INPUT-p tcp-- dport 3000-j ACCEPT
# / etc/rc.d/init.d/iptables save
# service iptables restart
Redmine runs slowly:
Modify configuration.yml
Find delivery_method:: smtp and change smtp to async_smtp
Restart the service. This is changed to asynchronous.
Custom menu plug-in installation
Extract zip and upload it to redmine's plugins directory. The plug-ins are as follows
Custom_menu.zip
Execute the following commands in the redmine root directory
Git clone https://bitbucket.org/dkuk/a_common_libs.git
Bundle install
Rake redmine:plugins:migrate RAILS_ENV=production
Then restart redmine.
Finally, you can configure it in the Management plug-in.
Statistical chart plug-in
Redmine plugin directory execution: git clone https://github.com/masweetman/issue_charts.git
Go back to the root directory and execute:
Bundle install
Rake redmine:plugins:migrate RAILS_ENV=production
Restart
Picture Preview plug-in
Redmine plugin directory execution: git clone https://github.com/paginagmbh/redmine_lightbox2.git
Go back to the root directory and execute: rake redmine:plugins:migrate RAILS_ENV=production
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.