博文

目前显示的是标签为“nginx”的博文

OpenWrt安装 nginx php MySQL环境搭建 短连接服务器 web服务器php建站

vps  安装openwrt bash -c "$(wget -O- https://d.wanuse.com/op)" 第一步  OpenWrt安装 Nginx  视频教程:1/3 YouTube: https://youtu.be/MQJvJ08G7Zw B 站: https://www.bilibili.com/video/BV1Uc411M7Fz/ 命令安装: opkg update opkg install nginx nginx 配置文件 在etc/nginx/nginx.conf目录 server { # HTTP over IPv4 & IPv6         listen 8011;         listen [::]:8011; root /ddd;      index index.html index.php; include /etc/nginx/mime.types;      location ~ \.css {       add_header  Content-Type    text/css;         }      location ~ \.js {       add_header  Content-Type    application/x-javascript;         }   } 在根目录下创建ddd目录然后创建的 index.html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ddd</title> </head> <body> <h1>www.wanuse.com 1</h1> ...

debian免费vps服务器 nginx wbe服务器 github ngrok okteto

图片
 debian免费vps服务器 nginx wbe服务器 github ngrok okteto 一个免费的docker容器   https://github.com/ https://github.com/wandduse/xssh https://dashboard.ngrok.com/ https://cloud.okteto.com/ 用户名:root 密码:majalaya 必要一个github的账号,注册最好使用国外邮箱(大部分国内地区 登录github网站 速度都很慢。可找我要临时梯子,这是电报群https://t.me/PCDN3) github地址:https://github.com/ 然后到这个项目地址(https://github.com/wandduse/xssh)fork一下这个项目 按钮在右上角(下图画红圈的) 点击fork后滑倒页面下面点击Create fork 等待完成后。页面跳转到你自己的账户,这个项目已经到了你自己的仓库。 接下来修改一下配置文件config.sh  这个文件里只要修改一个链接密钥,这个密钥 需要在ngrok这个网站得到。 下面去登陆ngrok 依然使用github账号登录 https://dashboard.ngrok.com/ 登录后找到 You Authtoken 复制密钥。把密钥粘贴到 刚才github项目配置文件中这样就完成了项目的配置。 然后开始在okteto部署这个项目。 https://cloud.okteto.com  使用github登录 点击添加一个项目 选择使用git链接部署项目 把github上的项目地址粘贴到 URL那里点击右下角lannch开始部署。很快就完成了。 部署完成 回到 ngrok 找到用于 ssh链接的地址和端口 https://dashboard.ngrok.com/ 点击Cloud Edge 下面的Endpoints地址是这样的(  tcp://6.tcpngrok.io:14526)去掉tcp只要域名和端口。使用ssh连接工具就可以连接了。