NRS EC2 - Help Page
NRS EC2 ID
The ami-id to use for NRS EC2 is: ami-7a628713
EC2 Links
Getting Started Steps
1. Follow the steps in Amazon EC2 Getting Started Guide. For the running an instance section, refer to the following steps below.
2. Make sure you have created a key-pair using the API ec2-add-keypair, for example called "nrskey"
3. Launch an instance of NRS: ec2-run-instances ami-7a628713 -k nrskey
4. Wait for your instance to start running by checking with: ec2-describe-images. Look for the hostname that looks like: "ec2-67-212-61-187.compute-1.amazonaws.com"
5. Open ports on the firewall of your account:
| Command | Port Description |
| ec2-authorize default -p 22 | For SSH |
| ec2-authorize default -p 80 | For nginx webserver |
| ec2-authorize default -p 2012 | For NRS direct access |
| ec2-authorize default -p 10000 | For webmin |
6. Use your ssh tool to open a shell. Login using "root" username. Your "nrskey" will do the authentication for you.
7. Start all the web applications by typing the command: webstart
Your instance of NRS EC2 is now running nginx webserver, NRS with a reverse proxy into the nginx website, and webmin. The webmin username is "webmin99" and password is "sp@n99". To change the webmin password, run: "/usr/libexec/webmin/changepass.pl /etc/webmin webmin99 NEWPASSWORD".
Once NRS EC2 is running, you can access the admin page either at http://<your-ami-public-instance-url>/admin, or http://<your-ami-public-instance-url>:2012/admin. Use admin to create your collections, create template pages that provide search interfaces, import directories/wiki, and more.
Diskspace
NRS EC2 runs out of the /var/nrs directory. If you plan to build a large index, you will have to move to the large drive on /mnt. To do so, modify the path in the start command of /etc/init.d/nrs from /var/nrs to /mnt/nrs and move /var/nrs to /mnt/nrs:
/etc/init.d/nrs stop
vi /etc/init.d/nrs [modify /var/nrs to /mnt/nrs]
mv /var/nrs /mnt
/etc/init.d/nrs start
Backups
Each time you start an instance of NRS EC2, it is necessary to restore your website files to the /var/www/public_html directory, restore your NRS databases to the /var/nrs directory, and change your webmin password. You can then start the web applications using the "webstart" command.
|