本篇内容主要讲解“怎么安装MQ7.5脚本”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“怎么安装MQ7.5脚本”吧!
十余年的衡水网站建设经验,针对设计、前端、开发、售后、文案、推广等六对一服务,响应快,48小时及时工作处理。全网营销推广的优势是能够根据用户设备显示端的尺寸不同,自动调整衡水建站的显示方式,使网站能够适用不同显示终端,在浏览器中调整网站的宽度,无论在任何一种浏览器上浏览网站,都能展现优雅布局与设计,从而大程度地提升浏览体验。创新互联从事“衡水网站设计”,“衡水网站推广”以来,每个客户项目都认真落实执行。安装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
到此,相信大家对“怎么安装MQ7.5脚本”有了更深的了解,不妨来实际操作一番吧!这里是创新互联网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!
网页名称:怎么安装MQ7.5脚本-创新互联
URL链接:http://lswzjz.com/article/dspgps.html