In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to install the performance monitoring tool pyDash for Linux. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
PyDash is a lightweight Linux monitoring tool based on Web, written in Python, Django and Chart.js. It runs on the following major Linux distributions: CentOS,Fedora,Ubuntu,Debian,Arch Linux,Raspbian and Pidora.
It can monitor your server's resources, such as CPU,RAM, network statistics, processes including online users, etc. Developed entirely using the Python library provided in the Python distribution, it has some dependencies; you don't need to install many packages or libraries to run it.
How to install pyDash under Linux system
1. First, install the required packages git and Python pip as follows:
-on Debian/Ubuntu-$sudo apt-get install git python-pip- on CentOS/RHEL-# yum install epel-release# yum install git python-pip- on 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 or $sudo pip install virtualenv
3. Now, use the git command as follows to clone the pyDash repository to the home directory:
# git clone https://github.com/k3oni/pydash.git# cd pydash
4. Next, create a virtual environment called pydashtest for the project using the following virtualenv command:
$virtualenv pydashtest # give a name for your virtual environment like pydashtest
Create a virtual environment
Important: please note that in the screenshot above, the bin directory of the virtual environment is highlighted, and yours may be different, depending on where you clone the pyDash directory.
5. After you have created a virtual environment (pydashtest), you need to activate it as follows before using it:
$source / home/aaronkilik/pydash/pydashtest/bin/activate
Activate the virtual environment
From the screenshot above, you can notice that the prompt string 1 (PS1) has changed, indicating that the virtual environment has been activated and can be used.
6. Now, if you are curious about how to install the pydash project requirements;, you can use the cat command to view the contents of requirements.txt, and then install as shown below:
$cat requirements.txt$ pip install-r requirements.txt
7. Now, go to the pydash directory, which contains a file named settings.py, or you can directly run the following command to open the file, and then change SECRET_KEY to a specific value:
$vi pydash/settings.py
Set the key
Save the file and exit.
After that, run the following command to create a project database and an authentication system that installs Django, and create a project superuser:
$python manage.py syncdb
Answer the following questions according to your situation:
Would you like to create one now? (yes/no): yesUsername (leave blank to use 'root'): adminEmail address: aaronkilik@gmail.comPassword: # Password (again):
Create a project database
9. At this point, everything is set up, and then run the following command to enable the Django development server:
$python manage.py runserver
10. Next, open your web browser, enter the URL: http://127.0.0.1:8000/ to enter the web console login interface, enter the super username and password you created when you created the database and installed the Django authentication system in step 8, and then click Log in.
PyDash login interface
11. After logging in to the pydash main page, you will be able to see basic information about the monitoring system, including CPU, memory and hard disk usage, as well as the average system load.
Scroll down to see more parts of the information.
Overview of pydash server performance
12. The next screenshot shows a pydash tracking interface, including IP addresses, Internet traffic, hard disk read / write, online users, and netstats.
Overview of pyDash Network
13. A screenshot of the next pydash main page shows some of the active processes being monitored in the system.
PyDash monitors active Linux processes
This is the end of this article on "how to install the performance monitoring tool pyDash for Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.