安裝MQ7.5指令碼
安裝MQ7.5指令碼:
#!/bin/sh
echo "start to create users and roles..."
groupadd -g 994 mqm
mkdir /home/mqm
useradd -u 994 -g 994 -d /home/mqm mqm
chown -R mqm:mqm /home/mqm
echo "start to install mq...."
mkdir mqins
gunzip WS_MQ_LIN_ON_X86-64_V7.5.0.1_EIM.tar.gz
tar -xvf WS_MQ_LIN_ON_X86-64_V7.5.0.1_EIM.tar -C mqins
cd mqins
./mqlicense.sh -accept
rpm -ivh MQSeriesJava-7.5.0-1.x86_64.rpm MQSeriesJRE-7.5.0-1.x86_64.rpm MQSeriesClient-7.5.0-1.x86_64.rpm MQSeriesFTAgent-7.5.0-1.x86_64.rpm MQSeriesFTBase-7.5.0-1.x86_64.rpm MQSeriesFTLogger-7.5.0-1.x86_64.rpm MQSeriesFTService-7.5.0-1.x86_64.rpm MQSeriesFTTools-7.5.0-1.x86_64.rpm MQSeriesGSKit-7.5.0-1.x86_64.rpm MQSeriesMan-7.5.0-1.x86_64.rpm MQSeriesMsg_Zh_CN-7.5.0-1.x86_64.rpm MQSeriesRuntime-7.5.0-1.x86_64.rpm MQSeriesSamples-7.5.0-1.x86_64.rpm MQSeriesSDK-7.5.0-1.x86_64.rpm MQSeriesServer-7.5.0-1.x86_64.rpm MQSeriesXRClients-7.5.0-1.x86_64.rpm MQSeriesXRService-7.5.0-1.x86_64.rpm
/opt/mqm/bin/setmqinst -i -p /opt/mqm
echo "set envs for mq7.5....."
echo "#config for mq7.5" >> /etc/sysctl.conf
echo "net.ipv4.ip_forward = 0" >> /etc/sysctl.conf
echo "net.ipv4.conf.default.rp_filter = 1" >> /etc/sysctl.conf
echo "net.ipv4.conf.default.accept_source_route = 0" >> /etc/sysctl.conf
echo "net.ipv4.tcp_keepalive_time = 200" >> /etc/sysctl.conf
echo "kernel.sysrq = 0" >> /etc/sysctl.conf
echo "kernel.core_uses_pid = 1" >> /etc/sysctl.conf
echo "net.ipv4.tcp_syncookies = 1" >> /etc/sysctl.conf
echo "kernel.msgmnb = 65536" >> /etc/sysctl.conf
echo "kernel.msgmax = 65536" >> /etc/sysctl.conf
echo "net.ipv4.conf.all.accept_redirects = 0" >> /etc/sysctl.conf
echo "kernel.sem = 500 512000 250 4096" >> /etc/sysctl.conf
echo "kernel.msgmni = 1024" >> /etc/sysctl.conf
echo "kernel.shmmni = 4096" >> /etc/sysctl.conf
echo "kernel.shmall = 2097152" >> /etc/sysctl.conf
echo "kernel.shmmax = 268435456" >> /etc/sysctl.conf
echo "fs.file-max = 524288" >> /etc/sysctl.conf
echo "net.ipv4.ip_local_port_range = 8192 65535" >> /etc/sysctl.conf
echo "vm.max_map_count=1966080" >> /etc/sysctl.conf
sysctl -p
echo "#config for mq" >> /etc/security/limits.conf
echo "* hard nproc 8192" >> /etc/security/limits.conf
echo "* soft nofile 262144" >> /etc/security/limits.conf
echo "* hard nofile 262144" >> /etc/security/limits.conf
echo "rjroot soft nproc 8192" >> /etc/security/limits.conf
echo "mqm soft nproc 8192" >> /etc/security/limits.conf
#!/bin/sh
echo "start to create users and roles..."
groupadd -g 994 mqm
mkdir /home/mqm
useradd -u 994 -g 994 -d /home/mqm mqm
chown -R mqm:mqm /home/mqm
echo "start to install mq...."
mkdir mqins
gunzip WS_MQ_LIN_ON_X86-64_V7.5.0.1_EIM.tar.gz
tar -xvf WS_MQ_LIN_ON_X86-64_V7.5.0.1_EIM.tar -C mqins
cd mqins
./mqlicense.sh -accept
rpm -ivh MQSeriesJava-7.5.0-1.x86_64.rpm MQSeriesJRE-7.5.0-1.x86_64.rpm MQSeriesClient-7.5.0-1.x86_64.rpm MQSeriesFTAgent-7.5.0-1.x86_64.rpm MQSeriesFTBase-7.5.0-1.x86_64.rpm MQSeriesFTLogger-7.5.0-1.x86_64.rpm MQSeriesFTService-7.5.0-1.x86_64.rpm MQSeriesFTTools-7.5.0-1.x86_64.rpm MQSeriesGSKit-7.5.0-1.x86_64.rpm MQSeriesMan-7.5.0-1.x86_64.rpm MQSeriesMsg_Zh_CN-7.5.0-1.x86_64.rpm MQSeriesRuntime-7.5.0-1.x86_64.rpm MQSeriesSamples-7.5.0-1.x86_64.rpm MQSeriesSDK-7.5.0-1.x86_64.rpm MQSeriesServer-7.5.0-1.x86_64.rpm MQSeriesXRClients-7.5.0-1.x86_64.rpm MQSeriesXRService-7.5.0-1.x86_64.rpm
/opt/mqm/bin/setmqinst -i -p /opt/mqm
echo "set envs for mq7.5....."
echo "#config for mq7.5" >> /etc/sysctl.conf
echo "net.ipv4.ip_forward = 0" >> /etc/sysctl.conf
echo "net.ipv4.conf.default.rp_filter = 1" >> /etc/sysctl.conf
echo "net.ipv4.conf.default.accept_source_route = 0" >> /etc/sysctl.conf
echo "net.ipv4.tcp_keepalive_time = 200" >> /etc/sysctl.conf
echo "kernel.sysrq = 0" >> /etc/sysctl.conf
echo "kernel.core_uses_pid = 1" >> /etc/sysctl.conf
echo "net.ipv4.tcp_syncookies = 1" >> /etc/sysctl.conf
echo "kernel.msgmnb = 65536" >> /etc/sysctl.conf
echo "kernel.msgmax = 65536" >> /etc/sysctl.conf
echo "net.ipv4.conf.all.accept_redirects = 0" >> /etc/sysctl.conf
echo "kernel.sem = 500 512000 250 4096" >> /etc/sysctl.conf
echo "kernel.msgmni = 1024" >> /etc/sysctl.conf
echo "kernel.shmmni = 4096" >> /etc/sysctl.conf
echo "kernel.shmall = 2097152" >> /etc/sysctl.conf
echo "kernel.shmmax = 268435456" >> /etc/sysctl.conf
echo "fs.file-max = 524288" >> /etc/sysctl.conf
echo "net.ipv4.ip_local_port_range = 8192 65535" >> /etc/sysctl.conf
echo "vm.max_map_count=1966080" >> /etc/sysctl.conf
sysctl -p
echo "#config for mq" >> /etc/security/limits.conf
echo "* hard nproc 8192" >> /etc/security/limits.conf
echo "* soft nofile 262144" >> /etc/security/limits.conf
echo "* hard nofile 262144" >> /etc/security/limits.conf
echo "rjroot soft nproc 8192" >> /etc/security/limits.conf
echo "mqm soft nproc 8192" >> /etc/security/limits.conf
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29519108/viewspace-2138762/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- pyenv 安裝指令碼指令碼
- lnmp安裝指令碼LNMP指令碼
- Docker的指令碼安裝Docker指令碼
- Tomcat安裝指令碼Tomcat指令碼
- LNMP安裝shell指令碼LNMP指令碼
- Ansible安裝指令碼指令碼
- install安裝指令碼指令碼
- shell指令碼:一鍵安裝LAMP、LNMP指令碼指令碼LAMPLNMP
- ecs使用指令碼安裝oracle指令碼Oracle
- LAMPorLNMP一鍵安裝指令碼LAMPLNMP指令碼
- 指令碼安裝apache+php指令碼ApachePHP
- SQL Server解除安裝指令碼SQLServer指令碼
- 自動化指令碼安裝mysql shell指令碼範例指令碼MySql
- shell指令碼一鍵安裝nginx指令碼Nginx
- mydumper自動化安裝指令碼指令碼
- 【Zabbix】zabbix_agent安裝指令碼指令碼
- 11g解除安裝指令碼指令碼
- Memcached安裝及啟動指令碼指令碼
- golang一鍵自動安裝指令碼Golang指令碼
- LNMP一鍵自動安裝指令碼LNMP指令碼
- Inno Setup 5.22安裝指令碼示例指令碼
- mysql8.0原始碼一鍵安裝指令碼MySql原始碼指令碼
- Shell指令碼 | 一鍵解除安裝安卓App指令碼安卓APP
- 【PHP】php安裝bcmath擴充套件指令碼PHP套件指令碼
- centos7 mysql 一鍵安裝指令碼CentOSMySql指令碼
- 使用指令碼進行 SAP Spartacus 安裝工作指令碼
- 編寫安裝配置mail服務指令碼AI指令碼
- CentOS下LAMP一鍵yum安裝指令碼CentOSLAMP指令碼
- 自動化安裝zabbix指令碼(3.0/3.2)指令碼
- cacti一鍵安裝指令碼V1.1指令碼
- Oracle安裝前的環境配置指令碼Oracle指令碼
- Hadoop自動化安裝shell指令碼Hadoop指令碼
- LNMP一鍵自動安裝指令碼薦LNMP指令碼
- Linux下JPEG庫安裝指令碼(轉)Linux指令碼
- rsync客戶端一鍵安裝rsync指令碼(原始碼)客戶端指令碼原始碼
- 原始碼包編譯安裝MySQL 5.6指令碼原始碼編譯MySql指令碼
- Linux 筆記分享十六:指令碼安裝包Linux筆記指令碼
- 靜默安裝19C RAC的指令碼指令碼