Difference between revisions of "Server Installation Guide"

m
no edit summary
m
Line 38: Line 38:
2. Unpack the archive:
2. Unpack the archive:


$ tar zxvf netxms-{{version}}.tar.gz
{{#tag:syntaxhighlight|tar zxvf netxms-{{version}}.tar.gz|lang=bash}}
 


3. Change directory to netxms-version and run configure script:
3. Change directory to netxms-version and run configure script:


$ cd netxms-{{version}}
{{#tag:syntaxhighlight|
$ sh ./configure --with-server --with-mysql --with-agent
cd netxms-{{version}}
 
sh ./configure --with-server --with-mysql --with-agent
|lang=bash}}


Important arguments:  
Important arguments:  
Line 59: Line 59:


To learn more about possible configure parameters, run it with --help option.
To learn more about possible configure parameters, run it with --help option.


4. Run make and make install:
4. Run make and make install:


$ make
{{#tag:syntaxhighlight|
$ make install
make
 
make install
|lang=bash}}


5. Copy sample config files to desired locations:
5. Copy sample config files to desired locations:


$ cp contrib/netxmsd.conf-dist /etc/netxmsd.conf
{{#tag:syntaxhighlight|
$ cp contrib/nxagentd.conf-dist /etc/nxagentd.conf
cp contrib/netxmsd.conf-dist /etc/netxmsd.conf
 
cp contrib/nxagentd.conf-dist /etc/nxagentd.conf
|lang=bash}}


By default, both server and agent will look for configuration files in /etc directory. If you wish to place configuration files in a different location, don't forget to use –c command line switch for agent and –config-file command-line switch for server to specify an alternate location.
By default, both server and agent will look for configuration files in /etc directory. If you wish to place configuration files in a different location, don't forget to use –c command line switch for agent and –config-file command-line switch for server to specify an alternate location.
Line 81: Line 82:
Example for MySQL:
Example for MySQL:


<code>
  mysql -u root -p mysql
  mysql -u root -p mysql
  mysql> CREATE DATABASE netxms;
  mysql> CREATE DATABASE netxms;
  mysql> GRANT ALL ON netxms.* TO netxms@localhost IDENTIFIED BY 'PaSsWd';
  mysql> GRANT ALL ON netxms.* TO netxms@localhost IDENTIFIED BY 'PaSsWd';
  mysql> \q
  mysql> \q
</code>


[[Oracle | Example for Oracle 11g]].
[[Oracle | Example for Oracle 11g]].
Line 160: Line 159:


  $ tar zxvf netxms-{{version}}.tar.gz
  $ tar zxvf netxms-{{version}}.tar.gz


3. Change directory to netxms-version and run configure script:
3. Change directory to netxms-version and run configure script:
Line 166: Line 164:
  $ cd netxms-{{version}}
  $ cd netxms-{{version}}
  $ sh ./configure --with-server --with-mysql
  $ sh ./configure --with-server --with-mysql


Be sure to include all options that were used at installation time.
Be sure to include all options that were used at installation time.
Line 174: Line 171:


  $ make
  $ make


5. Stop NetXMS server.
5. Stop NetXMS server.
Line 181: Line 177:


  $ nxdbmgr check
  $ nxdbmgr check


Proceed to the next step only if database checker does not report any errors!
Proceed to the next step only if database checker does not report any errors!


8. Run make install:
8. Run make install:


  $ make install
  $ make install


9. Upgrade database:
9. Upgrade database:


  $ nxdbmgr upgrade
  $ nxdbmgr upgrade


10. Start NetXMS agent.
10. Start NetXMS agent.