Linux四

Linux四

在Linux中安装常用的软件

1、以hadoop,下载 wget 压缩文件后,进行解压tar

2、然后把Hadoop的bin目录,配置到path的环境变量 /etc/profile 记得环境变量要生效,source /etc/profile

3、验证环境是否OK hadoop -h

 

linux启动服务:

systemctl start mysql 启动服务

systemctl stop mysql 停止服务

systemctl status mysql 服务状态

centos:7.8      service start/stop/status 服务名称

 

输出命令

echo

  

printf \n换行 \t空格

 

%s 名字%d 年龄%f薪资

 

useradd userName 用户创建

userdel userName 用户删除

passwd xh(用户名) 修改密码

Ctrl+uc 清空输入的指令

常用的数据类型

①、字符串 str string %s

②、整型 年龄 正整数 %d

③、布而类型 true(真) false(假) %s

④、Float 带有小数点的数字 (薪资) %f

windows系统基于tomcat搭建Jenkins

1.下载tomcat 地址 https://dlcdn.apache.org/tomcat/tomcat-8/v8.5.81/bin/apache-tomcat-8.5.81.zip 进行安装

2.下载jenkins.war 进入jenkins官网 https://www.jenkins.io 下载 放在webapps的目录下

 

3.在tomcat bin 目录下找到 startup.bat 打开

 

 

 4.在浏览器输入http://localhost:8080/ 验证

 

 

 

5.在浏览器输入http://localhost:8080/jenkins 打开  根据提示找到密码

 

 

创建用户

 

 

 6.安装插件

 

 

 7.新建item 设置名称

 

 

 8.配置文件

 

(1)勾选old builds

 

 

 (2)把jmeter tests的路径和执行插件添加进来

 

 

 (3)把jmeter html 路劲添加上

 

 9.生成测试报告

 

 

 

 

 

posted @ 2022-08-02 21:09  刘乐乐liu  阅读(30)  评论(0)    收藏  举报