如何在 ubuntu 中安装 MONyog?

如何在 ubuntu 中安装 MONyog?

我是新手ubuntu,我想安装 MONyog。

我正在尝试安装和下载CNET,其下载tar.gz格式。

但我不知道如何安装它,...MONyog-5.5.8-0.x86_64.tar.gz

下载完成后README

它说像

===============================================================================
2. Configuring MONyog on Linux
===============================================================================
MONyog port and password are configurable through "MONyog.ini".

If MONyog was installed from the RPM package, MONyog.ini can be found in:
/usr/local/MONyog

If MONyog is extracted from the tarball (.tar.gz package), MONyog.ini 
can be found in the directory where MONyog was extracted.

The content of this file looks like:

[GENERAL]

port=5555
password=mypasswd

NOTE: MONyog should be stopped before editing this file, and restarted once
changes are saved.

MONyog.ini看起来就像这样,

[GENERAL]
Port=5555
Password=
Data_path=/home/ubuntu/Downloads/MONyog/bin/..//data
Registration_name=
Key=
Install_id=e1dbc993-3c5a-4869-984c-d5c04c07837f

我认为它的提取

提取文件请看这里,Home/MONyog

试试这个,就像这样,

ubuntu@P3-SD1:~$ cd /home/ubuntu/Downloads
ubuntu@P3-SD1:~/Downloads$ sudo mv MONyog-5.5.8-0.x86_64.tar.gz ~
ubuntu@P3-SD1:~/Downloads$ cd ~
ubuntu@P3-SD1:~$ tar -xf MONyog-5.5.8-0.x86_64.tar.gz
ubuntu@P3-SD1:~$ 

提前致谢...

答案1

注意:我只安装试用版。

我已经下载了 MONyog 试用版这里(文件名MONyog-5.5.8-0.x86_64.tar.gz)并将其直接移动到我的主目录(~)。

这些是我使用的命令:

# extract the archive:
~$ tar -xf MONyog-5.5.8-0.x86_64.tar.gz

# navigate to the extracted folder and look at its contents:
~$ cd /home/ubuntu/MONyog
~/MONyog$ ls

bin           data    MONyog.ini  MONyog.lua  preferences.config  res
Counters.def  MONyog  MONyog.log  MONyog.mib  README              Udo.def

~/MONyog$ cd bin

~/MONyog/bin$ ls
MONyog  MONyog-bin

# try running the executable:
~/MONyog/bin$ ./MONyog
Usage: ./MONyog {start|stop|restart|reload|status}

~/MONyog/bin$ ./MONyog start
MONyog is already running...

在浏览器中检查其 Web 界面:

http://localhost:5555/
http://localhost:5555/mlogin.html

答案2

发现这里这里这是 MONyog 的有效 systemd 单元文件。

[Unit]
Description=Webyog MONyog Service
After=syslog.target network.target

[Service]
SyslogIdentifier=monyog
LimitNOFILE=262144
ExecStart=/usr/local/MONyog/bin/MONyog-bin
Restart=on-failure

[Install]
WantedBy=multi-user.target

相关内容