HTML5学习笔记
HTML基础知识
网页基本信息
<!DOCTYPE html>:网页规范
较早版本要求大写,HTML5不做要求
<html></html>:总标签
<head></head>:网页头部
<meta>:网页描述
常见的两个属性是name和content
常见的name属性值包括以下几种:
auther(作者):指定文档作者姓名。
description(描述):对于在搜索引擎结果中显示的一小块用于描述网页的文本。
color-scheme(颜色模式):指定页面是否支持深色模式。
viewport(视区):提供有关文档初始大小的信息。这一项仅针对移动设备。
robots(机器人):指定文档是否应该包括在搜索引擎的搜索结果里面。
<title></title>:网页标题
<body></body>:网页主体
+++
code:
12345678910111213141516171819202122232425<!-- 告诉浏览器要使 ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick Start
Create a new post
1$ hexo new "My New Post"
More info: Writing
Run server
1$ hexo server
More info: Server
Generate static files
1$ hexo generate
More info: Generating
Deploy to remote sites
1$ hexo deploy
More info: Deployment
MongoDB的安装与使用
MongoDB社区版在Debian10上的安装与使用
以下内容来自于MongoDB官方文档
安装(代码中的5.0可以换成任何你想安装的版本)
导入包管理系统使用的公钥
1wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
如果成功会出现OK
但是,如果提示gnupg未安装的错误,您可以:
使用以下命令安装gnupg及其所需的库:
1sudo apt-get install gnupg
安装后,重试导入密钥:
1wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
为 MongoDB创建一个/etc/apt/sources.list.d/mongodb-org-5.0.list文件
1echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/5.0 main" ...
在Debian10上安装Java17的两种方法
在Debian10上安装Java17的两种方法
确保所有现有软件包都是最新的
1sudo apt update && sudo apt upgrade
一、AdoptOpenJDK 17 ,使用清华镜像安装
###信任GPG公钥
1wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | apt-key add -
###添加安装源
1echo "deb http://mirrors.tuna.tsinghua.edu.cn/Adoptium/deb buster main" | sudo tee /etc/apt/sources.list.d/jdk.list
开始安装
12apt-get updateapt-get install temurin-17-jdk
查看是否安装成功
1java -version
二、OracleJDK
####在Oracle官网找到jdk17的下载地址,按需选择,这里选择Linux x64 Compressed Archi ...