前置章节:hadoop集群配置同步(hadoop完全分布式四)|10

启动namenode之前:

1. 先查看有无节点启动,执行jps查看,有的话停掉

[shaozhiqi@hadoop102 ~]$ jps
10566 Jps
[shaozhiqi@hadoop102 ~]$

2. 删除每个机器上之前运行的data和logs文件

启动namenode

格式化namenode
执行命令和执行成功的部分日志

[shaozhiqi@hadoop102 hadoop-3.1.2]$ bin/hdfs namenode –format
2019-06-25 06:07:55,932 INFO namenode.FSImage: Allocated new BlockPoolId: BP-1212972932-192.168.1.102-1561468075913
2019-06-25 06:07:55,968 INFO common.Storage: Storage directory /opt/module/hadoop-3.1.2/data/tmp/dfs/name has been successfully formatted.
2019-06-25 06:07:55,988 INFO namenode.FSImageFormatProtobuf: Saving image file /opt/module/hadoop-3.1.2/data/tmp/dfs/name/current/fsimage.ckpt_0000000000000000000 using no compression
2019-06-25 06:07:56,207 INFO namenode.FSImageFormatProtobuf: Image file /opt/module/hadoop-3.1.2/data/tmp/dfs/name/current/fsimage.ckpt_0000000000000000000 of size 396 bytes saved in 0 seconds
2019-06-25 06:07:56,237 INFO namenode.NNStorageRetentionManager: Going to retain 1 images with txid >= 0
2019-06-25 06:07:56,260 INFO namenode.NameNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at hadoop102/192.168.1.102
************************************************************/
[shaozhiqi@hadoop102 hadoop-3.1.2]$

启动102的namenode,启动成功

[shaozhiqi@hadoop102 hadoop-3.1.2]$ sbin/hadoop-daemon.sh start namenode
WARNING: Use of this script to start HDFS daemons is deprecated.
WARNING: Attempting to execute replacement **"hdfs --daemon start"** instead.
[shaozhiqi@hadoop102 hadoop-3.1.2]$ ll
[shaozhiqi@hadoop102 hadoop-3.1.2]$ jps
10945 NameNode
11087 Jps
[shaozhiqi@hadoop102 hadoop-3.1.2]$

系统提示启动用hdfs --daemon start命令,可能是新版本更新了

启动102的datanode

[shaozhiqi@hadoop102 hadoop-3.1.2]$ sbin/hadoop-daemon.sh start datanode
WARNING: Use of this script to start HDFS daemons is deprecated.
WARNING: Attempting to execute replacement "hdfs --daemon start" instead.

查看启动结果:

[shaozhiqi@hadoop102 hadoop-3.1.2]$ jps
10945 NameNode
11265 Jps
11205 DataNode
[shaozhiqi@hadoop102 hadoop-3.1.2]$

启动103.104的datanode

[shaozhiqi@hadoop103 hadoop-3.1.2]$ sbin/hadoop-daemon.sh start datanode
WARNING: Use of this script to start HDFS daemons is deprecated.
WARNING: Attempting to execute replacement "hdfs --daemon start" instead.
WARNING: /opt/module/hadoop-3.1.2/logs does not exist. Creating.
[shaozhiqi@hadoop103 hadoop-3.1.2]$ jps
2816 DataNode
2833 Jps
[shaozhiqi@hadoop103 hadoop-3.1.2]$

启动 104的datanode

[shaozhiqi@hadoop104 module]$ cd hadoop-3.1.2/
[shaozhiqi@hadoop104 hadoop-3.1.2]$ sbin/hadoop-daemon.sh start datanode
WARNING: Use of this script to start HDFS daemons is deprecated.
WARNING: Attempting to execute replacement "hdfs --daemon start" instead.
WARNING: /opt/module/hadoop-3.1.2/logs does not exist. Creating.
[shaozhiqi@hadoop104 hadoop-3.1.2]$ jps
2819 Jps
2805 DataNode
[shaozhiqi@hadoop104 hadoop-3.1.2]$

目前为止整个集群的namenode和datanode都启动了

