2023年3月

背景:联想小新 17年 安装了个win10系统,当时安装好环境,做了个备份 **.GHO 文件,最近想还原,发现了各种问题。

ghost 还原 发现不了目标盘。深入diskgenius查看 ,发现是
raid模式的 磁盘矩阵
的。苦笑。一块硬盘也做阵列。

发现进不了wePE系统,换了几个版本,幸好可以进老毛桃系统,要不然重装系统都麻烦,只能把硬盘的数据备份,整个硬盘格式,安装新的系统了。

旧的.GHO 还原不了的。比较魔幻。

raid模式?介绍下raid优点与缺点 - 知乎
https://zhuanlan.zhihu.com/p/140822554?ivk_sa=1024320u

百度来的 信息:
硬盘做了阵列是做不了系统备份的,用GHOST 是无法识别和加载驱动的,建议用PE的微型操作系统系统进行GHOST的备份,应该就可以解决问题了..但是要是想用一键恢复那是不可能的,因为硬盘早已做好阵列,所以想另外划分个小区来放系统那是绝对的不可行..
还有最笨的方法,进入PE直接把系统盘的所有东西完全复制,然后存到另一个区里或移动设备里的一个新文件夹去,但要对那个区里的文件夹做保护!以后恢复时可以用回PE系统,加移动硬盘进行恢复,切记恢复前不可重新分区!!
raid1,又叫镜像,它的原理其实就是完全备份,个人觉得没有必要再备份了..

RAID模式是什么意思


RAID是指“磁盘阵列”的意思,作用是对于多个硬盘的计算机,计算机默认的是对第一块硬盘有缓存,这样就导致计算机访问其它的硬盘的速度特别的慢,磁盘阵列技术RAID就是用于协调多块硬盘的访问,用RAID就能很好的解决这类问题

RAID模式和AHCI模式区别

1、模式解释上的不同:

AHCI是高级串行接口的意思.能发挥磁盘的最好性能;

RAID是磁盘阵列模式;

2、主要功能上的不同:

AHCI模式增加了热插拔、NCQ、TRIM(针对固态硬盘)等功能;

有网友说 用支持raid的PE 可以,我下载了 wePE 2.2 也进不来pe系统。

我电脑是raid模式,固态盘,怎么用PE安装win10?_百度知道
https://zhidao.baidu.com/question/689171400210215652.html

                

高德开放平台 | 高德地图API
https://lbs.amap.com/

注册, 用手机 验证码登录(相当于注册了)

点击 右上角  --控制台

个人认证,通过支付宝,  认证完成后

创建应用,随意填一下

右上角,添加新key

webkey 和jskey 有什么区别呢

服务
今日调用量
调用量上限(次/日)
并发量上限(次/秒)
状态
操作
地理编码
0 已用
0%
5000 30 正常 提升配额
逆地理编码
0 已用
0%
5000 30 正常 提升配额
搜索服务-关键字查询
0 已用
0%
5000 30 正常 提升配额
搜索服务-周边查询
0 已用
0%
5000 30 正常 提升配额
搜索服务-多边形查询
0 已用
0%
5000 30 正常 提升配额
搜索服务-ID查询
0 已用
0%
5000 30 正常 提升配额
输入提示
0 已用
0%
5000 30 正常 提升配额
公交路径规划
0 已用
0%
5000 30 正常 提升配额
驾车路径规划
0 已用
0%
5000 30 正常 提升配额
步行路径规划
0 已用
0%
5000 30 正常 提升配额
骑行路径规划
0 已用
0%
5000 30 正常 提升配额
行驶距离测量
0 已用
0%
5000 30 正常 提升配额
行政区查询
0 已用
0%
5000 30 正常 提升配额
IP定位
0 已用
0%
5000 30 正常 提升配额
坐标转换
0 已用
0%
5000 30 正常 提升配额
静态地图
0 已用
0%
5000 30 正常 提升配额
天气预报
0 已用
0%
300000 200 正常 提升配额
地理编码2.0
0 已用
0%
300000 200 正常 提升配额
搜索服务-关键字查询2.0
0 已用
0%
5000 30 正常 提升配额
搜索服务-周边查询2.0
0 已用
0%
5000 30 正常 提升配额
搜索服务-多边形查询2.0
0 已用
0%
5000 30 正常 提升配额
搜索服务-ID查询2.0
0 已用
0%
5000 30 正常 提升配额
驾车路径规划2.0
0 已用
0%
5000 30 正常 提升配额
步行路径规划2.0
0 已用
0%
5000 30 正常 提升配额
骑行路径规划2.0
0 已用
0%
5000 30 正常 提升配额
公交路径规划2.0
0 已用
0%
5000 30 正常 提升配额

https://console.amap.com/dev/ticket/create/appeal

2022年10月13日 收到信息,再进一步限制。

1. .net 平台简介

