Think before you speak, read before you think.

Author: jpuyy

  • docker run ftp

    docker run -e FTP_USER_NAME=jpuyy -e FTP_USER_PASS=123456 -e FTP_USER_HOME=/home/jpuyy -d –name ftpd_server -p 21:21 -p 30000-30009:30000-30009 -e “PUBLICHOST=0.0.0.0” stilliard/pure-ftpd

  • shell HISTCONTROL

    执行命令行的时候,希望本条操作不保留历史命令,设置 echo $HISTCONTROL export HISTCONTROL=ignoreboth 然后执行命令 export token=12xx history 应该不显示在首字符是空格的命令

  • 查看 gke 维护和即将维护情况

    by

    in ,

    查看集群维护情况 (已发生) gcloud container operations list –project main-prod-e0f3382 –region asia-east2 维护通知 (未发生) https://cloud.google.com/kubernetes-engine/docs/how-to/cluster-upgrade-notifications

  • kubernetes nginx ingress

    configmap kube-system/nginx-ingress-controller

  • 内部代理外部 ssl 站点减小延迟

    server { listen 80; server_name jpuyy.com; #… location / { proxy_pass https://jpuyy.com; #proxy_ssl_certificate /etc/nginx/client.pem; #proxy_ssl_certificate_key /etc/nginx/client.key; #proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #proxy_ssl_ciphers HIGH:!aNULL:!MD5; proxy_ssl_trusted_certificate /etc/ssl/certs/ca-certificates.crt; proxy_ssl_verify on; proxy_ssl_verify_depth 2; proxy_ssl_session_reuse on; } }

  • docker swarm

    Usage: docker service COMMAND Manage services Commands: create Create a new service inspect Display detailed information on one or more services logs Fetch the logs of a service or task ls List services ps List the tasks of one or more services rm Remove one or more services rollback Revert changes to a service’s configuration…