1. Install RubyCAS. Before installation, make sure that your machine has ruby 1.8.4 or an updated version. In shell, enter: gem install rubycas-server
2. After the installation is successful, see the following Directory D:/Ruby/lib/ruby/gems/1.8/gems/rubycas-server-0.6.0, the installation is successful
3. Run D:/Ruby/lib/ruby/gems/1.8/gems/rubycas-server-0.6.0/bin/rubycas-server in cmd to start the cas server;
4. when you run the cas server for the first time, the report "/etc/rubycas-server/config. yml "error, because when starting the cas server, will go to D:/Ruby/lib/ruby/gems/1.8/gems/rubycas-server-0.6.0/lib/casserver. read $ CONFIG_FILE in rb | = '/etc/rubycas-server/config. yml' file to obtain some configuration information, such as the rails web server, port, database connection, and eye political policy. because we do not have/etc/rubycas-server/config. yml path, so an error will be reported when this file is loaded;
5. to Solve Problem 4, there is an example configuration file config in D:/Ruby/lib/ruby/gems/1.8/gems/rubycas-server-0.6.0. example. yml, we can copy a config in this path. example. yml, and rename it your favorite file name, such as config. yml, then modify $ CONFIG_FILE in D:/Ruby/lib/ruby/gems/1.8/gems/rubycas-server-0.6.0/bin/rubycas-server | = D: /Ruby/lib/ruby/gems/1.8/gems/rubycas-server-0.6.0/config. yml
6. Run rubycas-server again. Your cas server will start normally;
7. Verify that http: // localhost: 443 is normal;
Error handling:
Cocould not find RubyGem hoe (> = 1.7.0) (Gem: LoadError ).
This error is because you have not installed hoe. You can go to baidu to find out how to install this gem package.