随身 WIFI 板子安装 LNMP 教程

装 LNMP,准备工作 # 连 wifinmtui# 更新源apt-get update# 装 ssl 证书sudo apt install apt-transport-https ca-certificates# 修改源文件权限 使其能用 xftp 直接编辑chmod 777 /etc/apt/sources.listsources.list 源内容,可根据个人喜好选择源 # deb http://mirrors.163.com/debian/ bullseye main contrib non-free# deb http://security.debian.org/ bullseye-security main contrib non-free# 默认注释了源码镜像以提高 apt update 速度# 清华大学的软件源deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free# 阿里云的软件源# deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib# deb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contrib# deb https://mirrors.aliyun.com/debian-security/ bullseye-security main# deb-src https://mirrors.aliyun.com/debian-security/ bullseye-security main# deb https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib# deb-src https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib# deb https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib# deb-src https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib# 中科大的软件源# deb https://mirrors.ustc.edu.cn/debian/ bullseye main contrib non-free # deb-src https://mirrors.ustc.edu.cn/debian/ bullseye main contrib non-free # deb https://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-free # deb-src https://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-free # deb https://mirrors.ustc.edu.cn/debian/ bullseye-backports main contrib non-free # deb-src https://mirrors.ustc.edu.cn/debian/ bullseye-backports main contrib non-free # deb https://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib non-free # deb-src https://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib non-free 继续执行命令安装 PHP、Nginxapt-get updateapt-get upgrade# 安装 PHP 拓展sudo apt-get install -y php php-fpm php-curl php-gd php-intl php-mbstring php-mysql php-imap php-opcache php-sqlite3 php-xml php-xmlrpc php-zip# 查看 php 版本 验证是否成功php -vsudo apt-get install nginx# 验证 nginx 是否成功 安装 curl、nano 编辑器、wgetapt-get install curl nano wgetcurl 127.0.0.1# 找到 index 配置,添加 index.phpsudo nano /etc/nginx/sites-enabled/default 找到# pass PHP scripts to FastCGI server 后面的 location 删除注释如下 location ~ \.php$ {include snippets/fastcgi-php.conf;## # With php-fpm (or other unix sockets):fastcgi_pass unix:/run/php/php7.3-fpm.sock;# # With php-cgi (or other tcp sockets):#fastcgi_pass 127.0.0.1:9000;} 重启 nginx 验证 phpsudo systemctl restart nginxsudo nano /var/www/html/phpinfo.php 新建 phpinfo.php 文件验证,文件内容为 <?phpphpinfo(); 电脑浏览器访问:http://192.168.68.1/phpinfo.php 即可看到 PHP 探针信息。 安装 MySqlsudo apt-get install mariadb-server mariadb-clientsudo mysql_secure_installation# 参考sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf# 将 bind-address 这行注释掉# 或者将 127.0.0.1 这个值改为 0.0.0.0# 然后重启sudo systemctl restart mariadb.service 设置远程访问权限 mysql -u root -puse mysql;# 例如账号 root 密码 rootpwdGRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'rootpwd' WITH GRANT OPTION;flush privileges;# ctrl + c 退出界面,执行命令重启服务sudo systemctl restart mariadb.service# 查看 mysql 服务状态sudo systemctl status mariadb.service 安装 Z -Blog 示例 cd /var/www/html/# 上传程序包到该目录wget https://update.zblogcn.com/zip/Z-BlogPHP_1_7_2_3060_Tenet.zipunzip Z-BlogPHP_1_7_2_3060_Tenet.zip# 返回上一级,将网站目录文件全部授权 777(个人之便)cd ..chmod -R 777 ./html 然后访问:http://192.168.68.1 即可安装网站程序。执行命令:ip addr 获取棒子连接 WIFI 的地址,记下来会用到。 拔掉随身 WIFI 随便插在某个插头上,等几分钟后访问 ip addr 获取的 ip 即可访问网站。 后续也可以内网穿透来公网访问,根据个人喜好来安装吧!

利用 Docker 安装 owncloud、nextCloud 网盘教程

