最新发布第8页
N17※Win11右键默认显示更多选项-霜林轩

N17※Win11右键默认显示更多选项

1> 打开终端 首先用鼠标右键点击“开始”按钮(或者按Win+X键),选择点击 “Windows 终端(管理员) 2> 输入下列代码 reg.exe add 'HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a5...
L35※设置或删除swap虚拟内存-霜林轩

L35※设置或删除swap虚拟内存

1> 创建swap文件 ① 创建 Swap 文件 #创建swap文件,分区大小为4G sudo dd if=/dev/zero of=/swapfile count=4096 bs=1M ② 激活 Swap 文件 sudo chmod 600 /swapfile sudo mkswap /swapfile ③...
slzxf的头像-霜林轩slzxf2年前
510
N34※国内外公共DNS汇总-霜林轩

N34※国内外公共DNS汇总

1> 国内公共DNS 供应商IPV4IPV6DOHDOT阿里云223.5.5.5223.6.6.62400:3200::12400:3200:baba::1https://dns.alidns.com/dns-queryhttps://223.5.5.5/dns-queryhttps://223.6.6.6/dns-querydns...
slzxf的头像-霜林轩slzxf4个月前
490
L50※开启nginx浏览目录及美化-霜林轩

L50※开启nginx浏览目录及美化

1> 下载fancyindex模块 cd /usr/local wget https://hub.condor.vip/ngx-fancyindex/ngx-fancyindex-0.5.2.tar.xz tar xvf ngx-fancyindex-0.5.2.tar.xz 2> 重新编译nginx 添加ngx-fancyi...
slzxf的头像-霜林轩slzxf6个月前
450
N29※flask 编写后端api-霜林轩

N29※flask 编写后端api

1> 第一个程序 from flask import Flask app = Flask(__name__) @app.route('/') def hello(): return 'hello,world@' 2> 路由配置 ① 使用装饰器 @app.route(url_name, methods) ② 使用...
N33※修复windows 系统-霜林轩

N33※修复windows 系统

以管理员身份运行Windows PowerShell Dism /Online /Cleanup-Image /ScanHealth Dism /Online /Cleanup-Image /CheckHealth DISM /Online /Cleanup-image /RestoreHealth sfc /SCANNOW 重启电脑...
N27※python脚本-霜林轩

N27※python脚本

1> 一段时间内只允许调用1次函数 import time def once_per_period(period): def decorator(func): last_called = 0 def wrapper(*args, **kwargs): nonlocal last_called now = time.time()...
L47※debian关闭ipv6服务-霜林轩

L47※debian关闭ipv6服务

vim /etc/sysctl.conf net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 sysctl -p
slzxf的头像-霜林轩slzxf8个月前
310
191231※开启个人博客生涯-霜林轩

191231※开启个人博客生涯

~点滴记忆~ 2019-12-24 恭喜您完成备案! 备案订单号: *******(主办单位名称:***,备案域名:******.com等),已经通过管局审核,通信管理局将下发网站备案号及备案密码到主体负责人的手机和...
slzxf的头像-霜林轩slzxf11个月前
270
L49※重置MariaDB或MySQL密码-霜林轩

L49※重置MariaDB或MySQL密码

1> 停止数据库服务器 sudo systemctl stop mysql sudo systemctl stop mariadb 2> 跳过数据库密码验证 sudo mysqld_safe --skip-grant-tables --skip-networking & mysql -uroot use ...
slzxf的头像-霜林轩slzxf6个月前
270