演示地址:http://status.64ml.com/ ServerStatus中文版一个云探针、云监控、服务器云监控、多服务器探针 手动安装: git clone https://github.com/cppla/ServerStatus.git 【服务端】(ServerStatus/web下): 一、生成服务端程序 cd ServerStatus/server……
下载资料包:点击下载 1、用服务器下载后,解压,把smilies文件夹存放在当前主题的images文件夹内。 如wp-content/themes/simple/images/smilies 2、把smiley.php文件复制到当前主题的目录下 如wp-content/themes/simple/smiley.php 3、把一以下代码复制粘……
在主题函数founction.php里加入代码,wordpress后台——外观——编辑——founction.php add_action('comment_text','comments_embed_img',2); function comments_embed_img($comment){ <p style="padding-left: 30px;">$size =auto;</p>……
效果如图本站演示 实现效果: 在主题head.php或footer.php中加入以下代码,保存即可。(fireworks.js来源于网络,可自行保存) <canvas class="fireworks" style="position:fixed;left:0;top:0;z-index:99999999;pointer-events:none;"></canvas&……
H5ai: 文件目录列表程序,可以在线预览文本、图片、音频、视频等。 环境:lnmp,建议 PHP 7 版本,性能好效率高 下载:https://larsjung.de/h5ai/ 解压zip文件: unzip *.zip 修改文件夹名 :mv _h5ai h5ai 修改当前网站的Nginx配置文件:v……
进入后台,修改主题文件中的function文件,添加以下代码 function catch_that_image() { global $post; $first_img = ''; ob_start(); ob_end_clean(); $output = preg_match_all('/<img*.+src=[\'"]([^\'"]+)[\'"].*>/iU', wp_unslash($post->pos……
使用国外服务器做站,很难保证到国内各地区各网络运营商的速度,一般是需要给服务器安装加速工具,以多倍发包来提高速度(的注意服务器流量是否充足) 1、开启BBR或者BBRplus版,或者锐速 2、网站开启TLS1.3 3、装三个PHP扩展:opcache、memcached、……
缺胳膊少腿的总是很麻烦,要二次进入后台,就稍微解决一下 1、修改nginx.conf或wordpress.conf配置(看具体服务器的配置) vi /usr/local/nginx/conf/nginx.conf 或vi /usr/local/nginx/conf/wordpress.conf 2、在server里添加 location / { index i……
可部署在64MB,128MB等内存的服务器上,重点是折腾 1、一键安装lighttpd,默认目录为/var/www apt-get install lighttpd -y 2、一键安装SQLite apt-get install sqlite3 -y 添加database:sqlite3 DatabaseName.db 查看database:.databases Sqlite……
修改Nginx配置文件,启用rewrite: 1、vi /usr/local/nginx/conf/nginx.conf 2、在server里添加 if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; } if (!-f ……