USE [master]
GO
ALTER DATABASE DBNAME SET RECOVERY SIMPLE WITH NO_WAIT
GO
ALTER DATABASE DBNAME SET RECOVERY SIMPLE -- 设置简单模式
GO
USE DBNAME
GO
DBCC SHRINKFILE (N'DBNAME_log' , 2, TRUNCATEONLY) -- 设置压缩后的日志大小为 2M
GO
<!-- web.config -->
<configuration>
<system.webServer>
<!-- 移除 .html 后缀 -->
<rewrite>
<rules>
<rule name="RewriteHTML">
<match url="(.*)" />
# 示例:netsh wlan set hostednetwork mode=allow ssid=SSID名称 key=WIFI密码
netsh wlan set hostednetwork mode=allow ssid=NB key=notebook
# 开启
netsh wlan start hostednetwork
# 关闭
netsh wlan stop hostednetwork
docker search portainer # 搜索包
docker pull portainer/portainer # 下载镜像
# 本机部署
docker run -d -p 90:9000 --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data --name prtainer-test portainer/portainer
# 汉化部署(须下载汉化包)
docker run -d -p 90:9000 --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data -v /package/portainer_cn:/public --name prtainer-test portainer/portainer
# 访问 ip:90,初始化账号、密码,选择 Local --> Connect
# help
https://www.cnblogs.com/Bug-Hunter/p/12023130.html
npm login # 登录
npm init # 初始化 package.json 包的信息
npm publish # 发布
npm unpublish <package-name>@<version> # 取消发布包(指定版本,72 小时内)
npm unpublish <package-name> -f # 取消发布包(整个包,72 小时内)
npm deprecate <package-name> "<message>" # 弃用整个包,留言
npm deprecate <package-name>@<version> "<message>" # 弃用包(指定版本),留言
npm config set registry https://registry.npmmirror.com # 设置镜像
npm config set registry https://registry.npmjs.org # 清除镜像,恢复
npm config set ELECTRON_MIRROR https://npmmirror.com/mirrors/electron/ # 设置 electron 镜像
# 安装 yarn https://yarnpkg.com/getting-started/install
npm install -g yarn
# 安装 pm2 https://pm2.keymetrics.io/docs/usage/quick-start/
npm install pm2@latest -g