码迷,mamicode.com
首页 >  
搜索关键字:bash    ( 15235个结果)
5.while
1.结构 while condition do command done 例子: #!/bin/bash int=1 while (($int<=5)) do echo $int let "int++" done 2.无线循环的例子 while : do command done while tur ...
分类:其他好文   时间:2020-06-16 23:24:10    阅读次数:77
linux在线安装mysql
详细看网址:https://blog.csdn.net/wrs120/article/details/77509070 压缩包和解压包的存放目录均为/usr/local/src/ 环境变量在/root/.bash_profile (自己添加) 一、安装前准备 1. 安装gcc # 安装命令 yum ...
分类:数据库   时间:2020-06-16 23:23:35    阅读次数:270
shell脚本
#!/bin/bash echo "1. 对服务器硬件的监控" echo " 能够对服务器CPU进行监控,并输出CPU的信息" cpu=`cat /proc/cpuinfo |head -n 17` echo "CPU的信息为$cpu" echo " " echo " 2.能够对服务器内存进行监控, ...
分类:系统相关   时间:2020-06-16 21:54:51    阅读次数:70
sonar 容器化部署
一、sonar安装步骤 (部署硬件要求2G以上内存) 1. 准备镜像 docker pull postgres docker pull sonarqube2. 编写脚本 1.start-postgresql.sh #!/bin/bash docker stop postgresql docker r ...
分类:其他好文   时间:2020-06-16 20:39:08    阅读次数:81
【错误】上传新的项目出错 error: failed to push some refs to 'https://github.com/...
问题描述:在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
linux .bash_profile在哪里
全局的是在/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
kafka和zookeeper集群搭建脚本
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
ssh执行命令
#!/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
【Oracle】Linux上配置新建用户访问SQL*Plus
1.问题描述 现在新建了一个用户logan,无法正常使用SQL*Plus命令,经过查询后,发现需要配置Oracle环境变量信息 2.解决办法 进入到Oracle用户家目录下/home/oracle,使用命令cat .bash_profile查看其中的内容,将其中与Oracle相关的变量信息copy到 ...
分类:数据库   时间:2020-06-16 15:33:57    阅读次数:77
共15235条   上一页 1 ... 76 77 78 79 80 ... 1524 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!