In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
The ultimate goal is to target two open source project management systems, Zen Tao and Redmine, both of which are excellent, and my requirements are very simple-I can submit, track, and feedback bug, both of which are competent. Although this article is about the installation and use of Redmine, for most users, Zen Tao may be a better choice, because it has both bug management functions and more emphasis on project management, and most importantly, its installation is very simple and almost done with one click. The installation and deployment of Redmine is by no means a simple task.
First of all, prepare the files related to Ruby, Redmine is based on Ruby on rails development. 1. Download railsinstaller. The version I downloaded is railsinstaller-2.2.1.exe, and the corresponding official website: http://railsinstaller.org/en railsinstaller greatly simplifies the installation of rails. In addition to those under windows, there are also installation packages under iMac.
2. Download wamp and integrate apache,MySQL,php, which is very easy to use. The corresponding official website is: http://www.wampserver.com/en/
Web site deployment generally requires wamp, that is, the windows+apache+mysql+php environment. Popular integrated environments have two wampserver and xampp, where wampserver is used
3, download ImageMagick, this is a pattern generation tool, redmine is used to generate pdf and other content, may not be installed. I had some problems installing this thing, so I didn't install it.
4. The source file of redmine. What is downloaded here is redmine2.3.3, and the download list of the release version is http://rubyforge.org/frs/?group_id=1850.
Once the installation files are ready, you can begin the installation.
1. Install railsinstaller. If you don't need to select a directory, just install it all the way.
2. To install wamp, install vc2010's environment vcredist_x86.exe first, and then install wamp. If you don't need to select a directory, just install it all the way.
3. Extract redmine to c:\ redmine (you can extract the directory yourself)
4. Install mysql2 under ruby. Here you use mysql in wamp. Here, wamp is installed by default, that is, it is installed under the c:\ wamp directory over there. The directory of mysql is C:\ wamp\ bin\ mysql\ mysql5.6.12. Copy the libmysql.dll and libmysqld.dll under C:\ wamp\ bin\ mysql\ mysql5.6.12\ lib to c:\ windows\ system32
Go to the dos command prompt and type
Gem install mysql2 -'- with-mysql-lib= "C:\ wamp\ bin\ mysql\ mysql5.6.12\ lib"-with-mysql-include= "C:\ wamp\ bin\ mysql\ mysql5.6.12\ include"'
Note: the header file and library file directory corresponding to mysql are required here, otherwise the installation will fail. Enter gem list and you can see the version number corresponding to mysql2
5. Configure the database to run wamp, and then configure apache, as shown below
Then find the directory configuration in the configuration and change Allow from 127.0.0.1 to Alloc from all, as shown in the following figure
Then modify the phpmyadmin.conf under C:\ wamp\ alias to set the
Options Indexes FollowSymLinks ExecCGIAllowOverride allOrder Deny,AllowDeny from allAllow from 127.0.0.1Allow from:: 1Allow from localhost
Change Allow from 127.0.0.1 in to Alloc from all, and then restart wamp so that the local area network can operate on mysql.
My ip here is 192.168.1.30. Enter http://192.168.1.30/phpmyadmin/ in the browser address bar, so you can enter the phpmyadmin operation. Here, root has no password by default, so change the password of root to helloredmine first (adjust it yourself)
6. Prepare the redmine database
Operate sql in phpmyadmin
CREATE DATABASE redmine CHARACTER SET utf8
CREATE USER 'redmine'@'localhost' IDENTIFIED BY' my_password'
GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost'
7. Configure the database of redmine
In the c:\ redmine\ config directory, copy database.yml.example to database.yml, and then edit it to configure.
Find the production entry and configure it as follows: (since it is the default, all you need to do here is to configure the password)
Production:
Adapter: mysql2
Database: redmine
Host: localhost
Username: root
Password: 123456
Encoding: utf8
8. Install redmine at the dos command prompt, we go to the c:\ redmine directory and execute
Bundle install-without development test postgresql sqlite
Note: if during the installation process, it is possible that individual installations cannot be installed due to network problems, then use gem install xxxxx to install the specified one, and then execute the above bundle install command after the installation is complete. Until the installation is complete.
The results of the successful installation are as follows
Then enter rake generate_secret_token to set up sessiond encrypted storage
9. The database that initializes redmine is at the DOS command prompt, enter the following command
Set RAILS_ENV=production
Rake db:migrate
Enter the following command, and the default language will be set here
Set RAILS_ENV=production
Set REDMINE_LANG=zh
Rake redmine:load_default_data
As shown in the following figure, it is complete.
10. Run at the DOS command prompt, enter: ruby script/rails server webrick-e production
Install successfully, then in the browser, type
Http://192.168.1.30:3000
You can see the redmine home page, the initial administrator's account is admin, the password is admin, and then you can go in and play. The installation is complete at this point. If you also need to configure email and svn, please participate in the installation guide http://www.redmine.org/projects/redmine/wiki/RedmineInstall prompted on the official website.
Supplementary notes to some frequently asked questions:
If you are lucky enough, you can go smoothly from the first step to the tenth step. Here are some of the problems I have encountered.
1. Gem install mysql2 may not be installed successfully because of network problems. Just try it a few more times.
2. Normally, the WAMP Server system tray icon should be green. If not, some services may have failed to start. The most common is that port 80 conflicts cause the apache service to fail to start. I encountered a situation because I had previously installed xamp, so the two apache collided. It will be normal after deleting xamp. To delete xamp, you need to shut down all related services.
3. Mysql does not have a password by default. You can change your password by logging in to the mysql console and then using SQL statements
Mysql > use mysql
Mysql > UPDATE user SET Password = PASSWORD ('123456') WHERE user =' root'
Mysql > FLUSH PRIVILEGES
123456 of them are the new passwords. Note here that the semicolon at the end of the sql statement is not omitted. And sql execution may fail, try a few more times.
4. After changing the mysql password, the login password corresponding to php should also be changed, otherwise the access will be denied. The path to the configuration file is
C:\ wamp\ apps\ phpmyadmin4.0.4\ config.inc.php is added to it
$cfg ['Servers'] [$I] [' AllowNoPassword'] = false
$cfg ['Servers'] [$I] [' user'] = 'root'; / / the mysql user name used by MySQL user to access phpmyadmin
$cfg ['Servers'] [$I] [' password'] = '123456password; / / MySQL password (only needed corresponds to the password of the above mysql user name
5. The path of redmine's mysql login password configuration file is
C:\ redmine\ config\ database.yml
Production:
Adapter: mysql2
Database: redmine
Host: localhost
Username: root
Password: 123456
Encoding: utf8
Since we are using production, it is enough to focus on this. Here, corresponding to step 9 above, initialize the redmine database. If you can't see the redmine database in phpMyAdmin, this is where the problem occurs.
6. Deployed and can be accessed normally. The default administrator account and password are admin. All new accounts need to be activated through the administrator account before they can be used normally.
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.