西维蜀黍

【MySQL】MySQL Exporter

Download

$ curl -LO https://github.com/prometheus/mysqld_exporter/releases/download/v0.14.0/mysqld_exporter-0.14.0.linux-amd64.tar.gz

$ tar xf mysqld_exporter-0.14.0.linux-amd64.tar.gz
  ...


【Linux】snap

Service Management

List

# Display basic information about installed snap software
$ snap list

# Check for recent snap changes in the system
$ snap changes

Install

# Search for a package
$ snap find package_name

# Install a package
$ snap install package_name

Update

# Update a package
$ snap refresh package_name

# Update a package to another channel (track, risk, or branch)
$ snap refresh package_name --channel=channel

# Update all packages
$ snap refresh

Uninstall

# Uninstall a package
$ snap remove package_name
  ...


【Network】V2Ray

Install

Server

Refer to https://www.v2fly.org/guide/install.html#macos-%E5%AE%89%E8%A3%85%E6%96%B9%E5%BC%8F

Linux

安装和更新 V2Ray

// 安装可执行文件和 .dat 数据文件
# sudo bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)

$ sudo systemctl enable v2ray; sudo systemctl start v2ray

Refer to https://github.com/v2fly/fhs-install-v2ray/blob/master/README.zh-Hans-CN.md

  ...


【Linux】获取 CPU 温度

Procedure for monitoring CPU temperatures on Ubuntu

$ sudo apt install lm-sensors

Install lm-sensors

sudo apt-get install lm-sensors 
  ...


【Linux】设置时区

View Timezone

$ timedatectl
                      Local time: Wed 2019-01-23 22:45:47 UTC
                  Universal time: Wed 2019-01-23 22:45:47 UTC
                        RTC time: Wed 2019-01-23 22:45:48
                       Time zone: Etc/UTC (UTC, +0000)
       System clock synchronized: yes
systemd-timesyncd.service active: yes
                 RTC in local TZ: no

The system timezone is configured by symlinking /etc/localtime to a binary timezone identifier in the /usr/share/zoneinfo directory.

ls -l /etc/localtimeCopy
lrwxrwxrwx 1 root root 27 Dec 10 12:59 /etc/localtime -> /usr/share/zoneinfo/Etc/UTC
  ...


【Linux】systemctl

systemd

systemd is an init system and system manager that has widely become the new standard for Linux distributions. Due to its heavy adoption, familiarizing yourself with systemd is well worth the trouble, as it will make administering servers considerably easier. Learning about and using the tools and daemons that comprise systemd will help you better appreciate the power, flexibility, and capabilities it provides, or at least help you to do your job with less hassle.

In this guide, we will be discussing the systemctl command, which is the central management tool for controlling the init system. We will cover how to manage services, check statuses, change system states, and work with the configuration files.

  ...


【WMware】EXSi - 网卡直通 (Passthrough)

网卡直通(Passthrough)

如果以这样的顺序添加网卡,进入openwrt后

  • 0000:03:00:0 则为 openwrt中的eth0
  • 0000:02:00:0 为 openwrt中的eth1
  ...


【WMware】EXSi - 硬盘直通

RDM 硬盘直通

找到要挂载到的 DataStroe的路径

  ...


【WMware】EXSi - 增加第三方网卡驱动

USB3.0 网卡

ESXi-Customizer-PS

因为我用的是USB3.0 网卡,所以需要下载相关驱动,否则会出现 No network adapters were detected 的错误。

Use https://github.com/VFrontDe/ESXi-Customizer-PS

  ...


【WMware】EXSi - Troubleshooting

VMFS Volume is locked

Ref

  ...