在浏览器查看是否可以访问我们的namenode web页面,可以访问启动成功

访问namenode web页面

访问namenodeweb

问题

假如我们的集群有100台机器每个都要这样起吗?

配置脚本ssh免密登录

文件解释
Know_hosts****记录ssh访问过的计算机的公钥
Id_ras****生成的私钥
Id_ras.pub****生成的公钥
Authorized_key****存放授权过的免密访问服务器的公钥

ssh命令可以直接登录到别的机器

[shaozhiqi@hadoop102 ~]$ ssh hadoop103
shaozhiqi@hadoop103's password:
Last failed login: Tue Jun 25 06:41:19 PDT 2019 from hadoop102 on ssh:notty
There were 2 failed login attempts since the last successful login.
Last login: Tue Jun 25 06:03:37 2019 from 192.168.1.1
[shaozhiqi@hadoop103 ~]$ hostname
hadoop103
[shaozhiqi@hadoop103 ~]$

免密原理

免密登录原理图

到102找到 .ssh

[shaozhiqi@hadoop102 ~]$ ls -al
total 32
drwx------. 7 shaozhiqi shaozhiqi 4096 Jun 25 06:07 .
drwxr-xr-x. 3 root root 22 Jun 18 05:44 ..
-rw-------. 1 shaozhiqi shaozhiqi 1075 Jun 24 09:06 .bash_history
-rw-r--r--. 1 shaozhiqi shaozhiqi 18 Dec 6 2016 .bash_logout
-rw-r--r--. 1 shaozhiqi shaozhiqi 193 Dec 6 2016 .bash_profile
-rw-r--r--. 1 shaozhiqi shaozhiqi 231 Dec 6 2016 .bashrc
drwxrwxr-x. 2 shaozhiqi shaozhiqi 64 Jun 24 08:36 bin
drwxrwxr-x. 3 shaozhiqi shaozhiqi 17 Jun 18 06:04 .cache
drwxrwxr-x. 3 shaozhiqi shaozhiqi 17 Jun 18 06:04 .config
drwxr-xr-x. 4 shaozhiqi shaozhiqi 37 May 4 2017 .mozilla
drwx-----. 2 shaozhiqi shaozhiqi 24 Jun 22 23:04 .ssh
-rw-------. 1 shaozhiqi shaozhiqi 6420 Jun 25 06:07 .viminfo
-rw-------. 1 shaozhiqi shaozhiqi 165 Jun 24 16:42 .Xauthority
[shaozhiqi@hadoop102 ~]$

进入.ssh生成公钥和私钥

[shaozhiqi@hadoop102 ~]$ cd .ssh/
[shaozhiqi@hadoop102 .ssh]$ ls
known_hosts
[shaozhiqi@hadoop102 .ssh]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/shaozhiqi/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/shaozhiqi/.ssh/id_rsa.
Your public key has been saved in /home/shaozhiqi/.ssh/id_rsa.pub.
The key fingerprint is:
76:b4:c5:20:b4:bb:ef:42:81:1f:60:98:1f:56:40:c1 shaozhiqi@hadoop102
The key's randomart image is:
+--[ RSA 2048]----+ | =+=+ . | | o E o o | | + +. . o | | o oo o | +-----------------+
[shaozhiqi@hadoop102 .ssh]$ ll
total 12
-rw-------. 1 shaozhiqi shaozhiqi 1675 Jun 25 06:52 id_rsa
-rw-r--r--. 1 shaozhiqi shaozhiqi 401 Jun 25 06:52 id_rsa.pub
-rw-r--r--. 1 shaozhiqi shaozhiqi 370 Jun 23 06:05 known_hosts
[shaozhiqi@hadoop102 .ssh]$

查看生成的公钥