.net 平台主要分为三个部分(.net 5 中据说会大一统,这我抛开.net 5了):
.net Framework

.net Core

xamarin

  • .net Framework
    : 2002年发布,现在很多公司都在使用,可以开发:


    • window桌面程序:winform、UWP、wpf等

    • web应用程序:Asp.Net webform、Asp.Net MVC

  • .net Core
    : 2016年6月27号发布,是微软最新退出开源的、跨平台的平台,可以用来创建运行在mac、Linux上的应用程序

  • xamarin
    : 主要用来构建手机APP,主要使用的语言是C#语言(但是因为使用人数不多,所以可参考的案例较少)

1.1 在.net core 和 .net framework 之间如何选择

.net core

.net framework
都可以写web程序,两者有很多共享的组件(ef 库以及其他库都可以在.net framework或.net core上运行),两者之间是可以共享代码的,但两者是存在根本的差异,这需要根据实现的目标进行选择

选择.net core

  • 有跨平台需求

  • 正在面向微服务

  • 正在使用Docker容器

  • 需要高性能和可扩展性的系统

选择.net framework

  • 当前项目使用的是.net framework(建议扩展而不是迁移)

  • 开发的程序中使用到在.net Core中暂不支持的第三方.net 库或者NuGet包

  • 使用到.net Core中暂不支持的技术(例如在.net core 2.x的时候是不支持winfrom的,.net core 3.x已经支持了)


    • WCF服务的实现目前在.net core 无法使用

    • Asp.Net Web窗体应用程序目前也是只可以在.net framework中使用

1.2 在.net core和.net framework中共享库

因为 .net core 是一个新兴的系统生态系统,所以有些之前在 .net framework 中使用的库在 .net core 中是无法使用的,为了尽快弥补这一空缺,Microsoft 引入了.net standard 以提供在微软生态下的公共标准,意思就是你可以创建直接用于 .net core 或 .net framework 的库(甚至包括 xamarin )。只要确保 .net standard 库的 NuGet 包添加到.net 应用中,就可以使用了。

.net standard 可以看作是可移植类库 PCL 的后继者,简化了针对不同平台的业务。在 PCL 基于平台能力的配置中,.net Standard 提供了精心选择的 API 集。

但是 .net Standard 不同的版本适配 .net core 或 .net framework 版本也是不同的,这感觉就像走了DLL地狱,来了 .net Standard 地狱

img

asp.net core 2.x 由 .net Standard 库组成,所以同时支持 .net core 运行和 .net framework 运行

.NET Core 以及与 .NET Framework的差异

1..NET Core是跨平台的。net  Framework仅支持在Windows系统上。2..Net Core和 .Net Framework都 是NET Standard Library 的实现,
.NET Standard Library 是跨操作系统的关键所在,它定义了一组接口,而每个操作系统有各自的实现,
.NET Core通过nuget可以动态下载当前操作系统的实现,从而实现跨操作系统(暨跨操作系统共享代码)。
3..NET Core 更依赖于Nuget,允许本地application在部署时动态下载需要的class library。
而.NET Framework需要在系统中预装。这样.NET Core的部署比.NET Framework 更简单快速同样也更轻便。

本例用xampp-win32-5.6.8-0-VC11-installer.exe 安装mysql数据 安装成功后默认有 3306的数据库,

如果有很多数据库,想分开放,开多一个端口,另外的存储路径,如何操作?  本人试过Mssql 可以这样子。

一、 C:\xampp\mysql 去到xampp的mysql所在地,复制一份命名mysql2

二、 C:\xampp\mysql2\bin 到这里改my.ini  改两处端口为3307 ,很多处 路径改成 mysql2下的,


# Example MySQL config file for small systems.
#
# This is for a system with little memory (<
=64M) where MySQL is only used
# from time to time and it's important that the mysqld daemon
# doesn't use much resources.
#
# You can copy this file to
# C:/xampp/mysql/bin/my.cnf to set global options
,# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is C:/xampp/mysql/data) or
# ~/.my.cnf to set user-specific options.
#
# In this file
,you can use all long options that a program supports.
# If you want to know which options a program supports
,run the program
# with the
"--help"option.

# The following options will be passed to all MySQL clients
[client]# password=your_password
port
= 3307socket= "C:/xampp/mysql2/mysql.sock"# Here follows entries for some specific programs

# The MySQL server
[mysqld]port= 3307socket= "C:/xampp/mysql2/mysql.sock"basedir= "C:/xampp/mysql2"tmpdir= "C:/xampp/tmp"datadir= "C:/xampp/mysql2/data"pid_file= "mysql.pid"# enable-named-pipe
key_buffer
=16M
max_allowed_packet
=1M
sort_buffer_size
=512K
net_buffer_length
=8K
read_buffer_size
=256K
read_rnd_buffer_size
=512K
myisam_sort_buffer_size
=8M
log_error
= "mysql_error.log"# Change here for bind listening
# bind-address
="127.0.0.1"# bind-address= ::1# for ipv6

