README.md模板用于简要描述服务器

为了明确您所在的虚拟机,请在服务器根目录(或根据情况在用户主目录)创建一个 README.md 文件。

环境

源码(Gitlab)

主账户:user(UID/GID: 1000:1000)

虚拟机列表(在线链接)

虚拟机所有者

姓名

如何访问虚拟机

虚拟机历史

https://discuss.rabkesov.ru/search?q=server

服务

sudo systemctl status elasticsearch.service
sudo systemctl status logstash.service
sudo systemctl status kafka.service
sudo systemctl status zookeeper.service

# 不要以 root 身份运行服务,除非确实需要

服务文件

ls -l /etc/systemd/system/ | grep service

端口与路径

/opt/

数据库

sudo ps auxw | grep postgres
```## 命令

df -h /opt # 检查磁盘空间
free -h # 查看内存
sudo journalctl -u service -f # 实时查看服务状态
sudo netstat -ltupen | grep LISTEN # 查看监听端口,见下方替代方案
echo > /dev/tcp/10.1.1.1/5432 && echo “Port is open”
curl -v http://localhost:port # HTTP 检测