[shaozhiqi@hadoop102 .ssh]$ cat id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDyQ5kCo8iJVhJI6et0hBW/0XYBRUKXL9CBSFZ7FMhh9gkPO+HVlsJoEDqlTzBjNwjl9aWfrogvxa+9E6EoQT81qRG6KzN3gWsrgv6k8AXphhhwoU1OFhxL3cST0y9rsKQ5p0ptwKqJD1su6q8OtB1en+d3vab++V8BmZVpc1pjjTlZHG+HwYIlHpabL+ICdloTexChNFLJ91GjlLHGSFcbp81yqRXA0gPE03YGMFIVBhu+bPjuWn72kxdO7CLqZu7nIar6yP18MvtqnzrC7klE6E8ThgpbuRQerq5o0IfNR4GSH7NvvGG51CSMHqPvaR7lvVdOkJseAjkR6kDj6Ph shaozhiqi@hadoop102
[shaozhiqi@hadoop102 .ssh]$

将公钥copy到103

[shaozhiqi@hadoop102 .ssh]$ ssh-copy-id hadoop103
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
shaozhiqi@hadoop103's password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh 'hadoop103'"
and check to make sure that only the key(s) you wanted were added.
[shaozhiqi@hadoop102 .ssh]$

查看103,验证是否copy成功

[shaozhiqi@hadoop103 ~]$ cd .ssh/
[shaozhiqi@hadoop103 .ssh]$ pwd
/home/shaozhiqi/.ssh
[shaozhiqi@hadoop103 .ssh]$ ls
authorized_keys known_hosts
[shaozhiqi@hadoop103 .ssh]$ cat authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDyQ5kCo8iJVhJI6et0hBW/0XYBRUKXL9CBSFZ7FMhh9gkPO+HVlsJoEDqlTzBjNwjl9aWfrogvxa+9E6EoQT81qRG6KzN3gWsrgv6k8AXphhhwoU1OFhxL3cST0y9rsKQ5p0ptwKqJD1su6q8OtB1en+d3vab++V8BmZVpc1pjjTlZHG+HwYIlHpabL+ICdloTexChNFLJ91GjlLHGSFcbp81yqRXA0gPE03YGMFIVBhu+bPjuWn72kxdO7CLqZu7nIar6yP18MvtqnzrC7klE6E8ThgpbuRQerq5o0IfNR4GSH7NvvGG51CSMHqPvaR7lvVdOkJseAjkR6kDj6Ph shaozhiqi@hadoop102
[shaozhiqi@hadoop103 .ssh]$

同样将公钥copy到104

[shaozhiqi@hadoop102 .ssh]$ ssh-copy-id hadoop104
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
shaozhiqi@hadoop104's password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh 'hadoop104'"
and check to make sure that only the key(s) you wanted were added.
[shaozhiqi@hadoop102 .ssh]$

这样以后在存102到103和104是可以免密跳转的。但是往回跳跳102还是需要输入密码

[shaozhiqi@hadoop102 .ssh]$ ssh hadoop103
Last login: Tue Jun 25 06:41:28 2019 from hadoop102
[shaozhiqi@hadoop103 ~]$ ssh hadoop102
shaozhiqi@hadoop102's password:
Last login: Tue Jun 25 06:43:20 2019 from hadoop103
[shaozhiqi@hadoop102 ~]$

往回跳可以用exit直接回去

[shaozhiqi@hadoop102 ~]$ ssh hadoop103
Last login: Tue Jun 25 07:04:23 2019 from hadoop102
[shaozhiqi@hadoop103 ~]$ exit
logout
Connection to hadoop103 closed.
[shaozhiqi@hadoop102 ~]$

后来发现访问自己也需要输入密码,所以啊,还得把公钥copy给自己一份

[shaozhiqi@hadoop102 .ssh]$ ssh-copy-id hadoop102
[shaozhiqi@hadoop102 .ssh]$ ll
total 16
-rw-------. 1 shaozhiqi shaozhiqi 401 Jun 25 07:11 authorized_keys
-rw-------. 1 shaozhiqi shaozhiqi 1675 Jun 25 06:52 id_rsa
-rw-r--r--. 1 shaozhiqi shaozhiqi 401 Jun 25 06:52 id_rsa.pub
-rw-r--r--. 1 shaozhiqi shaozhiqi 555 Jun 25 07:11 known_hosts
[shaozhiqi@hadoop102 .ssh]$

为啥

