#目录 API列表
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const userData = ec2.UserData.forLinux(); | |
userData.addCommands( | |
'set -o xtrace', | |
`/etc/eks/bootstrap.sh ${cluster.clusterName} --kubelet-extra-args "--node-labels lifecycle=OnDemand --node-labels normal=true" --docker-config-json '{"bridge":"none","log-driver":"json-file","log-opts":{"max-size":"100m","max-file":"10"},"live-restore":true,"max-concurrent-downloads":10}'`, | |
'sudo mkfs -t ext4 /dev/nvme1n1', | |
'sudo mkdir -p /data/log', | |
'sudo mount /dev/nvme1n1 /data/log', | |
`echo -ne " | |
* soft nproc 800000 | |
* hard nproc 800000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
source /etc/profile | |
cd /userdata1/server_script/ | |
rm -r LogAnalytics.jar | |
wget `curl -s https://api.github.com/repos/jialechan/LogAnalytics/releases/latest | jq -r ".assets[].browser_download_url"` -O LogAnalytics.jar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http { | |
... | |
log_format chatLog 'T[$time_iso8601] STAT[$status] REQ_T[$upstream_response_time] URL[$request]'; | |
... | |
server { | |
... | |
access_log logs/xxx.access.log chatLog; | |
... | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script run at 00:00 | |
# 00 00 * * * log_daily.sh | |
# The Nginx logs path | |
LOG_PATH="/userdata1/nginx/logs" | |
PID_PATH="/userdata1/nginx/logs/nginx.pid" | |
for log in `ls $LOG_PATH`; do | |
echo $log | grep '.log$' > /dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
core: | |
logPath: /Users/jialechan/idesWorkspaces/LogAnalytics/src/test/resources/ | |
hostList: | |
- sitelog | |
mail: | |
mailTitle: 服务器请求日报 | |
senderHost: smtp.qiye.xxx.com | |
senderUsername: [email protected] | |
senderPassword: xxx |
input {
redis {
host => "127.0.0.1"
type => "redis-A" #原json不能有type关键字,类似的关键字还有index,id,score,source
port => "6379"
data_type => "list" # If redis_type is list, then we will BLPOP the key
db => 0
key => "palmplay_push_show2"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<String> groupIdList = JSON.parseObject(JSONObject.parseObject(responseStr).getJSONArray("list").toJSONString(), new TypeReference<List<String>>(){}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
查看本地开放的端口 | |
netstat -antp | |
检查nginx使用那个端口 | |
netstat -plnt|grep nginx | |
检查某个进程使用那个端口 | |
netstat -anp |grep 33333 | |
遍历每个目录大小 |
NewerOlder