03 2020 档案
摘要:1 #!/bin/bash 2 3 # 配置管理IP 4 #vi /etc/sysconfig/network-scripts/ifcfg-ens192 5 6 # 配置pxe IP 192.168.0.1/24 不能更换成其他IP 7 #vi /etc/sysconfig/network-scri
阅读全文
摘要:#!/bin/bash # 设置jira程序安装目录 APP_DIR=/usr/local/jirasoftware # 设置jira数据目录 DATA_DIR=/var/jirasoftware-home # 设置jira最大使用内存 MB,保留512MB给系统和其他程序使用 JIRA_MEM=$
阅读全文
摘要:1 #!/bin/bash 2 3 # 检查操作系统版本,该脚本只能运行在 Centos 7.x 系统上 4 5 cat /etc/redhat-release |grep -i centos |grep '7.[[:digit:]]' >/dev/null 6 7 if [[ $? != 0 ]]
阅读全文