Ubuntu18.04 installation ntopng

Installation ntopng:

Recently in its own virtual machine Ubuntu18.04 installed ntopng, you can refer to
18.04 LTS

apt-get install software-properties-common wget 
add-apt-repository universe
wget http://apt-stable.ntop.org/18.04/all/apt-ntop-stable.deb 
apt install ./apt-ntop-stable.deb 
apt-get clean all
apt-get update
apt-get install pfring nprobe ntopng ntopng-data n2disk cento nbox 

Installation redis:

When you want to install redis installation has been completed, perhaps before the installation has been installed dependencies. If the reference is not installed https://blog.csdn.net/qq_41822647/article/details/84594200 mounted redis

According to configure:

After installing ntopng, you need to modify the Ntopng located /etc/ntopng/ntopng.conf default configuration file:

sudo vim /etc/ntopng/ntopng.conf 

And temporarily add the following (My approach is to supplement directly after the original -G = / var / run / ntopng.pid, have prepared comments in ntopng.conf file, you can open and see if needed):

-G=/var/run/ntopng.pid
--user=ntopng
--e=
--community
-i=ens33
-w=3000

The following is a description of the mark:
Here Insert Picture Description

After preparation is complete, create a ntopng.start file:

sudo vim /etc/ntopng/ntopng.start

Add the following:

--local-networks "192.168.0.0/24"  ## give your local IP Ranges here.
--interface 1

Finally, save and close the file, then restart Ntopng and have it start at boot:

sudo systemctl start ntopng # 启动ntopng
sudo systemctl enable ntopng # 开机自启动

Access section:
point your browser to: http: // localhost: 3000, you can enter the login screen

After entering the default user name admin and password admin, and will let you change your password. After modifying the contents can be observed in the segment 192.168.0.0/24

problem:

On the transfer of directory
appears "Migrate the data directory in ntopng / nEdge" warning, to amend data directory path.
The reason is that before the release of version 3.6 on Unix systems, use / var / tmp / ntopng as the default directory to store historical data, "nobody" as the default user. Ntopng 3.7 from the beginning, for security reasons, the default setting has been changed to the data directory / var / lib / ntopng, the default user has been changed to ntopng. In order to maintain backward compatibility is not recommended to use the old default setting. Need to execute the following command to modify the data directory path:

systemctl stop ntopng
rmdir /var/lib/ntopng
mv /var/tmp/ntopng /var/lib/ntopng
chown -R ntopng:ntopng /var/lib/ntopng
systemctl start ntopng

Reference:
https://www.howtoing.com/ubuntu-ntopng-network-monitoring
https://www.ntop.org/support/faq/migrate-the-data-directory-in-ntopng/
HTTPS: // Cloud .tencent.com / developer / article / 1186282

Released six original articles · won praise 0 · Views 93

Guess you like

Origin blog.csdn.net/father_is_/article/details/104560619