wulabing / h5ai_onekey_install-lnp- Goto Github PK
View Code? Open in Web Editor NEW基于lnp(linux+nginx+php)的h5ai的傻瓜式一键安装脚本
License: GNU General Public License v3.0
基于lnp(linux+nginx+php)的h5ai的傻瓜式一键安装脚本
License: GNU General Public License v3.0
下面是log
cat h5ai.log
[OK] 当前系统为 Debian 9
[OK] 当前用户是root用户,进入安装流程
请选择安装内容
The following packages have unmet dependencies:
nginx : Depends: nginx-full (>= 1.12.2-1dotdeb+8.1) but it is not going to be installed ordotdeb+8.1) but it is not going to be installed or
nginx-light (>= 1.12.2-1
nginx-extras (>= 1.12.2-1dotdeb+8.1) but it is not going to be installeddotdeb+8.1.1~) but it is not going to be installed or
Depends: nginx-full (< 1.12.2-1
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 安装失败
原先服务器上使用你的v2ray一键安装脚本,安装的vless协议。但是使用这个脚本后,有提示80端口占用,最后导致安装失败,并且v2ray也失效了。
亲自测试可行,为了让站点更具隐蔽性而且还可以多发挥一点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!
[OK] SSL 证书生成脚本安装成功
h5ai.sh: line 191: /root/.acme.sh/acme.sh: No such file or directory
[Error] SSL 证书生成失败
请问SSL证书过期,会自动续签么?
如果不会,怎么操作?
谢谢!
大佬,想问个问题。我安装完sspanel,安装大佬的一键脚本,成功拿到证书,结果网站打开是index页面
如上图,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;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.