rpm定制

/ shell / 1 条评论 / 2273浏览

1. activemq
1>修改 activemq 配置文件 conf/jetty-realm.properties ,
将 admin: admin, admin 修改为
   admin: Nsky2019, admin
   
2>修改 activemq 配置文件 conf/activemq.xml

                <storeUsage>
                    <storeUsage limit="100 gb"/>
                </storeUsage>
                <tempUsage>
                    <tempUsage limit="50 gb"/>
                </tempUsage>
修改为
                <storeUsage>
                    <storeUsage limit="10 gb"/>
                </storeUsage>
                <tempUsage>
                    <tempUsage limit="5 gb"/>
                </tempUsage>

3>修改spec文件 + install脚本 + maintains activemq启动脚本

4>修改daily打包iso/rpm/upgrade中的脚本目录

2. tomcat
1> 修改apache-tomcat-9.0.35/bin目录里的catalina.sh文件
UMASK="0027" -> UMASK="0022"
2>install + tomcat源码包

3. nginx
1>下载tar.gz
2>替换conf目录里的文件 拷贝nginx.conf+nginx.services文件到里面去
3>./confiure --prefix=/usr/local/nginx --with-http_ssl_module --with-debug
4>修改objs/Makefile文件加入最后几行拷贝文件脚本
5>rpmbuild -bb spec文件

【nginx日志定制输出特定请求串】
https://blog.csdn.net/xbynet/article/details/51899286?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase
underscores_in_headers on;
我们自定义header为X-Real-IP,通过第二个nginx获取该header时需要这样:
$http_x_real_ip; (一律采用小写,而且前面多了个http_)
'"udid":"$http_udid"'

4. jdk
1>下载tar.gz
2>解开 + install.sh
3>spec安装时写入
 echo 'export JAVA_HOME=/usr/local/jdk18' >> /etc/profile
 echo 'export CLASSPATH=:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar' >> /etc/profile
 echo 'PATH=$JAVA_HOME/bin:$PATH' >> /etc/profile
 echo 'export PATH USER LOGNAME MAIL HOSTNAME' >> /etc/profile
 source /etc/profile
4>rpmbuild即可

  1. /mdmconfig/Daily/directory