1.linux服务之spoon书写的tr和tjob的验证

1.

使用rz进行文件上传,进行从本地文件往linux服务器上面的上传以及下载,,过程如下所示:

将本地文件上传到服务器上,使用命令为rz,

执行rz命令如下所示:

选择相应文件如下所示:

点解add

再如下图所示:

再点击ok,即可完成上传活动:

以上为上传的一个例子:

上传完成之后如下所示:完成度为100%

现在进行在linux上进行文件夹解压操作:

先看下文件存放路径,已存在于linux服务器上:

接下来进行解压spoon.zip文件:

解压命令为unzip  spoon.zip

解压过程以及完成情况如下:

其中红色部分就是解压过后的文件:

查看可以得知是与本地linux上的环境文件几乎是一模一样的:

在linux环境下

将校验文件上传:

同样使用rz命令

然后进行验证校验:

[root@localhost data-integration]# unzip file.zip 
Archive:  file.zip
  inflating: file/areacheckdaily.ktr  
  inflating: file/desktopstatistics.kjb  
  inflating: file/desktopstatistics.ktr  
   creating: file/report/
  inflating: file/report/areacheckdaily.ktr  
  inflating: file/report/report.kjb  
  inflating: file/report.kjb         
[root@localhost data-integration]# 

解压上传的文件,命令如上:

删除文件夹命令如下所示:

[root@localhost data-integration]# rm file.zip 
rm:是否删除普通文件 "file.zip"?y
[root@localhost data-integration]# ll

使用ll进行查看过后的文件夹;

启动kitchen.sh文件:

但是权限不够,因此使用linux常用命令,进行赋权操作:

如下所示:

[root@localhost data-integration]# cd kitchen.sh 
-bash: cd: kitchen.sh: 不是目录
[root@localhost data-integration]# cd kitchen/file dir/file.kjb
-bash: cd: kitchen/file: 没有那个文件或目录
[root@localhost data-integration]# run kitchen.sh 
-bash: run: 未找到命令
[root@localhost data-integration]# ./kitchen.sh
-bash: ./kitchen.sh: 权限不够
[root@localhost data-integration]# chmod +x kitchen.sh

由于赋权失败,因此将linux的根目录文件赋权:

如下所示:

[root@localhost file]# ll
总用量 1026884
drwxr-xr-x. 19 root root       4096 11月 20 10:58 data-integration
drwxr-xr-x.  3 root root         48 11月  3 11:30 dingtalk
drwxr-xr-x.  3 root root         54 10月 24 11:07 dxjc
drwxr-xr-x.  4 root root         67 10月 22 16:51 ehs
drwxr-xr-x.  2 root root         41 8月   9 14:11 eureka
drwxr-xr-x.  3 root root        156 11月 14 11:23 graphvisualize
-rw-r--r--.  1 root root   38381394 11月 15 14:18 graphvisualize-web-1.0.0-SNAPSHOT.jar
-rw-------.  1 root root     153770 11月 14 11:28 nohup.out
drwxr-xr-x.  3 root root         57 10月 25 17:16 outfire
drwxr-xr-x.  3 root root         17 11月 14 11:24 siGraph
-rw-r--r--.  1 root root 1012984942 11月 20 10:14 spoon.zip
drwxr-xr-x.  2 root root         41 8月   9 14:12 zipkin
drwxr-xr-x.  2 root root         62 8月   9 14:36 zuul
[root@localhost file]# mv data-integration data_integration
[root@localhost file]# ll
总用量 1026884
drwxr-xr-x. 19 root root       4096 11月 20 10:58 data_integration
drwxr-xr-x.  3 root root         48 11月  3 11:30 dingtalk
drwxr-xr-x.  3 root root         54 10月 24 11:07 dxjc
drwxr-xr-x.  4 root root         67 10月 22 16:51 ehs
drwxr-xr-x.  2 root root         41 8月   9 14:11 eureka
drwxr-xr-x.  3 root root        156 11月 14 11:23 graphvisualize
-rw-r--r--.  1 root root   38381394 11月 15 14:18 graphvisualize-web-1.0.0-SNAPSHOT.jar
-rw-------.  1 root root     153770 11月 14 11:28 nohup.out
drwxr-xr-x.  3 root root         57 10月 25 17:16 outfire
drwxr-xr-x.  3 root root         17 11月 14 11:24 siGraph
-rw-r--r--.  1 root root 1012984942 11月 20 10:14 spoon.zip
drwxr-xr-x.  2 root root         41 8月   9 14:12 zipkin
drwxr-xr-x.  2 root root         62 8月   9 14:36 zuul
[root@localhost file]# 

有可能存在整个文件夹之间进行调用,因此将整个文件夹进行赋权:

[root@localhost file]# chmod +x data_integration/
[root@localhost file]# ll
总用量 1026884
drwxr-xr-x. 19 root root       4096 11月 20 10:58 data_integration
drwxr-xr-x.  3 root root         48 11月  3 11:30 dingtalk
drwxr-xr-x.  3 root root         54 10月 24 11:07 dxjc
drwxr-xr-x.  4 root root         67 10月 22 16:51 ehs
drwxr-xr-x.  2 root root         41 8月   9 14:11 eureka
drwxr-xr-x.  3 root root        156 11月 14 11:23 graphvisualize
-rw-r--r--.  1 root root   38381394 11月 15 14:18 graphvisualize-web-1.0.0-SNAPSHOT.jar
-rw-------.  1 root root     153770 11月 14 11:28 nohup.out
drwxr-xr-x.  3 root root         57 10月 25 17:16 outfire
drwxr-xr-x.  3 root root         17 11月 14 11:24 siGraph
-rw-r--r--.  1 root root 1012984942 11月 20 10:14 spoon.zip
drwxr-xr-x.  2 root root         41 8月   9 14:12 zipkin
drwxr-xr-x.  2 root root         62 8月   9 14:36 zuul
[root@localhost file]# ./data_integration/
-bash: ./data_integration/: 是一个目录
[root@localhost file]# 

猜你喜欢

转载自blog.csdn.net/qq_35561207/article/details/84286180