Steps to install node_exporter
-
Add user for node_exporter
sudo useradd --no-create-home --shell /bin/false node_exporter
How to disable automatic updates on Server 2016. | |
Open an elevated command prompt window or PowerShell session | |
Type sconfig and press enter. | |
Select option 5 | |
Now select “A” for automatically download and install updates, “D” for download only or “M” for Manual updates. |
# available limit | |
user@ubuntu:~$ ulimit -n | |
1024 | |
# To increase the available limit to say 65535 | |
user@ubuntu:~$ sudo vim /etc/sysctl.conf | |
# add the following line to it | |
fs.file-max = 65535 |
#!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
''' | |
@File : analyze_aliyun_fee | |
@Date : 16/10/2020 2:53 PM | |
@Desc : | |
''' | |
import pandas as pd |
Short Description | |
The default behavior of an Amazon EC2 instance associated with an Amazon Virtual Private Cloud (Amazon VPC) is to request a DNS server address at startup using the Dynamic Host Configuration Protocol (DHCP). The DNS server addresses returned in the DHCP response are written to the local /etc/resolv.conf file. Manual modifications to the resolv.conf file with custom DNS server addresses are lost when the instance is restarted. The method that you use to solve this issue depends on your Linux distribution. For more information on VPCs and DNS servers, see Amazon DNS Server. | |
Resolution | |
Important: Before you change your Amazon EC2 instance, create a backup using an Amazon Machine Image (AMI) or an Amazon Elastic Block Store (Amazon EBS) snapshot. Changing networking configuration for an instance might render the instance unreachable. | |
Amazon Linux, Amazon Linux 2 | |
Use one of the following options to configure your Amazon EC2 instance. If you apply both options, then the DNS servers specified in |
git clone https://github.com/certbot/certbot.git | |
acme.sh --issue --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please -d *.abcd.com | |
添加完dns txt记录再运行以下命令 | |
acme.sh --renew --yes-I-know-dns-manual-mode-enough-go-ahead-please -d *.abcd.com | |
参考https://github.com/acmesh-official/acme.sh/wiki/dns-manual-mode | |
# certbot |
# Use this script to test that your Telegram bot works. | |
# | |
# Install the dependency | |
# | |
# $ gem install telegram_bot | |
# | |
# Run the bot | |
# | |
# $ ruby bot.rb | |
# |
#!/bin/bash | |
# Copyright 2020 Gravitational, Inc. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
source: | |
https://pkg.cfssl.org/ | |
install: | |
$ curl -s -L -o /bin/cfssl https://pkg.cfssl.org/R1.2/cfssl_linux-amd64 | |
$ curl -s -L -o /bin/cfssljson https://pkg.cfssl.org/R1.2/cfssljson_linux-amd64 | |
$ curl -s -L -o /bin/cfssl-certinfo https://pkg.cfssl.org/R1.2/cfssl-certinfo_linux-amd64 | |
$ chmod +x /bin/cfssl* | |