反代Google一键脚本

  • 7
  • 14,622 views
  • A+
所属分类:工具资源

之前介绍过在LNMP1.3环境下如何安装反代Google的扩展,近日在网上搜索的时候发现居然有一键脚本轻松搭建,在一台vps上试了下比较顺利的搭建成功。安装之前把你的域名A记录指向你的vps,最好自备ssl证书

项目地址:https://github.com/Char1sma/Shell_Collections/tree/master/ngx_google_deployment

一键安装

wget -N --no-check-certificate https://github.com/Char1sma/Shell_Collections/raw/master/ngx_google_deployment/ngx_google_deployment.sh
chmod +x ngx_google_deployment.sh
./ngx_google_deployment.sh install| tee -a ngx_google_deployment.log

反代Google一键脚本

安装过程中会提示你选择系统版本,然后输入反代google搜索和google学术的域名就可以开始安装了。大概几分钟后就安装好了。不过默认的证书是自签的,要想换成小绿锁的话得换成自己的ssl证书

执行vim /usr/local/nginx/conf/nginx.conf修改nginx配置中ssl证书的位置,证书放在/var/www/ssls文件夹,自行替换后执行/usr/local/nginx/sbin/nginx -s reload重载nginx配置文件。再次打开就是小绿锁了。

weinxin
我的微信公众号
我的微信公众号扫一扫

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:7   其中:访客  0   博主  0

    • Clarke Clarke 2

      Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

      能不能反代Twitter、Youtube这两个网站。

        • 厘米 厘米 9

          Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

          @Clarke 好像不行,反代youtube至少没看见人做过~

          • 同盟源 同盟源 7

            Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

            @Clarke 反代youtube视频是看不了的

              • 111 111 0

                Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

                @同盟源 已经可以了,https://laod.cn/hosts/hello-youtube-hosts.html

            • 阿西吧 阿西吧 3

              Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

              这个界面跟其他的反向代理google界面有点不一样!这个google学术的网站一打开就看见welcome to nginx! 这个是什么鬼?不过还好的是google搜索还能用!

                • 厘米 厘米 9

                  Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

                  @阿西吧 安装的时候会提示输入两次域名,第二个是学术的!

                    • 阿西吧 阿西吧 3

                      Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

                      @厘米 是输入两次域名了,单独打开Google学术搜索不行,但是打开Google搜索之后用Google学术就能正常了。