1. install dependency apt-get install-y build-essential irb libmysql-ruby libmysqlclient-dev libopenssl-ruby libreadline-ruby mysql-server rake rdoc ri ruby ruby-dev2. install rubygems download rubygems-1.3.7.tgz
Http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz
Unzip and install
Ruby setup. rb3.Create gem as an alternative name for the gem1.8 command: update-alternatives -- install/usr/bin/gem/usr/bin/gem1.8 14. create database dashboard character set utf8;
Create user 'dashboard' @ 'localhost' identified by '20140901 ';
Grant all privileges on dashboard. * TO 'dashboard' @ 'localhost'; 5. Configure/etc/puppet-dashboard/database. yml
Modify the following fields:
Production:
Database: dashboard
Username: dashboard
Password: 123
Encoding: utf8
Adapter: mysql6.Preparing Schemacd/usr/share/puppet-dashboard
Rake RAILS_ENV = production db: migrate7. create a Dashboard user to create a group
Groupadd dashboard
Create user
Useradd dashboard -- no-create-home-g dashboard8. start puppet dashboard (WEBrick is not recommended, and the speed is extremely slow)/usr/share/puppet-dashboard/script/server-e production
Modify/etc/puppet. conf on the puppet master machine and add
[Master]
Reports = store, http
Reporturl = http: // localhost: 3000/reports/upload
# Node_terminus = exec
# External_nodes =/usr/bin/env PUPPET_DASHBOARD_URL = http: // localhost: 3000/opt/puppet-dashboard/bin/external_node9. Start puppet Dashboard (use thin, extremely fast response) http://rubygems.org/gems/thin/versions/1.6.2
Download the three runtime dependencies gem packages and thin gem packages, and install them in sequence.
Install with gem install-l * .. gem
Start thin
Sudo-u dashboard thin start-e production &
Run the preceding command in the/usr/share/puppet-dashboard directory 10. Start and manage the delayed job workers
Sudo-u dashboard env RAILS_ENV = production script/delayed_job-p dashboard-n 4-m start
The interface is as follows: