摘要: 1、打开nginx官网,地址:http://nginx.org/en/download.html 2、使用wget命令下载所需要的包,这里使用 Stable版的 nginx-1.20.1 这个包。 >wget http://nginx.org/download/nginx-1.20.1.tar.gz 阅读全文
posted @ 2021-09-04 08:23 war3_xiaofeng 阅读(808) 评论(0) 推荐(0) 编辑
摘要: Ubuntu缺省情况下,并没有提供C/C++的编译环境,因此还需要手动安装。 如果单独安装gcc以及g++比较麻烦,幸运的是,为了能够编译Ubuntu的内核,Ubuntu提供了一个build-essential软件包。 查看该软件包的依赖关系,可以看到以下内容: $ apt-cache depend 阅读全文
posted @ 2021-06-11 13:58 war3_xiaofeng 阅读(622) 评论(0) 推荐(0) 编辑
摘要: C# 中字符串插值的内部工作原理是调用了string.Format() 方法。是string.Format()的语法糖。 如: $"this { color } pen is { description }" 这句会被转换成如下的C#代码: object[] args = new object[] 阅读全文
posted @ 2021-03-27 15:51 war3_xiaofeng 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 参考:https://dev.mysql.com/doc/refman/8.0/en/linux-installation-yum-repo.html#yum-repo-installing-mysql 参考:https://www.jianshu.com/p/52bbb6a94f99 过程记录: 阅读全文
posted @ 2021-03-15 22:54 war3_xiaofeng 阅读(50) 评论(0) 推荐(0) 编辑
摘要: <div id="div1" style="display:flex;align-items:center;"> <span id="span1"></span> <span id="span2"></span> </div> id 为div1里面的元素会垂直居中。 关键是:display:flex 阅读全文
posted @ 2020-08-20 12:06 war3_xiaofeng 阅读(289) 评论(0) 推荐(0) 编辑
摘要: git使用用户名密码clone的方式: git clone http://username:password@remote eg: username: abc@qq.com, pwd: test, git地址为git@xxx.com/test.git git clone http://abc%40q 阅读全文
posted @ 2020-08-17 23:47 war3_xiaofeng 阅读(2238) 评论(0) 推荐(0) 编辑
摘要: 安装Docker for Windows 后,win + x 进入 windows powershell 使用命令 docker search centos 接着 拉取 centos ,敲下命令: docker pull centos 后 过了一会儿 报错了,错误如下: 查找了蛮多资料,都没有解决。 阅读全文
posted @ 2020-04-06 21:19 war3_xiaofeng 阅读(1689) 评论(0) 推荐(0) 编辑
摘要: USE[master] GO ALTER DATABASE 数据库名称 SET RECOVERY SIMPLE WITH NO_WAIT GO ALTER DATABASE 数据库名称 SET RECOVERY SIMPLE --简单模式 GO USE [数据库名称] GO DBCC SHRINKF 阅读全文
posted @ 2019-07-22 13:58 war3_xiaofeng 阅读(128) 评论(0) 推荐(0) 编辑
摘要: xml字符串的解析,有的可能喜欢用反序列化的方式。但是对于只是解析一次这个字符串,显得没有必要。 比如下面这个字符串。 string xml = "<Bossien>" + "<head>" + "<PassWord>123456789</PassWord>" + "<ServiceCode>EST 阅读全文
posted @ 2019-07-20 09:32 war3_xiaofeng 阅读(219) 评论(0) 推荐(0) 编辑
摘要: declare @des_xml nvarchar(max)set @des_xml ='<?xml verson="1.0" encoding="utf-8"?><province>'declare @id bigintdeclare @provinceid bigintdeclare @name nvarchar(50)declare cur cursorfor select * from T_Provincesopen curfetch next from cur into @id,@namewhile @@ 阅读全文
posted @ 2013-04-10 00:09 war3_xiaofeng 阅读(335) 评论(0) 推荐(0) 编辑