zabbix编译:

阅读更多

 

  213  wget ftp://195.220.108.108/linux/epel/6/x86_64/libmcrypt-devel-2.5.8-9.el6.x86_64.rpm
  216  wget ftp://195.220.108.108/linux/epel/6/x86_64/libmcrypt-2.5.8-9.el6.x86_64.rpm
http://blog.s135.com/nginx_php_v6/

/etc/yum.repos.d/nginx.repo and paste one of the configurations below:

CentOS:

[nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=0 enabled=1
 yum -y install nginx  mysql-devel  mysql-server  net-snmp-devel  gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers
#wget http://www.php.net/get/php-5.5.0.tar.xz/from/tw1.php.net/mirror 5.5mysql支持兼容差。
可能是 mysql.default_socket、mysqli.default_socket、pdo_mysql.default_socket,php.ini 配置文件里面的变量设置ok即可。
wget http://hk2.php.net/distributions/php-5.4.17.tar.bz2
wget http://download.oracle.com/otn-pub/java/jdk/7u25-b15/jdk-7u25-linux-x64.tar.gz?AuthParam=1374050028_ae961ed9f7e7d7c3395be3151532aa07
wget http://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.0.6/zabbix-2.0.6.tar.gz?r=http%3A%2F%2Fwww.zabbix.com%2Fdownload.php&ts=1374046580&use_mirror=jaist
   
zabbix
./configure  --prefix=/opt/php --with-mysql --enable-fpm --with-zlib --enable-zip --with-bz2 --with-mysqli --enable-mbstring --with-mcrypt  --enable-bcmath  --enable-sockets  --with-gd   --with-freetype-dir --with-jpeg-dir --with-png-dir   --with-gettext

cp /opt/software/php-5.4.10/sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
chmod +x /etc/init.d/php-fpm 
cp /opt/php/etc/php-fpm.conf.default  /opt/php/etc/php-fpm.conf
cp /opt/software/php-5.4.10/php.ini-production  /opt/php/lib/php.ini
php.ini: date.timezone = PRC 
nginx php:
        root   /usr/share/nginx/html;
        #root           html;
fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;

./configure  --prefix=/opt/php --with-mysql --enable-fpm --with-zlib --enable-zip --with-bz2 --with-mysqli --enable-mbstring --with-mcrypt  --enable-bcmath  --enable-sockets  --with-gd   --with-freetype-dir --with-jpeg-dir --with-png-dir   --with-gettext

 ./configure  --prefix=/opt/zabbix  --enable-java   --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl  

数据库初始化
 mysql  zabbix < /opt/software/zabbix-2.0.4/database/mysql/schema.sql 
 mysql  zabbix < /opt/software/zabbix-2.0.4/database/mysql/images.sql 
 mysql  zabbix < /opt/software/zabbix-2.0.4/database/mysql/data.sql

cp  misc/init.d/fedora/core5/zabbix_server  /etc/init.d/

zabbix 监控java 开启jmx  jmx的端口是动态的,防火墙或端口设置参考https://www.zabbix.com/forum/showthread.php?t=27203
 https://support.zabbix.com/browse/ZBX-5326?focusedCommentId=62570&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-62570


phpmyadmin: setup/index.php   http://192.168.222.130/phpmyadmin/Documentation.html 安装文档等等
svn 备份:

nowdate=`date +%F:%H.%M.%S`

dir='/tmp/svnbaklog/'$nowdate

cd /tmp; pwd >> $dir; cd /opt/bak;pwd >> $dir;

svnadmin hotcopy /home/svn/lesuke /opt/bak/lskbak$nowdate

tenday=`date +%F -d '15 day ago'`

cd /opt/bak && rm -rfv lskbak$tenday*  >> $dir 2>&1

ls -l /opt/bak  >> $dir; echo `date` >> $dir;echo  >> $dir;

rsync  -avr --delete   /opt/bak    10....:/opt/svnbakfor44remote/   >>  $dir 2>&1

 
 

你可能感兴趣的:(zabbix编译:)