程序关闭后,端口已经被占用,使用 netstat -npla | grep {端口号} 可以看到被占用的端口及进程号,但是使用 kill 却提示找不到进程。 1、强制杀死该端口进程 sudo fuser -k -n tcp 80 2、根据PID关闭某个被占用的端口 netst[......]继续阅读

2019年12月7日 1条评论 6479点热度 1人点赞 痴者工良 阅读全文

After the program is closed, the port is already in use. Using netstat -npla | grep {port_number} you can see the occupied port and process ID, but us[......] 继续阅读

2019年12月7日 1条评论 1164点热度 1人点赞 痴者工良 阅读全文

Using JSON to store time requires converting it to an object in the following format: 2019-12-06T17:15:52Z The 'Z' indicates the time zone. For examp[......] 继续阅读

2019年12月6日 2条评论 1014点热度 0人点赞 痴者工良 阅读全文

使用Json存储时间需要转为对象时, 要使用如下面的格式 2019-12-06T17:15:52Z Z 表示时区 使用示例: 表示北京时间 2019-12-06T17:15:52+08:00 但是前端、C#时间转换和数据库的时间处理,协调起来会比较麻烦,JSON和字符串转时间也会麻烦。 根据笔者的校[......] 继续阅读

2019年12月6日 2条评论 5114点热度 0人点赞 痴者工良 阅读全文

In asynchronous methods, you cannot directly use Thread.Sleep(1000); You should use await Task.Delay(1000); [......] 继续阅读

2019年12月6日 1条评论 1238点热度 4人点赞 痴者工良 阅读全文

使用异步的方法中,不能直接使用 Thread.Sleep(1000); 要使用 await Task.Delay(1000); [......] 继续阅读

2019年12月6日 1条评论 4732点热度 4人点赞 痴者工良 阅读全文

在需要分页的位置,输入 <div STYLE="page-break-after: always;"></div> 在导出PDF时即可分页。 [......] 继续阅读

2019年12月2日 0条评论 882点热度 7人点赞 痴者工良 阅读全文

在需要分页的位置,输入 <div STYLE="page-break-after: always;"></div> 在导出PDF时即可分页 [......] 继续阅读

2019年12月2日 0条评论 9883点热度 7人点赞 痴者工良 阅读全文

.NET Core Using Sonarqube Issues Simple Way to Run Sonarqube docker run -d --name sonarqube -p 9000:9000 sonarqube The default username and password a[......] 继续阅读

2019年12月2日 2条评论 1076点热度 3人点赞 痴者工良 阅读全文

.NET Core 使用 Sonarqube 问题 运行 Sonarqube 的简单方法 docker run -d --name sonarqube -p 9000:9000 sonarqube 默认账号密码是 admim 登陆后创建项目和 token,直接按照提示选择 C#.NET。 .NET[......] 继续阅读

2019年12月2日 2条评论 7663点热度 3人点赞 痴者工良 阅读全文

无法更新系统和软件 获取更新列表 apt list --upgradable 手动更新应用和解决依赖 sudo aptitude purge {software_name} 如果依赖无法解决, 依然使用上面的命令,选择 n [......] 继续阅读

2019年11月30日 1条评论 886点热度 0人点赞 痴者工良 阅读全文

无法更新系统和软件 获取更新列表 apt list --upgradable 手动更新应用和解决依赖 sudo aptitude purge {软件名称} 如果依赖无法解决, 依然使用上面的命令,选择 n [......] 继续阅读

2019年11月30日 1条评论 4812点热度 0人点赞 痴者工良 阅读全文

Path.GetDirectoryName(typeof(OneClass).Assembly.Location) OneClass is a type within this DLL. Directory.GetCurrentDirectory() does not necessarily re[......] 继续阅读

2019年11月28日 0条评论 1104点热度 0人点赞 痴者工良 阅读全文

Path.GetDirectoryName(typeof(OneClass).Assembly.Location) OneClass 是这个 dll 内的一个类型。 Directory.GetCurrentDirectory() 获取的不一定是当前 dll 的位置 [......] 继续阅读

2019年11月28日 0条评论 4676点热度 0人点赞 痴者工良 阅读全文

首先要切换到 root 用户,然后执行 apt-get install software-properties-common 然后会出现以下提示 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 将会同时安装下列软件: liba[......]继续阅读

2019年11月17日 0条评论 5586点热度 0人点赞 痴者工良 阅读全文

First, switch to the root user and then execute apt-get install software-properties-common Then the following prompts will appear: Reading package li[......]继续阅读

2019年11月17日 0条评论 1116点热度 0人点赞 痴者工良 阅读全文

值类型 Equals 与 == 等同; string 经过重写, Equals 与 == 等同; object 类型,string 的特殊性; 其他类 类型。 object t = "123"; object a = t;[......]继续阅读

2019年9月12日 2条评论 4460点热度 0人点赞 痴者工良 阅读全文

Value type Equals and == are equivalent; For string, after overriding, Equals and == are equivalent; For object type, the specificity of string; For o[......] 继续阅读

2019年9月12日 2条评论 974点热度 0人点赞 痴者工良 阅读全文

dpkg-reconfigure tzdata [......] 继续阅读

2019年9月5日 1条评论 4308点热度 0人点赞 痴者工良 阅读全文

dpkg-reconfigure tzdata is a command used in Debian-based Linux distributions to reconfigure the time zone data. When executed, it allows the user to[......] 继续阅读

2019年9月5日 1条评论 1022点热度 0人点赞 痴者工良 阅读全文