sizeof

整形

-8bit16bit32bit64bit
char1111
short2222
int2244
long4448
long long8888

浮点型

-8bit16bit32bit64bit
float4444
double8888
long double8~168~168~168~16

mongodb 最新版安装

wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.2 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list
sudo apt update
sudo apt install -y mongodb-org
curl https://www.mongodb.org/static/pgp/server-4.0.asc | apt-key add -
echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main" > /etc/apt/sources.list.d/mongodb-org-4.0.list
apt update

Nginx 常用设置

server {
    charset              utf-8;
    listen               80;                
    listen               443 ssl;
    server_name          domain.com;
    location / {
        root /home/tra/mainpage;
        error_page 404 http://domain.com;
    }
}
server {
    charset              utf-8;
    listen               80;                
    listen               443 ssl;
    server_name          domain.com;

    ssl_certificate      /etc/nginx/ssl/fullchain.cer;
    ssl_certificate_key  /etc/nginx/ssl/domain.com.key;
    ssl_protocols        TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers          HIGH:!aNULL:!MD5;

    location / {
        root /home/tra/mainpage;
        error_page 404 http://domain.com;
    }
}
server {
    charset              utf-8;
    listen               80;                
    listen               443 ssl;
    server_name          domain.com;
    location / {
        proxy_pass_header Server;
        proxy_pass        http://127.0.0.1:8080;
        proxy_redirect    off;
        proxy_set_header  Host $host;
        proxy_set_header  X-Real-IP $host;
        proxy_set_header  X-Scheme $scheme;
        proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header  Cookie $http_cookie;      
        proxy_buffering   off;       
    }
}

Nginx 反向代理站点通过 ACME 配置 HTTPS

curl https://get.acme.sh | sh

acme.sh --issue -d domain.com --nginx

acme.sh --installcert -d domain.com --key-file /etc/nginx/ssl/domain.com.key --fullchain-file /etc/nginx/ssl/fullchain.cer --reloadcmd "systemctl force-reload nginx"

acme.sh --upgrade --auto-upgrade

server {
    charset              utf-8;
    listen               80;
    listen               443 ssl;
    server_name          domain.com;

    ssl_certificate      /etc/nginx/ssl/fullchain.cer;
    ssl_certificate_key  /etc/nginx/ssl/domain.com.key;
    ssl_protocols        TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers          HIGH:!aNULL:!MD5;

    location / {
        proxy_pass_header Server;
        proxy_pass        http://127.0.0.1:8000;
        proxy_redirect    off;
        proxy_set_header  Host $host;
        proxy_set_header  X-Real-IP $host;
        proxy_set_header  X-Scheme $scheme;
        proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header  Cookie $http_cookie;
        proxy_buffering   off;
    }
}

Python email error

Python 3.7.4 之前的版本 邮件包有问题,后续补充

最新文章

最近回复

  • muumlover: 你好
  • 测试人: 你好呀
  • ww: 看了这么多就这个有用,牛逼
  • 未知狐: 啊确实,话说,博主博客好像没有评论回复邮件提醒,可以试试Comm...
  • Skogen: 系统的差异,不同的Linux发行版集成的包也不一样,安装难度也就...
  • Skogen: 系统是 Debian9,理论上Debian系的系统应该通用的。
  • 2247: 请问用的是什么系统?
  • 未知狐: 受教了,我比博主运气好点,是因为不理解命令参数等设定而频繁失败,...
  • Skogen: 23
  • Skogen: asd

分类

标签

归档

其它