随笔 - 27  文章 - 0 评论 - 0 阅读 - 14865
< 2025年6月 >
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 1 2 3 4 5
6 7 8 9 10 11 12

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<br>        /// <summary>
        /// 检测是否安裝4.7.2以上版本
        /// </summary>
        /// <returns></returns>
        bool CheckNet472()
        {
            //C:\Windows\Microsoft.NET\Framework
            string net = "Microsoft.NET";
            string mscorlibFile = "mscorlib.dll";
            string RuntimeDirectory = System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory();
            int index = RuntimeDirectory.IndexOf(net);
            if (index == -1)
            {
                MessageBox.Show(RuntimeDirectory, "錯誤,找不到系统路径");
                return false;
            }
            string NetDirectory = RuntimeDirectory.Substring(0, index + net.Length);
            string Framework = Path.Combine(Path.Combine(NetDirectory, Path.Combine("Framework", "v4.0.30319")), mscorlibFile);
            string Framework64 = Path.Combine(Path.Combine(NetDirectory, Path.Combine("Framework64", "v4.0.30319")), mscorlibFile);
            int Nub = 0;
            if (File.Exists(Framework))
            {
 
                Nub = GetFileVersion(Framework);
            }
            else if (File.Exists(Framework64))
            {
                Nub = GetFileVersion(Framework64);
            }
 
 
            if (Nub > 471)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
 
        int GetFileVersion(string FilePath)
        {
            FileVersionInfo fileVersionInfo = FileVersionInfo.GetVersionInfo(FilePath);
            string Version = fileVersionInfo.ProductVersion;
            string res = new string(Version.Where(char.IsDigit).ToArray());
            if (res.Length > 1)
            {
 
                int NubCode = Convert.ToInt32(res.Substring(0, 3));
                return NubCode;
            }
            return 0;
        }
posted @ 2023-08-11 17:29 e度空间 阅读(90) 评论(0) 推荐(0)
摘要: Windows 7 上安裝 .NET Framework 4.7.2 失敗, 時間戳記簽章及/或憑證無法驗證或格式不正確 安装KB2813430补丁; 32位系统补丁下载地址: https://www.microsoft.com/zh-CN/download/details.aspx?id=3911 阅读全文
posted @ 2023-04-24 18:23 e度空间 阅读(1499) 评论(0) 推荐(0)
摘要: 修改注册表修改,将以下内容存为reg,双击导入 。问题解决。 Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319] "SchUseStrongCryp 阅读全文
posted @ 2022-07-23 22:01 e度空间 阅读(240) 评论(0) 推荐(0)
摘要: Auto Rename Tag 自动更新收尾标签Bracket Pair Colorizer 代码块括号颜色区分ES7 React/Redux/GraphQL/React-Native snippets 自动引入代码JavaScript (ES6) code snippetsPrettier - C 阅读全文
posted @ 2021-07-14 23:11 e度空间 阅读(54) 评论(0) 推荐(0)
摘要: # file: /etc/yum.repos.d/CentOS-AppStream.repo [AppStream] name=CentOS-$releasever - AppStream baseurl=http://mirrors.aliyun.com/centos/$releasever/Ap 阅读全文
posted @ 2020-12-03 12:55 e度空间 阅读(835) 评论(0) 推荐(0)
摘要: 原因:开启了SELinux导致 1.查看SELinux状态: /usr/sbin/sestatus -v ##如果SELinux status参数为enabled即为开启状态 SELinux status: enabled 2.关闭SELinux:a.临时关闭(不用重启机器): setenforce 阅读全文
posted @ 2020-11-27 18:22 e度空间 阅读(270) 评论(0) 推荐(0)
摘要: 网上下载好apache 和php php 配置 修改ext路径 extension_dir ="d:/php/php5.6.16/ext/" 复制到C:\Windows 下 PHP 修改配置文件 ServerRoot "d:/apache/apache2.4.17" 多个listen Listen 阅读全文
posted @ 2020-11-20 17:55 e度空间 阅读(132) 评论(0) 推荐(0)
摘要: 找不到 phpize phpize是属于php-devel的内容,因此在centos中只要运行如下命令: yum install php-devel 然后就会安装上phpize了。运行phpize是为了生成./configure文件。 下载源 wget https://github.com/phpr 阅读全文
posted @ 2020-11-10 12:28 e度空间 阅读(313) 评论(0) 推荐(0)
摘要: location / { index index.php; if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php){ rewrite ( 阅读全文
posted @ 2020-11-07 14:58 e度空间 阅读(241) 评论(0) 推荐(0)
摘要: yum install crontabs crontab -e * 1 * * * /usr/bin/curl http://* 1 * * * /usr/bin/curl http:// 阅读全文
posted @ 2020-10-28 21:24 e度空间 阅读(1050) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示