要让102可以免密访问其他机器呢?因为102的有我们的namenode他需要向其他机器分发和通信
同样103机器有我们的resoucemanager,也许要去控制访问其他节点的信息,所以在103上也要去访问别的机器哈哈。。。

生成103的公钥

[shaozhiqi@hadoop103 .ssh]$ cat authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDyQ5kCo8iJVhJI6et0hBW/0XYBRUKXL9CBSFZ7FMhh9gkPO+HVlsJoEDqlTzBjNwjl9aWfrogvxa+9E6EoQT81qRG6KzN3gWsrgv6k8AXphhhwoU1OFhxL3cST0y9rsKQ5p0ptwKqJD1su6q8OtB1en+d3vab++V8BmZVpc1pjjTlZHG+HwYIlHpabL+ICdloTexChNFLJ91GjlLHGSFcbp81yqRXA0gPE03YGMFIVBhu+bPjuWn72kxdO7CLqZu7nIar6yP18MvtqnzrC7klE6E8ThgpbuRQerq5o0IfNR4GSH7NvvGG51CSMHqPvaR7lvVdOkJseAjkR6kDj6Ph shaozhiqi@hadoop102
[shaozhiqi@hadoop103 .ssh]$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/shaozhiqi/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/shaozhiqi/.ssh/id_rsa.
Your public key has been saved in /home/shaozhiqi/.ssh/id_rsa.pub.
The key fingerprint is:
6b:da:d0:d2:ab:8f:ff:48:bb:47:04:0a:8d:28:dc:c3 shaozhiqi@hadoop103
The key's randomart image is:
+--[ RSA 2048]----+
|. o. o |
|..Eo . . |
| . .. . . |
| O +. |
| ++O+. |
+-----------------+
[shaozhiqi@hadoop103 .ssh]$ ll
total 16
-rw-------. 1 shaozhiqi shaozhiqi 401 Jun 25 06:58 authorized_keys
-rw-------. 1 shaozhiqi shaozhiqi 1679 Jun 25 07:16 id_rsa
-rw-r--r--. 1 shaozhiqi shaozhiqi 401 Jun 25 07:16 id_rsa.pub
-rw-r--r--. 1 shaozhiqi shaozhiqi 370 Jun 22 23:03 known_hosts
[shaozhiqi@hadoop103 .ssh]$

将公钥同步到102,103,104

[shaozhiqi@hadoop103 .ssh]$ ssh-copy-id hadoop102
。。。
[shaozhiqi@hadoop103 .ssh]$ ssh-copy-id hadoop103
。。。
[shaozhiqi@hadoop103 .ssh]$ ssh-copy-id hadoop104

查看是否copy成功,可以看到103多了一个103的公钥

[shaozhiqi@hadoop103 .ssh]$ cat authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDyQ5kCo8iJVhJI6et0hBW/0XYBRUKXL9CBSFZ7FMhh9gkPO+HVlsJoEDqlTzBjNwjl9aWfrogvxa+9E6EoQT81qRG6KzN3gWsrgv6k8AXphhhwoU1OFhxL3cST0y9rsKQ5p0ptwKqJD1su6q8OtB1en+d3vab++V8BmZVpc1pjjTlZHG+HwYIlHpabL+ICdloTexChNFLJ91GjlLHGSFcbp81yqRXA0gPE03YGMFIVBhu+bPjuWn72kxdO7CLqZu7nIar6yP18MvtqnzrC7klE6E8ThgpbuRQerq5o0IfNR4GSH7NvvGG51CSMHqPvaR7lvVdOkJseAjkR6kDj6Ph shaozhiqi@hadoop102
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDpI16PazeKVEHHmjRuHtkjT8jl3d+3Ra7+wzUA6Xtiky/BV3zQO64oLEOi7tSkGVPgupOWT5yGXhILJFYEKvCp91rP/pQWQFPNFnX+MbM6iTBDO8eL99Ma6owcipuVCGVGw5bPnX4F+4GZSOeCIsd21pJ4CU0OjdY64IneIdRokoMDmqvLzgT+/Hjb4c+HPzx4OUwcQyzN9UrWWsL557ahVfjwickdkLgR+33aTK5IOl8XCtkuMNJxqRzrsqgPKy01f+psdRBQkX0qCO6laL5laq/7zPmTdz9JZC4rekjYa0cTbvInX1C6wV+NTaedzRs2ewoGpu/VsU17eIWdDuLR shaozhiqi@hadoop103
[shaozhiqi@hadoop103 .ssh]$

