首页 > TAG信息列表 > shells

shells/hive.sh

  1 #!/bin/bash 2 function hive_stop(){ 3 pid=$(ps ax | grep "hive") 4 kill $pid || echo "hive服务关闭" 5 } 6 case $1 in 7 "start"){ 8 echo "__________启动hive__________" 9 /opt/module/hive/bin/hive

shells/kafka.sh

    1 #!/bin/sh 2 comm=/opt/module/kafka/bin/kafka-server-start.sh 3 commd=/opt/module/kafka/bin/kafka-server-stop.sh 4 topic=/opt/module/kafka/bin/kafka-topics.sh 5 producer=/opt/module/kafka/bin/kafka-console-producer.sh 6 consumer=/opt/module/ka

shells/hiveserver2.sh

  1 #!/bin/bash 2 function hiveserver2_stop(){ 3 pid=$(ps ax | grep "hiveserver2") 4 kill $pid || echo "hiveserver2服务已关闭" 5 } 6 case $1 in 7 "start"){ 8 echo "________________hiveServer2 服务 开启_____________

Linux expect 介绍和用例

expect是一个自动化交互套件,主要应用于执行命令和程序时,系统以交互形式要求输入指定字符串,实现交互通信。 expect自动交互流程: spawn启动指定进程---expect获取指定关键字---send向指定程序发送指定字符---执行完成退出. 1、安装 [root@1a41vla1870 rpm]# yum install -y expect 2

react-development插件快速安装

react-development插件安装 1: git clone -b v3 https://github.com/facebook/react-devtools cd react-devtools npm install cd shells/chrome node build.js 6.打开chrome浏览器 打开扩展程序进行如下操作: 打开开发者模式按钮 选择‘’加载已解压扩展程序‘’

添加Windows的envs

In Windows, environment variables can be applied in two ways. Set modifies the current shell's (the window's) environment values, and the change is available immediately, but it is temporary. The change will not affect other shells that are runn

vue-devtools安装

第一步 到guthub上去下载安装包,地址:https://github.com/vuejs/vue-devtools/tree/master 注意这里是需要下载master分支的 下载成功后里面会有一个shells文件夹,说明是可用版本,不是master分支的不会不会有此文件夹 第二步 然后输入npm install命令安装依赖 注意第一步时一

vue-devtools的安装

在使用vue时,采用vue-devtools工具进行调试会加快效率,本文介绍安装 vue-devtools工具的过程: 步骤如下: 1. 到github下载:地址 git clone https://github.com/vuejs/vue-devtools 2. 在vue-devtools目录下安装依赖包 cd vue-devtools npm install 3. 依赖包下载完后执行npm run b

Vue调试工具

调试工具安装   ① 克隆仓库  ② 安装依赖包  ③ 构建  ④ 打开Chrome扩展页面  ⑤ 选中开发者模式  ⑥ 加载已解压的扩展,选择shells/chrome    调试工具用法       

谷歌浏览器安装vue-devtools调试工具

1.到GitHub上下载 git clone https://github.com/vuejs/vue-devtools 2.安装依赖和打包 进入目录 cd vue-devtools安装依赖 npm i 或 cnpm i (npm较慢)打包 npm run build在vue-devtools文件夹下:shells>chrome>manifest.json,将配置里的persistent的值修改为true; 3.设置 进入谷歌

vue-devtools安装使用

vue-devtools安装使用 一.下载: dev分支(默认):https://github.com/vuejs/vue-devtools.git  根据需要切换分支:推荐使用master分支 二.安装依赖: npm install 如果遇到卡住的,退出重新来一遍 三.打包生成: npm run build vue-devtools\shells\chrome是否生成了build文件夹,如果有说明

vue-devtools安装过程的坑

1.打开这个工具的地址 https://github.com/vuejs/vue-devtools 2.按照给出的步骤一步步走    git clone git@github.com:vuejs/vue-devtools.git  npm install 3.一定要看清楚你下载的代码是不是对的,我之前就因为下载的是dev分支上的 run 的时候一直报错          git

ftp 用户 /sbin/nologin 后 在登录报530错误

ftp登陆报错530 Login incorrect. Login failed. 正常的 /sbin/bash的用户可以登录ftp  不允许ssh登录后 在登录ftp报错 原因:   查看/etc/shells 里面有木有 /sbin/nologin 这行  系统某些服务在运行过程中,会去检查用户能够使用的 shells,而这些 shell 的查询就是借助 /etc/s

C语言打飞机小游戏

C语言实现简单的打飞机小游戏 编译环境:vs2019 需求: 在同一个平面内,控制大炮发射的三个方向,空格发射炮弹,敌军和友军飞机会一直随机在天上飞过,击中天上飞行的敌军飞机加一分,击中友军飞机减一分 思路: 先初始化程序,再画出说明和地图,接着进入无限循环,循环中分别实现飞机不停地在

macOS Catalina Terminal,提示 The default interactive shell is now zsh,解决方案

macOS升级Catalina后 1:在使用命令台时出现了:   The default interactive shell is now zsh.To update your account to use zsh, please run `chsh -s /bin/zsh`.For more details, please visit https://support.apple.com/kb/HT208050. 2:原我使用的是bash风格,提示语告知现在

在CentOS下搭建ftp服务器遇到的一些问题

系统:CentOS 7.6 64位 遇到的问题: 在跟着腾讯云文档 https://cloud.tencent.com/document/product/213/10912 搭建Ftp服务器后,输入telnet + 云服务器公网 IP + 21也能够成功连接。 但是在FileZilla连接时出现错误如下 状态: 连接建立,等待欢迎消息... 状态: 不安全的服务器,不支

shells - 有效登录 shell 的路径名

描述 /etc/shells 是一个文本文件,其中包含有效登录 shell 的路径全名。 chsh(1) 需要参考这个文件,并且其他程序也可以查询该文件。有些程序从这个文件判断用户是不是标准用户。比如: ftp 守护进程一般不会允许那些所用的 shell 没有在该文件中注明用户访问。 实例 /etc/shells 可能

同一脚本sh 脚本名 报Syntax error: "(" unexpected而./脚本名不报错,求解!!

同一脚本sh 脚本名 执行时报Syntax error: "(" unexpected;而./脚本名执行不报错,为什么呢 脚本内容如下: function usage(){ echo "usage:$0 url" exit 1}function check_url(){ wget --spider -q -o /dev/null --tries=1 -T 5 $1 if [ $? -eq 0 ] then echo "$1 is

判断字符串是否以某字符串开头或结尾

import os,stat# str.startswith()# 获取当前目录下以.py 或者.sh结尾的文件l = [name for name in os.listdir('/shells/') if name.endswith(('.sh','py'))]print(l)# 获取文件的权限for file in l: print(oct(os.stat('/shells/%s'%file).st_mode))