• 一看必会系列:nginx http跳转到https

    Linux 超过70 views围观 0条评论
    Setup HTTPS on Nginx Optimize HTTPS on Nginx and get an A+ score on the SSLlabs test. Optionally, set up HTTP Public Key Pinning (HPKP) Redirect all HTTP traffic to HTTPS in your Nginx config: 默认服务器写法 server { listen 80 default_server; listen [::]:80 default_server; server_name _; r...
  • nginx 官方源 2018

    Linux 超过57 views围观 0条评论
    Pre-Built Packages for Stable version To set up the yum repository for RHEL/CentOS, create the file named /etc/yum.repos.d/nginx.repo with the following contents: [nginx] name=nginx repo baseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/ gpgcheck=0 Replace “OS” with “rhel” or “centos”, de...
  • curl 查公网IP,外网IP的方法

    脚本技巧 超过133 views围观 0条评论
    命令行查询(详细): UNIX/Linux:#curl cip.cc Windows:>telnet cip.cc >ftp cip.cc var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_5304322'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s11.cnzz....
  • shell awk 传参

    脚本技巧 超过77 views围观 0条评论
    在写shell脚本时,经常会使用到awk程序。但是有些复杂的逻辑,可能需要在awk中使用在shell中定义的变量,而且awk程序处理之后,产生的中间变量,还需要在shell中继续处理。   一、那如何在awk中使用在shell中定义的变量呢? 方法一:使用"’把shell变量包起来,即"’$var’";注意是...