- download
node_exporter
binary to/usr/sbin/
- add systemd config file
vim /etc/systemd/system/node_exporter.service
[Unit]
Description=Node Exporter
[Service]
User=root
ExecStart=/usr/sbin/node_exporter
REM test A - 001 | |
REM test B - 002 | |
REM get rid of last 6 characters | |
SET title_a=test A - 001 | |
SET title_b=test B - 002 | |
SET first=%title_a:~0,-6% | |
SET second=%title_b:~0,-6% |
# rm_directories.sh /path/of/root keyword | |
# | |
# 특정 파일과 폴더 목록을 가져와서 삭제하는 스크립트 | |
################################################## | |
root_path=$1 | |
keyword=$2 | |
# 1. 전체 목록을 가져와서 | |
# 2. 키워드로 필터하고 | |
# 3. 마지막 파일, 폴더 이름을 가져와서 |
# remove_old_files.sh /path/of/root 90 | |
# | |
# 오래된 파일을 삭제한다. | |
########################################## | |
$root_path=$1 | |
$days_past=$2 | |
find $root_path -type d -ctime +$days_past | xargs rm -rf |
listening() { | |
if [ $# -eq 0 ]; then | |
sudo lsof -iTCP -sTCP:LISTEN -n -P | |
elif [ $# -eq 1 ]; then | |
sudo lsof -iTCP -sTCP:LISTEN -n -P | grep -i --color $1 | |
else | |
echo "Usage: listening [pattern]" | |
fi | |
} |
node_exporter
binary to /usr/sbin/
vim /etc/systemd/system/node_exporter.service
[Unit]
Description=Node Exporter
[Service]
User=root
ExecStart=/usr/sbin/node_exporter
import java.io.InputStream; | |
import java.net.URL; | |
import java.net.URLConnection; | |
public class HttpClient { | |
public static void main(String[] args) { | |
if (args.length == 0) { | |
System.err.println("Url must be specified."); | |
return; | |
} |
openssl s_client -connect my.domain.com:443 –showcerts |
# Debian 7 “Wheezy” archived apt repository | |
echo "deb http://archive.debian.org/debian wheezy main" >> /etc/apt/sources.list | |
echo "deb http://archive.debian.org/debian-security wheezy/updates main" >> /etc/apt/sources.list |
https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-application-properties.html spring.kafka prefixed properties
Key | Default Value | Description |
---|---|---|
spring.kafka.admin.client-id | ID to pass to the server when making requests. Used for server-side logging. | |
spring.kafka.admin.fail-fast | false | Whether to fail fast if the broker is not available on startup. |
spring.kafka.admin.properties.* | Additional admin-specific properties used to configure the client. | |
spring.kafka.admin.ssl.key-password | Password of the private key in the key store file. | |
spring.kafka.admin.ssl.key-store-location | Location of the key store file. |
kubectl get events --all-namespaces --sort-by='.metadata.creationTimestamp'
NAMESPACE LAST SEEN TYPE REASON OBJECT MESSAGE
default 59m Warning FailedMount pod/kafka-connect-history-744c4cb5f9-br66z MountVolume.SetUp failed for volume "config-file" : configmap "kafka-connect-history-default-config" not found
default 54m Warning FailedMount pod/kafka-connect-history-744c4cb5f9-br66z Unable to mount volumes for pod "kafka-connect-history-744c4cb5f9-br66z_default(38034b71-8a92-42ed-9afd-b3894f79bc56)": timeout expired waiting for volumes to attach or mount for pod "default"/"kafka-connect-history-744c4cb5f9-br66z". list of unmounted volumes=[nubes ep-volume timezone config-file default-token-zgztl]. list of unattached volumes=[nubes ep-volume timezone config-file default-token-zgztl]
default 46m Normal ScalingReplicaSet deployment/kafka-connect-history