fpm打包mysql-server

來源:互聯網
上載者:User

標籤:fpm

1.解壓

tar -xf mysql-5.6.30-linux-glibc2.5-x86_64.tar.gz  -C /usr/local/cd /usr/local/ && mv mysql-5.6.30-linux-glibc2.5-x86_64/ mysql

2.配置安裝zabbix後的初始化指令碼

[[email protected] ~]# cat install_mysql.sh #!/bin/bash#建立使用者useradd mysql -s /sbin/nologin#修改許可權chown -R mysql.mysql /usr/local/mysql/chown -R mysql.mysql  /var/lib/mysql/#拷貝設定檔和啟動指令碼cp /usr/local/mysql/support-files/my-default.cnf  /etc/my.cnfcp /usr/local/mysql/support-files/mysql.server  /etc/init.d/mysqld#建立軟串連ln -s /usr/local/mysql/bin/mysqld* /bin/ln -s /usr/local/mysql/bin/mysql  /bin/

3.打包

[[email protected] ~]# fpm -s dir -t rpm -n mysql-server -v 5.6.30 --post-install /root/install_mysql.sh -f /usr/local/mysql/no value for epoch is set, defaulting to nil {:level=>:warn}no value for epoch is set, defaulting to nil {:level=>:warn}Created package {:path=>"mysql-server-5.6.30-1.x86_64.rpm"}


本文出自 “不拋棄!不放棄” 部落格,請務必保留此出處http://thedream.blog.51cto.com/6427769/1870342

fpm打包mysql-server

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.