问题描述:在git bash中键入 $ git push origin master 进行提交的时候出现 如下错误: error: failed to push some refs to 'https://github.com/bluetata/ 问题原因:远程库与本地库不一致造成的,在hint中也 ...
分类:
Web程序 时间:
2020-06-16 18:10:32
阅读次数:
85
全局的是在/etc目录下(/etc/profile)用户个人的是在用户的家目录下(~/.profile) 查看: 全局:cat /etc/profile 个人:cat ~/.bash_profile 编辑: 全局:vi /etc/profile 个人:vi ~/.bash_profile ...
分类:
系统相关 时间:
2020-06-16 16:51:46
阅读次数:
90
#!/bin/bashecho $USERworkhome=/lvnktest/dygaelasticsearch-service/workjar=${workhome}dygaelasticsearch-service.jarpid=`ps -ef|grep dygaelasticsearch-s ...
分类:
其他好文 时间:
2020-06-16 16:50:44
阅读次数:
73
0.kafka和zookeeper一键搭建脚本如下#!/bin/bash#Auth:xusj#Date:2020/6/15#3个节点集群使用,分别在节点123执行该脚本即可。curDir=`pwd`localIp=$(ifconfig|grepinet|grepnetmask|grepbroadcast|awk‘{print$2}‘|sed-n‘1p‘)zkPid=$(psaux|grepzook
分类:
其他好文 时间:
2020-06-16 16:50:25
阅读次数:
65
1.公钥批量分发 shell 实现 100 台服务器的公钥的批量分发;LLD 规划:100 台服务器 ip 为:192.168.42.101-201,root 密码:123456。 #远程机器的用户名和密码 password=123456 username=root #将本机的公钥复制到远程机器的a ...
分类:
系统相关 时间:
2020-06-16 16:47:00
阅读次数:
61
#!/bin/bash # #Author: panb ##此脚本用来向openresty服务器执行命令 # set -e Usage(){ echo "Usage: $0 host1 host2 ... 'command'" } if [ $# -lt 2 ];then Usage exit 0 ...
分类:
其他好文 时间:
2020-06-16 15:40:23
阅读次数:
69
1.问题描述 现在新建了一个用户logan,无法正常使用SQL*Plus命令,经过查询后,发现需要配置Oracle环境变量信息 2.解决办法 进入到Oracle用户家目录下/home/oracle,使用命令cat .bash_profile查看其中的内容,将其中与Oracle相关的变量信息copy到 ...
分类:
数据库 时间:
2020-06-16 15:33:57
阅读次数:
77
case用法 case 值 in 模式1) command1 command2 command3 ;; 模式2) command1 command2 command3 ;; *) command1 command2 command3 ;; esac 值可以为变量或常数 注意 模式1) 模式2) *) ...
分类:
系统相关 时间:
2020-06-16 15:23:40
阅读次数:
68
adb shell getprop ro.product.ota.host 获取配置项的值 adb shell setprop produc.ota.port 8080 设置配置项的值【ro开头的是只读配置项】 adb shell mount -o remount,rw /vendor 已读写的模式 ...
分类:
数据库 时间:
2020-06-16 15:18:30
阅读次数:
152
rpm命令是RPM软件包的管理工具。rpm原本是Red Hat Linux发行版专门用来管理Linux各项套件的程序,由于它遵循GPL规则且功能强大方便,因而广受欢迎。逐渐受到其他发行版的采用。RPM套件管理方式的出现,让Linux易于安装,升级,间接提升了Linux的适用度。 rpm常见命令参数 ...
分类:
系统相关 时间:
2020-06-16 15:15:15
阅读次数:
73