随身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节日灯笼代码 给你网站加点节日气息