同样的去查看其他两台机器都是copy成功

验证从103跳102,104都是ok

[shaozhiqi@hadoop103 .ssh]$ ssh hadoop102
Last login: Tue Jun 25 07:04:46 2019 from hadoop103
[shaozhiqi@hadoop102 ~]$

102上后续需要部分root权限操作我们hadoop基群,所以也要给root用户配置免密登录,当前只实现shaozhiqi用户

继续操作在102 切到root

[shaozhiqi@hadoop102 .ssh]$ su root
Password:
ABRT has detected 2 problem(s). For more info run: abrt-cli list --since 1561257992
[root@hadoop102 .ssh]#

发现我的102尽然没有.ssh

[root@hadoop102 ~]# cd .ssh/
bash: cd: .ssh/: No such file or directory
[root@hadoop102 ~]#

执行这个命令登录一次就有了

[root@hadoop102 ~]# ssh localhost

验证

[root@hadoop102 ~]# cd .ssh
[root@hadoop102 .ssh]# ll
total 4
-rw-r--r--. 1 root root 171 Jun 25 07:34 known_hosts
[root@hadoop102 .ssh]#

生成102 root的公钥私钥

[root@hadoop102 .ssh]# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
95:24:14:30:a6:9d:3d:37:6d:46:19:08:35:45:72:1d root@hadoop102
The key's randomart image is:
+--[ RSA 2048]----+
| +o=+=+*+E. |
| + + o.B. . |
| . o o = + |
| |
+-----------------+
[root@hadoop102 .ssh]#

同步root公钥到102,103,104

[root@hadoop102 .ssh]# ssh-copy-id hadoop102
。。。
[root@hadoop102 .ssh]# ssh-copy-id hadoop103
。。。
[root@hadoop102 .ssh]# ssh-copy-id hadoop104
。。。

验证ok

[root@hadoop102 .ssh]# ssh hadoop103
Last login: Tue Jun 25 07:32:53 2019
[root@hadoop103 ~]#

总结下

  1. 102的shaozhiqi/root可以免密登录到102,103,104
  2. 103的shaozhiqi可以免密登录到102,103,104
  3. 这一节在102启动了namenode
  4. 在102,103,104启动了datanode

下一节计划启动集群 no time do more

