首页
关于
友情链接
推荐
百度一下
哔哩哔哩
Search
1
The Forest(森林)服务器搭建教程
293 阅读
2
Valheim(英灵神殿)服务器搭建教程
213 阅读
3
GiB与GB的区别
144 阅读
4
OpenWrt怎么挂载硬盘和设置网络共享
105 阅读
5
日语五十音
63 阅读
默认分类
登录
Search
标签搜索
Linux
游戏
Windows
Markdown
日语
html
h5ai
计算机基础
docker
OpenWrt
卧云揽月
累计撰写
19
篇文章
累计收到
0
条评论
首页
栏目
默认分类
页面
关于
友情链接
推荐
百度一下
哔哩哔哩
搜索到
19
篇与
的结果
2022-06-29
Linux压缩加密与解密
用tar命令加密tar本身不带加密的功能,需要结合openssl来进行加密。命令:tar -zcf - 要加密的文件或目录 |openssl des3 -salt -k 加密的密码 | dd of=加密后的文件我们现在把root这个目录打包加密,密码123456,加密后的文件root.tar.gztar -zcf - root |openssl des3 -salt -k 123456 | dd of=root.tar.gz使用tar命令解密命令:dd if=加密的文件 |openssl des3 -d -k 加密密码 | tar zxf -使用密码123456,解压root.tar.gz这个文件dd if=root.tar.gz |openssl des3 -d -k 123456 | tar zxf -注意命令最后面的 - 它将释放所有文件,-k password 参数可以没有,没有时解压会提示输入密码。用zip命令加密命令:zip -re 加密后的文件名.zip 要加密的文件或目录-r:递归包括子目录-e:进行加密执行命令后,会提示让你输入两次密码。也可以使用-P直接加上密码zip -rP 密码 加密后的文件名.zip 要加密的文件或目录例如zip -re root.zip root zip -rP 123456 root.zip root使用zip命令解密命令:unzip 要解密的文件.zip按提示输入密码 也可以使用-P直接加上密码解压unzip -P 密码 要解密的文件.zip例如unzip root.zip unzip -P 123456 root.zip
2022年06月29日
18 阅读
0 评论
0 点赞
2022-06-20
GiB与GB的区别
Gibibyte(Giga binary byte)是信息或计算机硬盘存储的一个二进制单位,简称GiB。GB(Gigabyte)是十进制的容量单位,1GB等于1,000,000,000 Bytes。GiB 与 GB 的区别GiB1 GiB = 1024 MiB1 MiB = 1024 KiB1 KiB = 1024 BytesGB1 GB = 1000 MB1 MB = 1000 KB1 KB = 1000 Bytes因此,购买 160GB 的硬盘其实只有 149.0116119 GiB,厂商并没有欺骗顾客,更由于无法精确控制盘面的容量,大多数时候都会提供多余的空间以确保品质。扩展阅读B与bit数据存储是以“字节”(Byte)为单位,数据传输大多是以“位”(bit,又名“比特”)为单位,一个位就代表一个0或1(即二进制),每8个位(bit,简写为b)组成一个字节(Byte,简写为B),是最小一级的信息单位。简而言之,网络传输中普遍使用b作为单位,例如 100Mbps。数据存储中普遍使用B作为单位,例如 256GB。
2022年06月20日
144 阅读
0 评论
0 点赞
2022-06-20
Linux开启BBR方法
BBR (Bottleneck Bandwidth and Round-trip propagation time)是 Google 在 2016 年发布的拥塞控制算法。可以使 Linux 服务器显著提高吞吐量和减少 TCP 连接的延迟,适合在存在一定丢包率的弱网环境下使用。 项目地址:https://github.com/google/bbr开启 BBR 的前提是系统内核必须高于或等于4.9,Ubuntu 18.04、CentOS 8、Debian 9以及之后版本系统内核均为4.9以上,无需更换内核可以直接开启 BBR。1、修改系统变量echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf2、保存生效sysctl -p3、查看内核是否已开启BBRsysctl net.ipv4.tcp_available_congestion_control显示以下即已开启:# sysctl net.ipv4.tcp_available_congestion_control net.ipv4.tcp_congestion_control = bbr4、查看BBR是否启动lsmod | grep bbr显示以下即启动成功:# lsmod | grep bbr tcp_bbr 20480 14
2022年06月20日
17 阅读
0 评论
0 点赞
2022-06-18
h5ai界面美化
修改h5ai网页默认显示域名和网页标题1.修改默认显示域名打开 _h5ai/public/js/scripts.js ,Ctrl+F 找到下面一行"/"===t?p.getDomain():n.name修改为"/"===t?p'你想显示的内容':n.name2.修改网页标题修改_h5ai/private/php/pages/index.php 中的内容<title>index - powered by h5ai v0.30 (https://larsjung.de/h5ai/)</title>替换为<title>你想显示的内容</title>3.修改右上角信息:打开 _h5ai/public/js/scripts.js ,Ctrl+F 找到下面一行<a id="backlink" href="https://larsjung.de/h5ai/" title="powered by h5ai - https://larsjung.de/h5ai/">\n <div>powered</div>\n <div>by h5ai</div>\n </a>\n 4.页眉和页脚在对应目录下放置好 _h5ai.header(s).html(页眉) 或 _h5ai.footer(s).html(页脚)即可,设置将应用于该目录或该目录的所有子目录。同时h5ai支持Markdown格式页面,可以放置 _h5ai.header(s).md 和 _h5ai.footer(s).md 。不同文件名称以及不同的存放位置会呈现不同的效果。只在当前目录显示页眉:_h5ai.header.html页脚:_h5ai.footer.html在当前及子目录显示页眉:_h5ai.headers.html页脚:_h5ai.footers.html_h5ai.header(s).html 文件格式<h1 style="text-align:center">标题</h1> <p style="text-align:center"> 正文内容 </p>_h5ai.footer(s).html 文件格式<p style="text-align:center">正文内容</p>_h5ai.header(s).html 和 _h5ai.footer(s).html 的内容被添加在 <div></div> 里。所以页面里不能包含 <html><head><body> 等标签。举例页眉_h5ai.headers.html<h1 style="text-align:center">This is a header message</h1> <p style="text-align:center"> The header is read from file <code>_h5ai.header.html</code>. The content of this file will be enclosed by div tags. </p>_h5ai.header.md# This is a header message The header is read from file `_h5ai.header.html`.The content of this file will be enclosed by div tags.页脚_h5ai.footer.html<p style="text-align:center"> The footer is read from file <code>_h5ai.footer.html</code>.The content of this file will be enclosed by div tags. </p> <p style="text-align:center"> <strong>Note</strong>: all files and directories of name <code>_h5ai*</code> are hidden from the index by default. </p>_h5ai.footers.mdThe footer is read from file `_h5ai.footer.html`. The content of this file will be enclosed by div tags. **Note**: all files and directories of name `_h5ai*` are hidden from the index by default.
2022年06月18日
45 阅读
0 评论
0 点赞
2022-06-13
Markdown常用html语法
Markdown兼容html语法,因此在某些功能Markdown无法实现时,可以选择使用html语法。常用html语法<br> //换行 //空格   //空格 & //& < //< > //> <u></u> //下划线 <i></i> //斜体字 <sup></sup> //上标 <sub></sub> //下标 <center></center> //居中 <p align="left"></p> //左对齐 <p align="right"></p> //右对齐 <font size="" color=""></font> //字体举例字体size 字体大小color 字体颜色,red、blue、yellow、green或rgb(x,x,x)<font size="4" color="dodgerblue">字体</font> //显示道奇蓝 <font size="4" color="red"><u>下划线</u>字体</font>效果如下:字体下划线字体上标和下标x<sup>y</sup> C<sub>O</sub>2效果如下:xyCO2常见问题MarkDown中使用尖括号<>在MarkDown中,使用尖括号"<"和">",会被文本默认为HTML语句。这将导致尖括号本身及尖括号中的内容都不会被显示。解决方法:使用转义字符。使用 "&lt;" 代替 “<” , 使用 "&gt;" 代替 ">"。 例如要输出<a>,则需要写为 &lt;a&gt;Typecho中MarkDown解析器不支持html代码例如MarkDown使用html标签<center>无效解决方法:!!! <center>强制居中</center> !!!前后加!!!标签
2022年06月13日
9 阅读
0 评论
0 点赞
1
2
3
4