“Thinkphp5.0 nginx配置文件”与“Thunderbird”:页面之间的差异

来自linuxsa wiki
(页面间差异)
跳转到导航 跳转到搜索
Evan留言 | 贡献
导入1个版本
 
Evan留言 | 贡献
 
第1行: 第1行:
thinkphp5.0 nginx配置文件


==问题来由==
=install=
亮亮同学要用thinkphp5.0 但是搞不定,突然想起以前帮一个兄弟搞过,于是要回配置文件,搞定
<pre>
apt install thunderbird #虽然版本比较老,还是英文的 但是够用了 可以选择中文
要新的 直接官方下载个英文的 再作个ico 直接改个ln


== config==
sudo mv /usr/bin/thunderbird /usr/bin/thunderbird-bak
<pre>
sudo ln -s /home/evan/apps/thunderbird/thunderbird /usr/bin/thunderbird
server {
 
    listen 80;
/usr/share/applications/
    server_name tm.sh.com;
    charset utf-8;
    access_log /data/logs/nginx_access.log;
    root /data/www/tm;
    index index.php index.htm index.html;
    error_page  404              /404.html;
    location = /404.html {
        return 404 'Sorry, File not Found!';
    }
    error_page  500 502 503 504  /50x.html;
    location = /50x.html {
        root  /usr/share/nginx/html;
    }
    location / {
        try_files $uri @rewrite;
    }
    location @rewrite {
        set $static 0;
        if  ($uri ~ \.(css|js|jpg|jpeg|png|gif|ico|woff|eot|svg|css\.map|min\.map)$) {
            set $static 1;
        }
        if ($static = 0) {
            rewrite ^/(.*)$ /index.php?s=/$1;
        }
    }
    location ~ /Uploads/.*\.php$ {
        deny all;
    }
    location ~ \.php/ {
      if ($request_uri ~ ^(.+\.php)(/.+?)($|\?)) { }
      fastcgi_pass 127.0.0.1:9000;
      include fastcgi_params;
      fastcgi_param SCRIPT_NAME    $1;
      fastcgi_param PATH_INFO      $2;
      fastcgi_param SCRIPT_FILENAME $document_root$1;
    }
    location ~ \.php$ {
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }
    location ~ /\.ht {
        deny  all;
    }
}
</pre>
</pre>


==参考==
=usage=
[http://www.thinkphp.cn/topic/34380.html 老朱亲自写的,最完美ThinkPHP Nginx 配置文件]
添加什么的 和正常的一样  弹出的窗口选择 已存在的帐号 skip this and user my existing email
  [[category:nginx]]
或者 Local Folders(左边)-->create a new account -->email->
 
  默认的Oauth2  然后弹出的窗口选择 同上
 
=cc多个人=
一般 第二行是to,  第三 ,四  行都是自动 为cc 多行后 变成红色后就可以 用 , 分开多个cc对象
 
=cc or bc =
抄送英文是cc(Carbon copy)而密送是bcc(blind carbon copy)。
一般 第二行是to  第三 4  行都是自动 为cc 多行后 变成红色后就可以 用 , 分开多个cc对象
 
 
虽然很简单,但是在日常工作中经常看到有同学把这俩搞混的,甚至乱用。
 
本来邮件内容平淡无奇,但是弄错了cc和bcc之后,经常会引起误会和不必要的麻烦。
 
 
 
  [[category:Desktop]]

2022年7月4日 (一) 02:51的最新版本

install

 apt install thunderbird #虽然版本比较老,还是英文的 但是够用了 可以选择中文
 要新的 直接官方下载个英文的 再作个ico 直接改个ln 

sudo mv /usr/bin/thunderbird /usr/bin/thunderbird-bak
sudo ln -s /home/evan/apps/thunderbird/thunderbird /usr/bin/thunderbird

/usr/share/applications/

usage

添加什么的 和正常的一样 弹出的窗口选择 已存在的帐号 skip this and user my existing email 或者 Local Folders(左边)-->create a new account -->email->

 默认的Oauth2  然后弹出的窗口选择 同上

cc多个人

一般 第二行是to, 第三 ,四 行都是自动 为cc 多行后 变成红色后就可以 用 , 分开多个cc对象

cc or bc

抄送英文是cc(Carbon copy)而密送是bcc(blind carbon copy)。 一般 第二行是to 第三 4 行都是自动 为cc 多行后 变成红色后就可以 用 , 分开多个cc对象


虽然很简单,但是在日常工作中经常看到有同学把这俩搞混的,甚至乱用。

本来邮件内容平淡无奇,但是弄错了cc和bcc之后,经常会引起误会和不必要的麻烦。