Linux performance monitoring tool: pyDash
pyDash is a lightweight, web-based Linux performance monitoring tool written in Python and Django plus Chart.js. After testing, it can run on the following mainstream Linux distributions: CentOS, Fedora, Ubuntu, Debian, Raspbian and Pidora.
You can use this tool to monitor your Linux PC/Server resources such as CPU, memory, network statistics, processes including online users and more. The dashboard is developed entirely with Python libraries provided by major Python distributions, so it has very few dependencies and you don't need to install many packages or libraries to run it.
In this article, I will show you how to install pyDash to monitor Linux server performance.
How to install pyDash under Linux system1. First, install the required software packages git and Python pip as follows:
-------------- 在 Debian/Ubuntu 上 -------------- $ sudo apt-get install git python-pip -------------- 在 CentOS/RHEL 上 -------------- # yum install epel-release # yum install git python-pip -------------- 在 Fedora 22+ 上 -------------- # dnf install git python-pip
2. If git and Python pip are installed, then install virtualenv as follows, which helps to handle dependencies for Python projects:
# pip install virtualenv 或 $ sudo pip install virtualenv
3. Now, use the git command as follows to clone the pyDash warehouse to the home directory:
# git clone https://github.com/k3oni/pydash.git # cd pydash
4. Next, use the following virtualenv command to create a virtual environment called pydashtest for the project:
$ virtualenv pydashtest #give a name for your virtual environment like pydashtest
Create virtual environment
Important: Please note that in the screenshot above, the bin directory of the virtual environment is highlighted, yours may be different depending on where you clone the pyDash directory.
5. After creating the virtual environment (pydashtest), you need to activate it before use as follows:
$ source /home/aaronkilik/pydash/pydashtest/bin/activate
Activate virtual environment
From the screenshot above, you can notice that prompt string 1 (PS1) has changed, which indicates that the virtual environment has been activated and can be used.
6. Now, install the pydash project requirements; if you are curious, you can use the cat command to view the contents of requirements.txt, and then install it as shown below:
$ cat requirements.txt $ pip install -r requirements.txt
7. Now, enter the pydash directory, which contains a file named settings.py. You can also directly run the following command to open this file, and then SECRET_KEY Change to a specific value:
$ vi pydash/settings.py
Set the key
Save the file and exit.
8. After that, run the following commands to create a project database and install Django’s authentication system, and create a superuser for the project:
$ python manage.py syncdb
Answer the following questions based on your situation:
Would you like to create one now? (yes/no): yes Username (leave blank to use 'root'): admin Email address: [email protected] Password: ########### Password (again): ############
Create project database
9、这个时候,一切都设置好了,然后,运行下面的命令来启用 Django 开发服务器:
$ python manage.py runserver
10、接下来,打开你的 web 浏览器,输入网址:http://127.0.0.1:8000/ 进入 web 控制台登录界面,输入你在第 8 步中创建数据库和安装 Django 身份验证系统时创建的超级用户名和密码,然后点击登录。
pyDash 登录界面
11、登录到 pydash 主页面以后,你将会可以看到监测系统的基本信息,包括 CPU、内存和硬盘使用量以及系统平均负载。
向下滚动便可查看更多部分的信息。
pydash 服务器性能概述
12、下一个屏幕截图显示的是一段 pydash 的跟踪界面,包括 IP 地址、互联网流量、硬盘读/写、在线用户以及 netstats 。
pyDash 网络概述
13、下一个 pydash 主页面的截图显示了一部分系统中被监视的活跃进程。
pyDash 监视活跃 Linux 进程
如果想了解更多信息,请在 GitHub 上查看 pydash:https://github.com/k3oni/pydash
这就是全部内容了。在这篇文章中,我们展示了在 Linux 中如何安装 pyDash 并测试它的主要特性。
The above is the detailed content of Linux performance monitoring tool: pyDash. For more information, please follow other related articles on the PHP Chinese website!

The main uses of Linux include: 1. Server operating system, 2. Embedded system, 3. Desktop operating system, 4. Development and testing environment. Linux excels in these areas, providing stability, security and efficient development tools.

The Internet does not rely on a single operating system, but Linux plays an important role in it. Linux is widely used in servers and network devices and is popular for its stability, security and scalability.

The core of the Linux operating system is its command line interface, which can perform various operations through the command line. 1. File and directory operations use ls, cd, mkdir, rm and other commands to manage files and directories. 2. User and permission management ensures system security and resource allocation through useradd, passwd, chmod and other commands. 3. Process management uses ps, kill and other commands to monitor and control system processes. 4. Network operations include ping, ifconfig, ssh and other commands to configure and manage network connections. 5. System monitoring and maintenance use commands such as top, df, du to understand the system's operating status and resource usage.

Introduction Linux is a powerful operating system favored by developers, system administrators, and power users due to its flexibility and efficiency. However, frequently using long and complex commands can be tedious and er

Linux is suitable for servers, development environments, and embedded systems. 1. As a server operating system, Linux is stable and efficient, and is often used to deploy high-concurrency applications. 2. As a development environment, Linux provides efficient command line tools and package management systems to improve development efficiency. 3. In embedded systems, Linux is lightweight and customizable, suitable for environments with limited resources.

Introduction: Securing the Digital Frontier with Linux-Based Ethical Hacking In our increasingly interconnected world, cybersecurity is paramount. Ethical hacking and penetration testing are vital for proactively identifying and mitigating vulnerabi

The methods for basic Linux learning from scratch include: 1. Understand the file system and command line interface, 2. Master basic commands such as ls, cd, mkdir, 3. Learn file operations, such as creating and editing files, 4. Explore advanced usage such as pipelines and grep commands, 5. Master debugging skills and performance optimization, 6. Continuously improve skills through practice and exploration.

Linux is widely used in servers, embedded systems and desktop environments. 1) In the server field, Linux has become an ideal choice for hosting websites, databases and applications due to its stability and security. 2) In embedded systems, Linux is popular for its high customization and efficiency. 3) In the desktop environment, Linux provides a variety of desktop environments to meet the needs of different users.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SublimeText3 English version
Recommended: Win version, supports code prompts!