Last update at :2024-02-07,Edit by888u
ServerStatus, as many friends know, is a cloud probe specifically designed to monitor Linux servers. It also provides a WEB panel. After opening the web page, you can intuitively see the load status of each of your VPS or servers. Here I won’t go into details. Today I will mainly share with you the one-click installation script. The script was written by Mr. Doubi, but the original webpage was relatively simple, so the webpage was modified and beautified. See the picture below for the beautified interface:
Installation tutorial
System requirements
CentOS 7/Debian 7+/Ubuntu 14.04+ Debian 8 x64 is recommended. This is the system I have been using. The error rate of scripts is lowest on this system. Note that since it is a multi-server cloud monitoring program, you definitely need more than two servers (in fact, one can be installed, the client and the server can be installed at the same time). One server serves as the server, and the script will automatically install Caddy and configure HTTP service, and then receive the information sent by each client in real time and display it through the website.
Because the client will send the latest information to the server every second, it is necessary to ensure that the client and server are directly connected to each other, otherwise the web page display will be cluttered.
Although the client sends information to the server every second, the traffic consumption is very small. After all, the data sent each time is only a few hundred or thousands of characters. The ServerStatus client requires Python 2.7 or above to run properly. If not, please upgrade (check the version: python -V ).
Installation steps
Execute the following code to download and run the script.
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/status.sh && chmod +x status.shAfter downloading the script, install the client or server as needed:
# Display client management menu bash status.sh c # Display the server management menu bash status.sh sAfter running the script, the script operation menu will appear. Select and enter 1 to start the installation.
At the beginning, you will be prompted to enter the port that the server is listening on. If you don’t understand, please default. If your server where you want to install the client has a NAT server, then please consider the NAT port range.
Simple steps
First install the server, you will be prompted during the installation process:
Whether to automatically configure the HTTP service (server-side online monitoring website) by script [Y/n] # You will be prompted to enter the domain name and port of the website server at the beginning. If there is no domain name, you can directly press Enter to use the local IP: 8888. # If you don't understand, just press Enter. If you want to configure it yourself using other HTTP services, please enter n and press Enter. # Note that when you have installed the server before and have not uninstalled Caddy (HTTP service), please enter n and press Enter when reinstalling the server.Then add or modify the node configuration of the initial example. Note that the user name cannot be repeated for each node configuration, and other parameters do not matter.
Then install the client, fill in the server IP according to the prompts and add/modify the corresponding node username and password (for verification with the server), and then start it. If you have any questions, please post detailed steps + log ( If so) contact me.
Instructions for use
Go to the directory where you downloaded the script and run the script:
#Client management menu ./status.sh c # Server management menu ./status.sh sThen select the option you want to execute.
ServerStatus one-click installation management script [vx.x.x] -- Toyo | doub.io/shell-jc3 -- 0. Upgrade script ———————————— 1. Install the server 2. Update server 3. Uninstall the server ———————————— 4. Start the server 5. Stop the server 6. Restart the server ———————————— 7. Set up server configuration 8. View server information 9. View server logs ———————————— 10. Switch to client menu Current status: Server installed and started Please enter a number [0-10]:Other operations
Client:
Start: /etc/init.d/status-client start Stop: /etc/init.d/status-client stop Restart: /etc/init.d/status-client restart Check the status: /etc/init.d/status-client statusServer:
Start: /etc/init.d/status-server start Stop: /etc/init.d/status-server stop Restart: /etc/init.d/status-server restart Check the status: /etc/init.d/status-server statusCaddy (HTTP service):
Start: /etc/init.d/caddy start Stop: /etc/init.d/caddy stop Restart: /etc/init.d/caddy restart View status:/etc/init.d/caddy status Caddy configuration file:/usr/local/caddy/CaddyfileFile location
Installation directory:/usr/local/ServerStatus Web page file:/usr/local/ServerStatus/web Configuration file:/usr/local/ServerStatus/server/config.json View the log on the client: tail -f tmp/serverstatus_client.log Check the log on the server: tail -f /tmp/serverstatus_server.logBeautification tutorial
Use WinSCP to connect to your server VPS, open the /usr/local/ServerStatus/web directory, download the compressed package shared at the end of the article, and just overwrite all the files directly into this folder after decompression. It is very simple. . Note: If web panels such as pagoda and lnmp are installed on your VPS, they will conflict with Caddy. The solution is: stop Caddy, then in your new virtual host, point the virtual host directory to /usr/local/ServerStatus/web.
Recommended site searches: overseas server rental prices, space servers, foreign domain names, vps for ip, Changsha server, Hong Kong server rental, Korean server rental, host rental, US high defense space, 1g US virtual host,
发表评论