# Where do all the plugins live
plugin_dir
= "C:/xampp/mysql2/lib/plugin/"# Don't listen on a TCP/IP port at all. This can be a security enhancement,# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the
"enable-named-pipe"option) will render mysqld useless!
#
# commented in by lampp security
#skip-networking
skip-federated

# Replication Master Server (default)
# binary logging is required for replication
# log-bin deactivated by default since XAMPP
1.4.11#log-bin=mysql-bin

# required unique id between
1 and 2^32 - 1# defaults to1if master-host is not set
# but will not function as a master if omitted
server-id
= 1# Replication Slave (comment out master section to use this)
#
# To configure this host as a replication slave
,you can choose between
# two methods :
#
#
1) Use the CHANGE MASTER TO command (fully described in our manual) -
# the syntax is:
#
# CHANGE MASTER TO MASTER_HOST
=<host>, MASTER_PORT=<port>,# MASTER_USER=<user>, MASTER_PASSWORD=<password> ;#
# where you replace <host>
, <user>,<password> by quoted strings and
# <port> by the master's port number (
3306by default).
#
# Example:
#
# CHANGE MASTER TO MASTER_HOST
='125.564.12.1', MASTER_PORT=3306,# MASTER_USER='joe', MASTER_PASSWORD='secret';#
# OR
#
#
2) Set the variables below. However, in case you choose this method,then
# start replication for the first time (even unsuccessfully
,for example
# if you mistyped the password in master-password and the slave fails to
# connect)
, the slave will create a master.info file,and any later
# change in this file to the variables' values below will be ignored and
# overridden by the content of the master.info file
,unless you shutdown
# the slave server
,delete master.info and restart the slaver server.
# For that reason
,you may want to leave the lines below untouched
# (commented) and instead use CHANGE MASTER TO (see above)
#
# required unique id between
2 and 2^32 - 1# (and different from the master)
# defaults to
2if master-host is set
# but will not function as a slave if omitted
#server-id
= 2#
# The replication master for this slave - required
#master-host
=<hostname>
#
# The username the slave will use for authentication when connecting
# to the master - required
#master-user
=<username>
#
# The password the slave will authenticate with when connecting to
# the master - required
#master-password
=<password>
#
# The port the master is listening on.
# optional - defaults to
3306#master-port=<port>
#
# binary logging - not required for slaves
,but recommended
#log-bin
=mysql-bin


# Point the following paths to different dedicated disks
#tmpdir
= "C:/xampp/tmp"#log-update=/path-to-dedicated-directory/hostname

# Uncomment the following if you are using BDB tables
#bdb_cache_size
=4M
#bdb_max_lock
= 10000# Comment the following if you are using InnoDB tables
#skip-innodb
innodb_data_home_dir
= "C:/xampp/mysql2/data"innodb_data_file_path=ibdata1:10M:autoextend
innodb_log_group_home_dir
= "C:/xampp/mysql2/data"#innodb_log_arch_dir= "C:/xampp/mysql/data"## You can set .._buffer_pool_size up to50 - 80%
## of RAM but beware of setting memory usage too high
innodb_buffer_pool_size
=16M
innodb_additional_mem_pool_size
=2M
## Set .._log_file_size to
25% of buffer pool size
innodb_log_file_size
=5M
innodb_log_buffer_size
=8M
innodb_flush_log_at_trx_commit
= 1innodb_lock_wait_timeout= 50## UTF8Settings
#init-connect
=\'SET NAMES utf8\'
#collation_server
=utf8_unicode_ci
#character_set_server
=utf8
#skip-character-set-client-handshake
#character_sets-dir
="C:/xampp/mysql/share/charsets" [mysqldump]quick
max_allowed_packet
=16M[mysql]no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[isamchk]key_buffer=20M
sort_buffer_size
=20M
read_buffer
=2M
write_buffer
=2M[myisamchk]key_buffer=20M
sort_buffer_size
=20M
read_buffer
=2M
write_buffer
=2M[mysqlhotcopy]interactive-timeout

my.ini

三、必须用cmd 用管理员模式去到 bin路径下 执行 mysqld install MySql2 --defaults-file=“C:\xampp\mysql2\bin\my.ini”

本人在bin路径下快捷方式 用powershell 执行失败。必须用cmd管理员

四、执行 net start MySql2 本人一开始失败 ,是因为my.ini没有修改完全。

配置对 必定能启动多一个服务。属性如下:

五、验证成功如下

== MSSql 数据库本地有两个服务器名称,可以将数据库分开来,端口是怎么样的?

下载 对应的 汉化包 resources_cn.jar 放到idea的 lib路径下

\JetBrains\IntelliJ IDEA 2017.1.5\lib