• 自动检测并重启Nginx服务

    在Web服务器的维护过程中,保证关键服务如Nginx始终处于运行状态是至关重要的。本指南提供了一个自动化的方法,通过编写一个Shell脚本并结合Crontab来实现自动检测Nginx服务状态,并在服务停止运行时自动重启Nginx,同时执行重启前的必要操作。脚本内容#!/bin/bash# 检查ngi...

    curl查看请求耗时

    curl -so /dev/null https://bing.com -w 'time_namelookup: %{time_namelookup}\n time_connect: %{time_connect}\n time_appconnect: %{time_appconnect}\n...

    netdata安装&nginx设置密码访问

    https://learn.netdata.cloud/docs/installing/one-line-installer-for-all-linux-systems参见图片选择参数,生成安装链接安装完成之后访问http://127.0.0.1:19999就可以看到了nginx配置如下upstre...

    java smtp发送邮件

    <dependency> <groupId>javax.mail</groupId> <artifactId>javax.mail-api</artifactId> <version>1.6.2</ver...

    github访问问题

    编辑~/.ssh/config,新增Host github.com HostName ssh.github.com User git Port 443使用ssh -T [email protected]测试如果出现Host key verification failed编辑~/.ssh/...

    私有化部署bitwarden

    直接上docker-composeversion: '3'services: bitwarden: image: vaultwarden/server:latest container_name: bitwarden restart: unless-stopped volu...

    使用cf的workers作为chatgpt的代理

    const TELEGRAPH_URL = 'https://api.openai.com';addEventListener('fetch', event => { event.respondWith(handleRequest(event.request))})async functio...

    bitwarden数据使用rclone定时备份至dropbox(3小时备份一次)

    #安装rclonesudo apt install rclone#配置rclonerclone config新建sync.sh#!/bin/bashtar -cvf bp.tar bprclone sync bp.tar dropbox:bp设置定时任务crontab -e#写入文件0 */3 * ...

    jdk更新时区信息(夏令时相关)

    下载TZUpdater暂停服务执行java -jar tzupdater.jar -l看到以下,表示进行了更新Using https://www.iana.org/time-zones/repository/tzdata-latest.tar.gz as source for tzdata bund...

    github action build Android(apk and aar)

    # name of the workflowname: Android Build CI/CDon: push: branches: countly # pull_request: # branches: [ staging ] tags: - 'v*'jobs:...