This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
manual:installation:install [2018/02/08 13:50] martins-v fixing link target |
manual:installation:install [2020/06/26 13:45] (current) yuriii replaced svn with git |
||
---|---|---|---|
Line 19: | Line 19: | ||
For all of the Zabbix daemon processes, an unprivileged user is required. If a Zabbix daemon is started from an unprivileged user account, it will run as that user. | For all of the Zabbix daemon processes, an unprivileged user is required. If a Zabbix daemon is started from an unprivileged user account, it will run as that user. | ||
- | However, if a daemon is started from a 'root' account, it will switch to a 'zabbix' user account, which must be present. To create such a user account (in its own group, "zabbix") on Linux systems, run: | + | However, if a daemon is started from a 'root' account, it will switch to a 'zabbix' user account, which must be present. To create such a user account (in its own group, "zabbix"), |
- | groupadd zabbix | + | on a RedHat-based system, run: |
- | useradd -g zabbix zabbix | + | |
+ | groupadd --system zabbix | ||
+ | useradd --system -g zabbix -d /usr/lib/zabbix -s /sbin/nologin -c "Zabbix Monitoring System" zabbix | ||
+ | |||
+ | on a Debian-based system, run: | ||
+ | |||
+ | addgroup --system --quiet zabbix | ||
+ | adduser --quiet --system --disabled-login --ingroup zabbix --home /var/lib/zabbix --no-create-home zabbix | ||
+ | |||
+ | <note important>Zabbix processes do not need a home directory, which is why we do not recommend creating it. However, if you are using some functionality that requires it (e. g. store MySQL credentials in ''$HOME/.my.cnf'') you are free to create it using the following commands.\\ \\ | ||
+ | |||
+ | On RedHat-based systems, run: | ||
+ | |||
+ | mkdir -m u=rwx,g=rwx,o= -p /usr/lib/zabbix | ||
+ | chown zabbix:zabbix /usr/lib/zabbix | ||
+ | |||
+ | On Debian-based systems, run: | ||
+ | |||
+ | mkdir -m u=rwx,g=rwx,o= -p /var/lib/zabbix | ||
+ | chown zabbix:zabbix /var/lib/zabbix | ||
+ | </note> | ||
A separate user account is not required for Zabbix frontend installation. | A separate user account is not required for Zabbix frontend installation. | ||
Line 86: | Line 106: | ||
== 5 Make and install everything == | == 5 Make and install everything == | ||
- | <note>If installing from SVN, it is required to run first: | + | <note>If installing from git, it is required to run first: |
''$ make dbschema'' | ''$ make dbschema'' | ||
Line 158: | Line 178: | ||
cp -a . <htdocs>/zabbix | cp -a . <htdocs>/zabbix | ||
- | If installing from SVN and planning to use any other language than English, you must generate translation files. To do so, run: | + | If installing from git and planning to use any other language than English, you must generate translation files. To do so, run: |
locale/make_mo.sh | locale/make_mo.sh | ||
Line 219: | Line 239: | ||
{{install_4.png?550|}} | {{install_4.png?550|}} | ||
+ | Entering a name for Zabbix server is optional, however, if submitted, it will be displayed in the menu bar and page titles. | ||
== Step 5 == | == Step 5 == | ||