OwnCloud现在各种云盘都要收费,又或有速度限制,感觉用起来很不方便,想抽时间想搭建一个私有云盘。很久以前听过 owncloud,一直没使用,今日就一睹真容吧。第一步:首先在服务器上安装 docker 服务,在操作 yum install docker 的时候,发现用 service docker start 的时候不成功,发现是跟操作系统版本有关,在 Centos 低版本的时候,应该使用 yum install docker-io, 安装成功后,可以用 docker -v 查看版本;第二步:启动 docker 服务。service docker start;第三步:进入 docker,下载 owncloud 镜像,使用命令 docker pull owncloud;第四步:运行 docker run -d -p 9090:80 owncloud, 映射端口号,启动 owncloud 镜像;第五步:在浏览器中输入“服务器的 IP 地址:9090”就看见 owncloud 的网页界面了,我对云盘要求不高,默认使用 SQLite 数据库,输入用户名和密码然后确认就可以了。第六步:在浏览器界面输入刚刚输入的用户名和密码,即可进入 owncloud 保存文件,这样一个私有云盘就构建成功了。我们可以通过 docker exec -i -t owncloud /bin/bash,或是 docker exec -i -t owncloud 的 id 号 /bin/bash 进入查看,进入系统目录,发现它感觉是个精简的 linux 操作系统,文件默认保存的路径在 /var/www/html/data 目录里,进入你的用户名目录,就可以查看保存的文件。安装 nextCloudDocker 安装部署 nextcloud 个人网盘 环境搭建:先完成 docker 的安装配置 配置好镜像加速器,不然速度可能上龟速。mysql 配置 然后拉取 mysql 镜像:docker pull mysql查看是否拉取成功:docker images #查看是否成功然后基于镜像运行容器:docker run -d -p 3306:3306 -v /mnt/sde/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=WZS134125 --name mysql mysql-d 以后台进程方式运行-p 端口映射 将容器 3306 映射到主机 3306 端口-v 将容器 /var/lib/mysql 映射到主机的 /mnt/sde/mysql 下-e 设置环境变量 数据库密码 WZS134125--name 设置容器名称 mysql 最后指定镜像 mysql 配置 mysql 数据库容器docker exec -it mysql /bin/bash #进入 docker 容器-it: 提供一个虚拟终端mysql: 容器名称或者 id/bin/bash: 终端命令行 进入容器内,然后登陆数据库mysql -uroot -pWZS134125然后配置权限,远程登陆CREATE database nextcloud; #创建一个 nextcloud 的数据库GRANT ALL ON *.* TO 'root'@'%'; #设置 root 账号任意 ip 登录ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'WZS134125';flush privileges; 上面的命令是设置 root 用户远程登陆以及无法登陆时的 数据库操作完成nextclouddocker pull nextcloud # 拉取 nextcloud 镜像docker run -d --restart=always -p 8888:80 -v /mnt/sde/nextcloud:/var/www/html -link mysql:mysql --name nextcloud nextcloud-d 后台进程运行-p 映射端口, 将容器 80 端口映射为主机的 8888 端口,可以自行修改端口,不过防火墙需要放通。-v 挂载目录,将容器 /var/www/html 挂载到主机 /mnt/sde/nextcloud 下面--link 链接数据库容器,链接使用 mysql 容器镜像 mysql(容器名称)--name 名称,指定容器的名称为 nextcloudnextcloud 使用的基础镜像。 网页配置 http://ip:8888, 这个是刚刚配置的服务器地址加上刚刚映射的主机端口。 输入用户名密码,数据库使用 MYSQL,数据库以后用户密码, 数据库 nextcloud,地址写内部地址 172.17.0.2.然后安装指示一路填写信息,安装就好了。错误 如果提示不信任域名访问vim /mnt/sde/nextcloud/config/config.php 编辑配置文件。0 =>’10.10.0.212:8888’, 添加。重启容器服务 docker restart nextcloud 。 完成。Docker 安装部署 nextcloud 个人网盘 - 骑着蜗牛路过你的风景 - 博客园我的命令:docker run -d --restart=always -p 9099:80 -v /root/disk:/var/www/html --name nextcloud nextcloud

利用 Docker 安装 owncloud、nextCloud 网盘教程

仿羊了个样 Github 源码及演示地址

个人觉得打发时间玩玩还是挺不错的,无限道具,可选关卡。 源码:https://github.com/StreakingMan/solvable-sheep-game 演示地址:http://xkai.cc/http://92kj.cn/emo/

仿羊了个样 Github 源码及演示地址

刷爆朋友圈的微信小游戏“羊了个羊”源码

