GithubHelp home page GithubHelp logo

wulabing / h5ai_onekey_install-lnp- Goto Github PK

View Code? Open in Web Editor NEW
49.0 49.0 57.0 174 KB

基于lnp(linux+nginx+php)的h5ai的傻瓜式一键安装脚本

License: GNU General Public License v3.0

Shell 100.00%
h5ai

h5ai_onekey_install-lnp-'s People

Contributors

wulabing avatar yanshibin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

h5ai_onekey_install-lnp-'s Issues

SSL 证书生成失败??

[OK] SSL 证书生成脚本安装成功
h5ai.sh: line 191: /root/.acme.sh/acme.sh: No such file or directory
[Error] SSL 证书生成失败

证书安装完后网站显示index,ip地址显示welcome to nginx

大佬,想问个问题。我安装完sspanel,安装大佬的一键脚本,成功拿到证书,结果网站打开是index页面
image
如上图,ip地址打开发现是nginx的欢迎页面。我想显示自己的网站地址,在网路上搜索很久,没有什么好办法,大佬能回复一下吗啊?感谢!
我是在Digital Ocean上安装的Debian8系统。
/etc/nginx/sites-enabled/default,我编辑的是这个文件

root@debian-s-1vcpu-1gb-nyc3-01:/etc/nginx/sites-enabled# vim default
server {
listen 80 138.197.15.188;
listen [::]:80 2604:a880:800:a1::c3f:4001;
return 301 $scheme://xzwk.gq$request_uri;

    # SSL configuration
    #
    # listen 443 ssl default_server;
    # listen [::]:443 ssl default_server;
    #
    # Note: You should disable gzip for SSL traffic.
    # See: https://bugs.debian.org/773332
    #
    # Read up on ssl_ciphers to ensure a secure configuration.
    # See: https://bugs.debian.org/765782
    #
    # Self signed certs generated by the ssl-cert package
    # Don't use them in a production server!
    #
    # include snippets/snakeoil.conf;

    root /var/www/html;

    # Add index.php to the list if you are using PHP
    index index.html index.htm index.nginx-debian.html;

    server_name _;

    location / {
            # First attempt to serve request as file, then
            # as directory, then fall back to displaying a 404.
            try_files $uri $uri/ =404;
            # Uncomment to enable naxsi on this location
            # include /etc/nginx/naxsi.rules;
    }

SSL证书过期

请问SSL证书过期,会自动续签么?
如果不会,怎么操作?
谢谢!

google cloud platform 安装失败

下面是log
cat h5ai.log
[OK] 当前系统为 Debian 9
[OK] 当前用户是root用户,进入安装流程
请选择安装内容

  1. h5ai
  2. SSL
  3. h5ai+SSL
    Hit:1 http://packages.cloud.google.com/apt cloud-sdk-stretch InRelease
    Ign:2 http://deb.debian.org/debian stretch InRelease
    Hit:3 http://security.debian.org stretch/updates InRelease
    Hit:4 http://deb.debian.org/debian stretch-updates InRelease
    Hit:5 http://packages.cloud.google.com/apt google-compute-engine-stretch-stable InRelease
    Hit:6 http://deb.debian.org/debian stretch-backports InRelease
    Hit:7 http://packages.cloud.google.com/apt google-cloud-packages-archive-keyring-stretch InRelease
    Hit:8 http://deb.debian.org/debian stretch Release
    Reading package lists...
    Building dependency tree...
    Reading state information...
    35 packages can be upgraded. Run 'apt list --upgradable' to see them.
    Reading package lists...
    Building dependency tree...
    Reading state information...
    bc is already the newest version (1.06.95-9+b3).
    net-tools is already the newest version (1.60+git20161116.90da8a0-1).
    unzip is already the newest version (6.0-21).
    wget is already the newest version (1.18-5+deb9u1).
    0 upgraded, 0 newly installed, 0 to remove and 35 not upgraded.
    域名dns解析IP:35.229.162.xxx
    本机IP: 10.140.0.5
    [Error] 域名dns解析IP 与 本机IP 不匹配 是否继续安装?(y/n)
    继续安装
    deb http://packages.dotdeb.org jessie all
    deb-src http://packages.dotdeb.org jessie all
    OK
    [OK] 导入 GPG 秘钥成功
    Hit:1 http://security.debian.org stretch/updates InRelease
    Hit:2 http://packages.cloud.google.com/apt cloud-sdk-stretch InRelease
    Ign:3 http://deb.debian.org/debian stretch InRelease
    Hit:4 http://deb.debian.org/debian stretch-updates InRelease
    Hit:5 http://packages.cloud.google.com/apt google-compute-engine-stretch-stable InRelease
    Hit:6 http://deb.debian.org/debian stretch-backports InRelease
    Hit:7 http://packages.cloud.google.com/apt google-cloud-packages-archive-keyring-stretch InRelease
    Hit:8 http://deb.debian.org/debian stretch Release
    Get:10 http://packages.dotdeb.org jessie InRelease [9,872 B]
    Get:11 http://packages.dotdeb.org jessie/all Sources [47.8 kB]
    Get:12 http://packages.dotdeb.org jessie/all amd64 Packages [236 kB]
    Fetched 293 kB in 2s (110 kB/s)
    Reading package lists...
    Reading package lists...
    Building dependency tree...
    Reading state information...
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

The following packages have unmet dependencies:
nginx : Depends: nginx-full (>= 1.12.2-1dotdeb+8.1) but it is not going to be installed or
nginx-light (>= 1.12.2-1
dotdeb+8.1) but it is not going to be installed or
nginx-extras (>= 1.12.2-1dotdeb+8.1) but it is not going to be installed
Depends: nginx-full (< 1.12.2-1
dotdeb+8.1.1~) but it is not going to be installed or
nginx-light (< 1.12.2-1dotdeb+8.1.1) but it is not going to be installed or
nginx-extras (< 1.12.2-1dotdeb+8.1.1) but it is not going to be installed
[Error] nginx 安装失败

这不是issue,本脚本+隔壁V2Ray_ws-tls_bash_onekey 部署在一个机器上方法

亲自测试可行,为了让站点更具隐蔽性而且还可以多发挥一点vps的热量,两个脚本可以合并无干扰运行。
1,先装v2ray那个 脚本
2,再装本脚本,注意开始的时候选1,别选2和3,因为在第一步已经申请证书了。
3,进目录/etc/nginx/conf.d,打开里面的h5hai.conf放一边
4,同目录下进入编辑模式打开v2ray.conf。建议拷贝出来用熟悉的编辑器,事后再拷贝回去。
5,修改的内容:
a,拷贝h5hai.conf里面root 一行和index一行,覆盖v2ray.conf里面对应的两行。
b,拷贝h5hai.conf里面location那一段。粘贴到v2ray.conf里面已经有的location一段的后面。拷贝整段的意思是一直到大括号完了的内容。还有粘贴过去的时候注意两段location之间是没有分号的。
6,重启nginx服务即可

至此域名访问是h5ai,同时v2ray照样运行。更可以支持cf嵌套,唯一需要修改的就是SSL 要使用full 或full(strick)
多谢这两个脚本,认为是见到的最好的脚本。
enjoy!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.