/[gentoo]/xml/htdocs/doc/en/jffnms.xml
Gentoo

Diff of /xml/htdocs/doc/en/jffnms.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.8 Revision 1.9
1<?xml version="1.0" encoding="UTF-8"?> 1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/jffnms.xml,v 1.8 2007/10/11 20:07:45 nightmorph Exp $ --> 3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/jffnms.xml,v 1.9 2008/03/18 04:30:57 nightmorph Exp $ -->
4 4
5<guide link="/doc/en/jffnms.xml" lang="en"> 5<guide link="/doc/en/jffnms.xml" lang="en">
6<title>Jffnms Installation and Setup Guide</title> 6<title>Jffnms Installation and Setup Guide</title>
7 7
8<author title="Author"> 8<author title="Author">
17 17
18<!-- The content of this document is licensed under the CC-BY-SA license --> 18<!-- The content of this document is licensed under the CC-BY-SA license -->
19<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 19<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
20<license/> 20<license/>
21 21
22<version>1.4</version> 22<version>1.5</version>
23<date>2007-10-11</date> 23<date>2008-03-17</date>
24 24
25<chapter> 25<chapter>
26<title>Jffnms Basics</title> 26<title>Jffnms Basics</title>
27<section> 27<section>
28<title>Introduction</title> 28<title>Introduction</title>
249you boot your computer. 249you boot your computer.
250</p> 250</p>
251 251
252<pre caption="Adding PostgreSQL to the default runlevel"> 252<pre caption="Adding PostgreSQL to the default runlevel">
253# <i>rc-update add postgresql default</i> 253# <i>rc-update add postgresql default</i>
254 * postgresql added to runlevel default
255 * rc-update complete.
256</pre> 254</pre>
257 255
258<p> 256<p>
259Now you must setup the PostgreSQL database. 257Now you must setup the PostgreSQL database.
260</p> 258</p>
277<title>Using PostgreSQL as database</title> 275<title>Using PostgreSQL as database</title>
278<body> 276<body>
279 277
280<p> 278<p>
281Once you have your PostgreSQL set up and running, you have to create a Jffnms 279Once you have your PostgreSQL set up and running, you have to create a Jffnms
282user and a database to store host data. We provide files to do both. 280user and a database to store host data.
283</p>
284
285<note>
286If you don't use <path>/usr/portage</path> as your Portage dir ($PORTDIR) you
287have to change the last part of these commands to whatever your Portage dir
288is.
289</note>
290
291<pre caption="Creating Jffnms user">
292# <i>psql template1 postgres &lt; /usr/portage/net-analyzer/jffnms/files/postgresql_db</i>
293</pre> 281</p>
294 282
295<pre caption="Creating Jffnms database"> 283<pre caption="Creating the Jffnms user and database">
296# <i>psql template1 postgres &lt; /usr/portage/net-analyzer/jffnms/files/postgresql_db_table</i> 284# <i>psql template1 postgres</i>
285template1=# <i>create user jffnms password 'jfnms' createdb;</i>
286template1=# <i>\connect template1 jffnms</i>
287template1=# <i>create database jffnms;</i>
288template1=# <i>\q</i>
297</pre> 289</pre>
298 290
299<p> 291<p>
300Finally, you need to create all the tables where data will be stored: 292Finally, you need to create all the tables where data will be stored:
301</p> 293</p>
302 294
303<pre caption="Creating Jffnms database"> 295<pre caption="Creating Jffnms tables">
304# <i>psql jffnms jffnms &lt; /opt/jffnms/docs/jffnms-0.8.3.pgsql</i> 296# <i>psql jffnms jffnms &lt; /opt/jffnms/docs/jffnms-0.8.3.pgsql</i>
305</pre> 297</pre>
306 298
307<p> 299<p>
308Once you have run those steps, PostgreSQL database configuration for Jffnms 300Once you have run those steps, PostgreSQL database configuration for Jffnms

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20