羊了个羊游戏属于是一款益智游戏闯关类的,新颖的三消类游戏,玩了就停不了。羊了个羊游戏玩法: 1、在游戏中体验前所未有的消除乐趣,海量的关卡,换上不一样的服装道具等; 2、大家一起玩的时候要注意槽位,千万不能让槽位满了,还有下层出现的卡牌; 3、尽可能的按下插槽里东西,有大量的道具可以使用,可爱的小羊们就能一起玩游戏了。 羊了个羊游戏下载特色: 1、羊了个羊下载后的玩法非常简单,乐趣水平高,简单的画面就能体现出游戏的亮点; 2、直接下载安装包,布局体验,无需下载捆绑任何的软件; 3、每一个关卡都能带来新的体验,使用道具撤出或者移动三个砖块,体验消除道具的玩法 羊了个羊游戏亮点: 1、玩该游戏需要动动三个手指消除三个相同的物品,羊了个羊的每个游戏关卡都是可以随意地挑战的; 2、搞清楚游戏的玩法,不能有三个不同的位置,不然很容易输,游戏规则简单,但难度大; 3、当下比较的火,可以看到布局下面的四行牌,只能看到首张的牌,完全不能想出下一张牌是什么。程序说明没有后台 无需数据库 无需授权 代码无加密下载:http://lanzouw.com/b05up3k6f

一句话知乎 60 秒读懂世界 PHP 源码

知乎地址:https://zhuanlan.zhihu.com/p/401984268 源码很简单,解析知乎接口数据输出即可:<?phpecho json_decode(file_get_contents("https://www.zhihu.com/api/v4/columns/c_1261258401923026944/items"),true)['data'][0]['content'];

resellerclub 查询域名是否可以注册接口

例如查询 cway.pw 网址是否被注册,接口示例: https://cn.resellerclub.com/shop/domain-search.php?domain_names%5B%5D=cway&tlds%5B%5D=pw&action=multiple-check-availability&idn_language= 其返回报文 { "status": "success", "data": { "cway.pw": { "classkey": "dotpw", "status": "available", "phase": "ga", "supersite-source": "direct" } }}status 为 available 即域名有效,可以被注册

几大国际知名域名注册商介绍