hadoop(八)集群namenode启动ssh免密登录(完全分布式五)|10的更多相关文章

  1. 大数据【一】集群配置及ssh免密认证

    八月迷情,这个月会对大数据进行一个快速的了解学习. 一.所需工具简介 首先我是在大数据实验一体机上进行集群管理学习,管理五台实验机,分别为master,slave1,slave2,slave3,cli ...

  2. CentOS 配置集群机器之间SSH免密码登录

    SSH 为 Secure Shell 的缩写,由 IETF 的网络小组(Network Working Group)所制定:SSH 为建立在应用层和传输层基础上的安全协议.SSH 是目前较可靠,专为远 ...

  3. 配置ssh免密登录遇到的问题——使用VMware多虚拟机搭建Hadoop集群

    搭建环境: 虚拟机 VMware12Pro      操作系统  centos6.8        hadoop 1.2.1 1.导入镜像文件,添加java环境 1.查看当前系统中安装的java,ls ...

  4. Hadoop伪分布式集群实现SSH免密登录

    在启动Hadoop时候报了这样一个错误: Starting namenodes on [hadoop] hadoop: (Permission denied (publickey,gssapi-key ...

  5. SSH免密登录详解

    SSH免密登录详解 SSH(Security Shell)安全外壳协议,是较为可靠的,专为远程登录会话和其他网络服务提供安全保证的协议. ​ 对于传统的网络服务程序(例如,FTP,Telnet等)来说 ...

  6. Ubuntu如何配置SSH免密登录

    前言 在搭建hadoop集群时,需要主机和副机之间实现SSH免密登录 一.环境准备 1.ubuntu两台 二.安装SSH 1.首先检测一下本机有没有安装SSH服务,如果没有任何打印说明未安装 sudo ...

  7. SSH免密登录机制

     SSH免密登录机制:(见下图) 1.A先使用ssh-keygen生成一对公钥和私钥:ssh-keygen 2.将A的公钥复制给B一份,并且将其追加到B的授权文件中:ssh-copy-id B 3.接 ...

  8. linux上ssh免密登录原理及实现

    因为我的服务器集群需要回收日志到中央进行统一处理,所以需要建立ssh互信关系实现免密登录.关于ssh的使用大家可能都很熟悉了,我们今天主要来讲下ssh连接和免密登录的原理. scp 传输文件 scp( ...

  9. Linux 双向 SSH 免密登录

    原理 双向,顾名思义,双方互通,此处的意思是多台 linux 两两免密登录.双向比单向多了些操作,单向只需把某一个linux的公钥发送给其他linux即可,而双向要实现集群中的每一台机器都保存其他所有 ...

随机推荐

  1. Ext.grid 分页

    1. 定义变量,存储,每页显示多少条数据 var itemsPage = 25; 2.grid数据源 //列表源 var oStore = Ext.create('Ext.data.Store', { ...

  2. 【Weiss】【第03章】练习3.15:自调整链表

    [练习3.15] a.写出自调整表的数组实现.自调整表如同一个规则的表,但是所有的插入都在表头进行. 当一个元素被Find访问时,它就被移到表头而并不改变其余的项的相对顺序. b.写出自调整表的链表实 ...

  3. 【Weiss】【第03章】练习3.12:单链表倒置

    [练习3.12] a.编写一个非递归过程以O(N)时间反转单链表. b.使用常数附加空间编写一个过程以O(N)时间反转单链表. Answer: 这题的b貌似没啥意义,在a小题里直接用头插法,不断地将头 ...

  4. CF57C Array

    题目传送门 题目大意(摘自洛谷) 描述 对于长度为n的数组A,A中只包含从1到n的整数(可重复).如果A单调不上升或单调不下降,A就可称为美丽的. 找出在长度为n时,有几个美丽的A. 输入 一个整数n ...

  5. 《深入理解 Java 虚拟机》读书笔记:早期(编译期)优化

    正文 Java 语言的 3 类编译器: 前端编译器:把 java 文件 转变成 class 文件.例如:Sun 的 Javac. JIT 编译器(即时编译器):后端运行期编译器,把字节码转变成机器码. ...

  6. pycharm 更换pip镜像源为国内,解决下载慢的问题

    参考链接:https://www.cnblogs.com/hkgov/p/7799078.html 官方源下载速度太慢,换成国内源会很快. 推荐清华的源:https://pypi.tuna.tsing ...

  7. MySQL windows中的存储备份

    数据备份对于经常在运维部署方面的工作者来说,是一件相对简单的事情,都可以通过某一个SQL工具进行备份,但是如果在项目运行当中,我们需要对数据进行实时,或者是每隔一星期,一个月,等等进行数据的备份,这样 ...

  8. c# winform 访问WebServices 服务(通过WEB引用的方式进行访问)

    第一步.Winform项目引用WEB服务 第二步.代码声明实例化 Web引用 YzServ.TestServ yzserv = new WebYzServ.TestServ(); yzserv.AAA ...

  9. vue 3

    目录 复习 Vue项目需要自建服务器:node npm:包管理器 - 为node拓展功能的 vue cli环境:脚手架 - 命令行快速创建项目 创建Vue项目 启动项目 项目目录 组件 在根组件中渲染 ...

  10. hdu3973 AC's String 线段树+字符串hash

    题目链接:http://icpc.njust.edu.cn/Problem/Hdu/3973/ 题意是:给出一个模式串,再给出一些串组成一个集合,操作分为两种,一种是替换模式串中的一个字符,还有一种是 ...