最新发布

CentOS8安装Mongondb 并开机启动
Linux

CentOS8安装Mongondb 并开机启动

57 0

视频讲解地址 https://www.bilibili.com/video/BV1iK411R7ch/mongodb服务端软件下载地址 https://www.mongodb.com/try/download/community我下载的包是mongodb-linux-x86_64-rhel80-6.0.3.tgz 放在了ceontos /opt 目录下解压文件tar -zxvf mongodb-linux-x86_64-rhel80-…

C# DateTime与时间戳TimeStamp互转
C#类库与方法

C# DateTime与时间戳TimeStamp互转

96 0

/// summary/// DateTime转时间戳 /// /summary/// param name="dt"DateTime/param/// returns时间戳(秒)/returnspublic static long GetUnixTimeStamp(DateTime dt){ DateTime dtStart = TimeZoneInfo.ConvertTimeFromUtc(new DateTime(1970, 1, 1, …

C# http帮助类
C#类库与方法

C# http帮助类

119 0

public class HttpHelper{ // Post请求 public string PostResponse(string url, string postData) { try { string result = string.Empty; //设置Http的正文 HttpContent httpContent = new StringContent…

C# 16进制字符串转数字
算法/数据处理

C# 16进制字符串转数字

140 0

Int16 i16 = Convert.ToInt16("F74B", 16);//结果为-2229 16位4个字符串长度byte[] bytes16 = BitConverter.GetBytes(i16);//结果为 0x4B 0xF7 低位在前 高位在后int i32 = Convert.ToInt32("F74B0000", 16);//结果为-146079744 32位8个字符串长度byte[] bytes32 …

Centos设置nginx开机自启动
Linux

Centos设置nginx开机自启动

138 0

第一步:进入到/lib/systemd/system/目录[root@iz2z init.d]# cd /lib/systemd/system第二步:创建nginx.service文件,并编辑# vim nginx.service内如如下:[Unit]Description=nginx serviceAfter=network.target [Service] Type=forking ExecStart=/usr/local/nginx…

Centos8 安装Nginx
Linux

Centos8 安装Nginx

142 0

一:安装依赖yum -y install gcc gcc-c++ make libtool zlib zlib-devel openssl openssl-devel pcre pcre-devel(如果)yum install 失败错误:为 repo ‘appstream’ 下载元数据失败 : Cannot prepare internal mirrorlist: No URLs in mirrorlist这是因为在CentOS8.0中默认不…