对于站长来说,说到域名大家是再熟悉不过了,域名(Domain Name)是由一串用“点”分隔的字符组成,用于在数据传输时标识计算机位置,其主要目的就是便于记忆和访问网站。在租用国外虚拟主机或者国外服务器时,主机商首先都会要求我们填写域名信息。由于我们的网站内容只有通过域名才能被其他用户访问,因此,这一步也是必不可少的。在建站的过程中,主机、域名以及程序是最基本的三要素,是密不可分的“三兄弟”。前面,主机侦探为大家介绍了十大美国主机、十大开源程序。今天,就为大家简单介绍下几大知名的国外域名注册商,也让大家在注册域名时有个参考。国外域名注册商推荐一、Namecheap(官网直达)【无中文】Namecheap 是 ICANN 认可的一家成立于 2001 年域名注册商,主要提供域名注册相关服务。在域名注册领域的的名气还是很大的,他们已经为全球约 300 万客户管理着超过 700 万个域名。近几年来 Namecheap 域名注册业务因管理方便和域名性价比高而备受国内外广大站长的青睐。同时 Namecheap 经常推出优惠活动和优惠码,所以吸引不少客户。支付方式:Namecheap 目前支持的有信用卡和 Paypal 两种方式。Namecheap 优惠信息具体可以访问:Namecheap 优惠码。国外域名注册商推荐二、NameSilo 域名提供商 ( 官网直达)【无中文 访问慢】NameSilo 是一家成立于 2009 年的域名注册商,同时也是 ICANN 认证的域名注册商之一。近几年 Namesilo 的发展越来越迅速,已经成为是比较知名的国外域名商之一。虽然没有 GoDaddy 知名度高,但是域名注册价格便宜,而且提供免费的域名停放、免费隐私保护等功能。Namesilo 域名注册商在一定程度上还是有不少用户喜欢的,其主要原因是价格便宜和提供免费的域名隐私。Namesilo 针对新注册用户推出了 1 美元的优惠码:idcspy2020,比如我们需要购买一个.COM 域名需要 8.99 美元,使用优惠之后即 7.99 美元,性价比还是很高的。更多优惠可访问:Namesilo 优惠码\支付方式:**目前 Namesilo 支付宝和 PayPal 等,购买还是很方便的。国外域名注册商推荐三、ResellerClub(官网直达)【中文】Resellerclub 成立于 1998 年,是全球最大的域名主机提供商之一, 拥有 20 多万代理商及 500 多万域名保有量。ResellerClub 支持多种域名后缀,具有域名隐私保护、转入转出方便、安全性高和免费邮件邮件转发等优势。ResellerClub 域名注册价格便宜,而且还会不定期推出优惠促销活动,目前有 40 款 ResellerClub 域名参加活动,其中.net 低至 49 元,.xyz 低至 8 元,具体活动可以访问:ResellerClub 优惠码。支付方式:ResellerClub 目前支付方式有信用卡、支付宝和 Paypal 等等。国外域名注册商推荐四、GoDaddy(官网直达)【中文】Godaddy 是全球最大的域名注册商,主要提供域名注册和主机托管业务。当然,作为全球最大的域名注册商,GoDaddy 的域名后缀齐全,管理方便,安全性高,目前管理的域名超过 7100 万个。其实国内注册 GoDaddy 域名费用都不贵,例如,.com 域名初次年费是 11.99$。当然,在 GoDaddy 注册的域名,它的标价是不包含 ICANN 的管理费用的。因此,域名的注册总价格应该是官网的标价 +ICANN 管理费用。此外,GoDaddy 还有很多优惠活动,目前在 GoDaddy 注册.com 域名只需 80.86 元 / 年,而注册其它任意后缀域名,也可以享受一定优惠。参考:GoDaddy 域名优惠码。支付方式:Godaddy 常用的支付方式有信用卡、支付宝、有绑定过信用卡的 Paypal、gift card 等。国外域名注册商推荐五、Dynadot(官网直达)【无中文】Dynadot 是一家美国域名注册商,成立于 2002 年,公司位于美国加利福尼亚州。Dynadot 不但是国外最大域名注册商之一,同时也是国外域名注册的先行者。Dynadot 一直秉承专业、诚信、服务、进取、创新的价值观,向用户提供优质产品和优质服务,从而赢得了广大用户的青睐。目前 Dynadot 为大家提供大多数常见顶级域名和国家级域名注册服务,注册价格都比较便宜,像是.com 后缀域名优惠之后年付价格一般在 5.99 美元左右,而且还免费赠送 Whois 保护。Dynadot 域名管理方便,可以自由转入转出以及买入卖出域名,并提供免费域名停放、域名 / 隐形跳转和 DNS 设置。Dynadot 最新优惠信息具体可以访问:Dynadot 域名优惠码支付方式:Dynadot 支持的付款方式有很多,主要有支付宝、信用卡、Paypal 等。国外域名注册商推荐六、Domain 域名提供商 ( 官网直达)【无中文】Domain 是一家成立于 2000 年的美国域名注册商,隶属 EIG 旗下的域名品牌公司。现在 Domain 主要提供域名注册等多种 IDC 综合业务,发展至今 Domain 已经成为域名注册全球领先企业之一。相对于 GoDaddy、Namecheap 等比较知名的域名注册商来说,Domain 域名注册业务大家可能不是很熟悉。但近几年 Domain 因其域名注册价格比较便宜也逐渐受到国内用户的青睐。目前 Domain 提供给大多数常见顶级域名和超过 25 个国家代码顶级域名,平时注册价格还是比较贵的,像是.com 域名价格一般在 25 美元左右,而且域名隐私保护还需要 8.99 美元一年。支付方式:目前 Domain 只支持信用卡和 PayPal 两种方式,希望以后能增加支付宝或者微信付款,这样对于国内用户购买就比较方便了。总之,以上就是为大家介绍几种比较知名的国外域名商。由于这几家域名商在域名安全、服务体验方面都比较不错,而且价格也不贵。因此,成为国内大多站长的主流选择。如果大家要想在国外域名商注册域名的话,推荐大家在这几家注册,毕竟口碑各方面都比较好。

几大国际知名域名注册商介绍

网站蓝奏云下载链接无法访问解决方法

官方给出建议将网址中 lanzous.com 改成 lanzoux.com 或者 lanzoui.com 即可。 那么普通站长,有很多蓝奏云链接怎么办呢?难道需要一个个编辑帖子么?不需要,以 zblog 为例,执行 sql 就是:UPDATE zbp_post set log_Content = REPLACE(log_Content,'lanzous.com','lanzoux.com') 是不是简单粗暴又实用呢!

Z-BlogPHP 官方文档

占个坑,方便今后查阅 文档地址:https://docs.zblogcn.com/php/#/

纯 HTML/CSS 节日灯笼代码 给你网站加点节日气息

效果图: 灯笼可自适应网页大小,并且自动贴两边 代码: <style type="text/css"> .ct2 .mn {width:770px;} .ct2 .sd {width:218px;} @media screen and (max-width:768px) {.xnkl {display:none;} } .deng-box {position:fixed;top:-40px;right:150px;z-index:9999;pointer-events:none;} .deng-box1 {position:fixed;top:-30px;right:10px;z-index:9999;pointer-events:none} .deng-box2 {position:fixed;top:-40px;left:150px;z-index:9999;pointer-events:none} .deng-box3 {position:fixed;top:-30px;left:10px;z-index:9999;pointer-events:none} .deng-box1 .deng,.deng-box3 .deng {position:relative;width:120px;height:90px;margin:50px;background:#d8000f;background:rgba(216,0,15,.8);border-radius:50% 50%;-webkit-transform-origin:50% -100px;-webkit-animation:swing 5s infinite ease-in-out;box-shadow:-5px 5px 30px 4px #fc903d} .deng {position:relative;width:120px;height:90px;margin:50px;background:#d8000f;background:rgba(216,0,15,.8);border-radius:50% 50%;-webkit-transform-origin:50% -100px;-webkit-animation:swing 3s infinite ease-in-out;box-shadow:-5px 5px 50px 4px #fa6c00} .deng-a {width:100px;height:90px;background:#d8000f;background:rgba(216,0,15,.1);margin:12px 8px 8px 8px;border-radius:50% 50%;border:2px solid #dc8f03} .deng-b {width:45px;height:90px;background:#d8000f;background:rgba(216,0,15,.1);margin:-4px 8px 8px 26px;border-radius:50% 50%;border:2px solid #dc8f03} .xian {position:absolute;top:-20px;left:60px;width:2px;height:20px;background:#dc8f03} .shui-a {position:relative;width:5px;height:20px;margin:-5px 0 0 59px;-webkit-animation:swing 4s infinite ease-in-out;-webkit-transform-origin:50% -45px;background:orange;border-radius:0 0 5px 5px} .shui-b {position:absolute;top:14px;left:-2px;width:10px;height:10px;background:#dc8f03;border-radius:50%} .shui-c {position:absolute;top:18px;left:-2px;width:10px;height:35px;background:orange;border-radius:0 0 0 5px} .deng:before {position:absolute;top:-7px;left:29px;height:12px;width:60px;content:" ";display:block;z-index:999;border-radius:5px 5px 0 0;border:solid 1px #dc8f03;background:orange;background:linear-gradient(to right,#dc8f03,orange,#dc8f03,orange,#dc8f03)} .deng:after {position:absolute;bottom:-7px;left:10px;height:12px;width:60px;content:" ";display:block;margin-left:20px;border-radius:0 0 5px 5px;border:solid 1px #dc8f03;background:orange;background:linear-gradient(to right,#dc8f03,orange,#dc8f03,orange,#dc8f03)} .deng-t {font-family: 黑体,Arial,Lucida Grande,Tahoma,sans-serif;font-size:3.2rem;color:#dc8f03;font-weight:700;line-height:85px;text-align:center} .night .deng-box,.night .deng-box1,.night .deng-t {background:0 0!important} @-moz-keyframes swing {0% {-moz-transform:rotate(-10deg)} 50% {-moz-transform:rotate(10deg)} 100% {-moz-transform:rotate(-10deg)} } @-webkit-keyframes swing {0% {-webkit-transform:rotate(-10deg)} 50% {-webkit-transform:rotate(10deg)} 100% {-webkit-transform:rotate(-10deg)} } </style> <div id="wp"class="wp"><div class="xnkl"><div class="deng-box2"><div class="deng"><div class="xian"></div><div class="deng-a"><div class="deng-b"><div class="deng-t"> 度 </div></div></div><div class="shui shui-a"><div class="shui-c"></div><div class="shui-b"></div></div></div></div><div class="deng-box3"><div class="deng"><div class="xian"></div><div class="deng-a"><div class="deng-b"><div class="deng-t"> 欢 </div></div></div><div class="shui shui-a"><div class="shui-c"></div><div class="shui-b"></div></div></div></div><div class="deng-box1"><div class="deng"><div class="xian"></div><div class="deng-a"><div class="deng-b"><div class="deng-t"> 春 </div></div></div><div class="shui shui-a"><div class="shui-c"></div><div class="shui-b"></div></div></div></div><div class="deng-box"><div class="deng"><div class="xian"></div><div class="deng-a"><div class="deng-b"><div class="deng-t"> 新 </div></div></div><div class="shui shui-a"><div class="shui-c"></div><div class="shui-b"></div></div></div></div></div>

纯 HTML/CSS 节日灯笼代码 给你网站加点节日气息