澳门在线威尼斯官方 > 电脑操作 > 澳门在线威尼斯官方:4源码安装步骤

原标题:澳门在线威尼斯官方:4源码安装步骤

浏览次数:110 时间:2019-09-30

cd /app/weblogic/software/zabbix_setup/httpd-2.2.23
./configure --prefix=/app/weblogic/software/httpd-2.2.23 --with-apr=/app/weblogic/software/httpd-2.2.23/apr --with-apr-util=/app/weblogic/software/httpd-2.2.23/apr-util --enable-module=shared
make
make install

            fastcgi_param  SCRIPT_FILENAME  /data/zabbix$fastcgi_script_name;

./apachectl start

5.zabbix server端安装:作者要好本机安装必要安装MySQL-dev
cd /app/weblogic/software/zabbix_setup/zabbix-3.4.10
./configure --prefix=/app/weblogic/software/zabbix3.4 --enable-server --enable-java --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2

            root  /data/zabbix;

cd /app/weblogic/software/zabbix_setup/mcrypt-2.6.8
export LD_LIBRARY_PATH=/app/weblogic/software/php-5.6.33/libmcrypt/lib:/app/weblogic/software/php-5.6.33/mhash/lib:/app/weblogic/software/php-5.6.33/libiconv/lib:/usr/local/lib
export LDFLAGS="-L/app/weblogic/software/php-5.6.33/mhash/lib/ -I/app/weblogic/software/php-5.6.33/mhash/include/"
export CFLAGS="-I/app/weblogic/software/php-5.6.33/mhash/include/"
./configure --prefix=/app/weblogic/software/php-5.6.33/mcrypt --with-libiconv-prefix=/app/weblogic/software/php-5.6.33/libiconv --with-libmcrypt-prefix=/app/weblogic/software/php-5.6.33/libmcrypt

/opt/zabbix_agent/sbin/zabbix_agentd -c /opt/zabbix_agent/etc/zabbix_agentd.conf

vim httpd.conf 修改配置http帮忙
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .php5
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
4.PHP安裝:
1.安装libiconv-1.14 php依赖
cd /app/weblogic/software/zabbix_setup/libiconv-1.14
./configure --prefix=/app/weblogic/software/php-5.6.33/libiconv
make
make install

user=zabbix

zabbix3.4源码安装步骤
1.安装蒙受:
设置机器:22.224.9.227 以下简称监察和控制机;
操作系统音信:内核版本:
Linux version 2.6.18-194.1.AXS3 (packager@asianux.com) (gcc version 4.1.2 20080704 (Asianux 3.0 4.1.2-48)) #1 SMP Fri May 7 10:03:53 CST 2010
发行版本:
Red Flag Asianux Server 3 for x86_64 (Quartet SP3)
鉴于考虑到mysql要存大批量的数码,所以安装的目录要相当的大,故思索安装在weblogic/weblogic家目录上面
出于官方推荐服务端和顾客端必得在不一致的客户下边运维,故思量将server端安装在monitor/monitor下边,全部的agent运营在应用客户上面
2.mysql5.6安装:weblogic/weblogic顾客下边,安装目录:/app/weblogic/software/mysql5.6
间接运用原本mysql,拷贝修改相应的配备文件就能够
nohup /app/weblogic/software/mysql5.6/mysql/bin/mysqld --defaults-file=/app/weblogic/software/mysql5.6/mysql/conf/my.cnf --basedir=/app/weblogic/software/mysql5.6/mysql --datadir=/app/weblogic/software/mysql5.6/data --plugin-dir=/app/weblogic/software/mysql5.6/mysql/lib/plugin --log-error=/app/weblogic/software/mysql5.6/data/monap4.err --pid-file=/app/weblogic/software/mysql5.6/monap4.pid --socket=/app/weblogic/software/mysql5.6/mysql.sock --port=3306 --explicit_defaults_for_timestamp &
/app/weblogic/software/mysql5.6/mysql/bin/mysql -uroot -p --socket=/app/weblogic/software/mysql5.6/mysql.sock
3.安裝http:
mkdir -p /app/weblogic/software/httpd-2.2.23
mkdir -p /app/weblogic/software/httpd-2.2.23/apr
mkdir -p /app/weblogic/software/httpd-2.2.23/apr-util
cd /app/weblogic/software/zabbix_setup
tar -xvf httpd-2.2.23.tar.gz
cd /app/weblogic/software/zabbix_setup/httpd-2.2.23/srclib/apr
./configure --prefix=/app/weblogic/software/httpd-2.2.23/apr
make
make install

yum localinstall  -y percona-zabbix-templates-1.1.7-2.noarch.rpm

cd /app/weblogic/software/httpd-2.2.23/bin
vim ../htdocs/index.php
<?php
phpinfo();
?>

sed -i "s/max_input_time = 60/max_input_time = 300/g" /opt/php/etc/php.ini

7.配置php:
cd /app/weblogic/software/httpd-2.2.23/htdocs
mkdir zabbix
cd /app/weblogic/software/zabbix_setup/zabbix-3.4.10/frontends/php
cp -r * /app/weblogic/software/httpd-2.2.23/htdocs/zabbix/
cd /app/weblogic/software/php-5.6.33/lib
vim php.ini
max_execution_time = 300
max_input_time = 300
session.auto_start = 0
mbstring.func_overload = 0
always_populate_raw_post_data = -1
date.timezone =Asia/Shanghai

Include=/opt/zabbix_agent/etc/zabbix_agentd.conf.d/

make
make isntall
6.布局server端,重要安顿日志路线和数据库相关
创制有关的目录:
mkdir /app/weblogic/software/zabbix3.4/log/
mkdir /app/weblogic/software/zabbix3.4/SocketDir
mkdir /app/weblogic/software/zabbix3.4/SNMPTrapperFile/
mkdir /app/weblogic/software/zabbix3.4/alertscripts
mkdir /app/weblogic/software/zabbix3.4/externalscripts
安排文件:
LogFile=/app/weblogic/software/zabbix3.4/log/zabbix_server.log
LogFileSize=0
PidFile=/app/weblogic/software/zabbix3.4/zabbix_server.pid
SocketDir=/app/weblogic/software/zabbix3.4/SocketDir
DBHost=192.168.99.2
DBPort=3306
DBName=zabbix
DBUser=root
DBPassword=jack
SNMPTrapperFile=/app/weblogic/software/zabbix3.4/SNMPTrapperFile/zabbix_traps.tmp
Timeout=4
AlertScriptsPath=/app/weblogic/software/zabbix3.4/alertscripts
ExternalScripts=/app/weblogic/software/zabbix3.4/externalscripts
LogSlowQueries=3000

source /opt/zabbix-3.4.4/database/mysql/images.sql;

cd /app/weblogic/software/zabbix_setup/php-5.6.33
./configure
--prefix=/app/weblogic/software/php-5.6.33
--with-mysql
--with-mysqli=mysqlnd
--with-pdo-mysql=mysqlnd
--with-iconv-dir=/app/weblogic/software/php-5.6.33/libiconv
--with-freetype-dir
--with-jpeg-dir
--with-png-dir
--with-zlib
--with-libxml-dir=/usr
--with-gettext
--enable-xml
--disable-rpath
--enable-bcmath
--enable-shmop
--enable-sysvsem
--enable-inline-optimization
--with-curl
--enable-mbregex
--enable-fpm
--enable-mbstring
--with-gd
--enable-gd-native-ttf
--with-openssl
--enable-pcntl
--enable-sockets
--with-xmlrpc
--enable-soap
--enable-short-tags
--enable-static
--with-xsl
--with-apxs2=/app/weblogic/software/httpd-2.2.23/bin/apxs
--enable-ftp
--enable-opcache=no
make
make install

socket=/tmp/mysql.sock

8.分界面布局:
Admin/zabbix
语言采纳帮衬汉语
9.agent安装:
cd /app/weblogic/zabbix-3.4.10
./configure --prefix=/home/monitor/zabbix_agent --enable-agent
make
make install
/home/monitor/software/httpd-2.2.23/bin/zabbix_agent/sbin
./zabbix_agentd -c ../etc/zabbix_agentd.conf
配置:
/home/monitor/zabbix_agent/log
PidFile=/home/monitor/zabbix_agent/zabbix_agentd.pid
LogFile=/home/monitor/zabbix_agent/log/zabbix_agentd.log
PidFile=/home/monitor/zabbix-agent/zabbix_agentd.pid
LogFile= /home/monitor/zabbix-agent/logs/zabbix_agentd.log
Hostname=JacK2
Include=/home/monitor/zabbix-agent/etc/zabbix_agentd.conf.d/
Include=/home/monitor/zabbix-agent/etc/zabbix_agentd.conf.d/*.conf

测量检验命令 zabbix_get -s 22.224.9.228 10050 -k "system.cpu.load[all,avg1]"

            fastcgi_pass  127.0.0.1:9000;

cd /app/weblogic/software/zabbix_setup/httpd-2.2.23/srclib/apr-util
./configure --prefix=/app/weblogic/software/httpd-2.2.23/apr-util --with-apr=/app/weblogic/software/httpd-2.2.23/apr
make
make install

DBUser=zabbix

cd /app/weblogic/software/zabbix_setup/mhash-0.9.9.9
./configure --prefix=/app/weblogic/software/php-5.6.33/mhash
make
make install
cd /app/weblogic/software/zabbix_setup/libmcrypt-2.5.7
./configure --prefix=/app/weblogic/software/php-5.6.33/libmcrypt
make
make install

vim /opt/zabbix_agent/etc/zabbix_agentd.conf

create database zabbix default charset utf8;

sed -i "s/post_max_size = 8M/post_max_size = 16M/g" /opt/php/etc/php.ini

yum install -y net-snmp-devel libxml2-devel libcurl-devel libevent-devel php php-mysql

echo "/opt/mysql/lib" >> /etc/ld.so.conf

mysql_socket = '/tmp/mysql.sock'

            fastcgi_index  index.php;

sh /var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh running-slave

yum -y install gcc gcc-c++ make pcre-devel openssl openssl-devel

yum install gcc make gd-devel libjpeg-devel libpng-devel libxml2-devel bzip2-devel libcurl-devel  -y

sed -i "s/ServerActive=127.0.0.1/ServerActive=10.12.61.190/g" /opt/zabbix_agent/etc/zabbix_agentd.conf

make && make install

./configure --prefix=/opt/php --with-config-file-path=/opt/php/etc --with-bz2 --with-curl --enable-ftp --enable-sockets --disable-ipv6 --with-gd --with-jpeg-dir=/opt/php --with-png-dir=/opt/php --with-freetype-dir=/opt/php --enable-gd-native-ttf --with-iconv-dir=/opt/php  --enable-calendar --with-gettext --with-libxml-dir=/opt/php --with-zlib --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --with-mysql=mysqlnd --enable-dom --enable-xml --enable-fpm --with-libdir=lib64  --enable-bcmath --enable-mbstring

./configure --prefix=/opt/www/nginx --sbin-path=/usr/sbin/nginx --conf-path=/opt/www/nginx/conf/nginx.conf --error-log-path=/data/ic/nginx/error_log/error.log --http-log-path=/data/ic/nginx/access_log/access.log --pid-path=/var/run/nginx/nginx.pid  --lock-path=/var/lock/nginx.lock --user=nginx --group=nginx --with-http_ssl_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_realip_module --with-http_v2_module --with-http_sub_module --with-pcre

mysql_user = 'zabbix'

sed -i "s/Server=127.0.0.1/Server=10.12.61.190/g" /opt/zabbix_agent/etc/zabbix_agentd.conf

        listen      80;

mysql_pass = 'zabbix'

make install

cp /opt/php-5.6.30/php.ini-production  /opt/php/etc/php.ini

cp /opt/php/etc/php-fpm.conf.default /opt/php/etc/php-fpm.conf

server {

location / {

zabbix-agent安装

./configure --prefix=/opt/zabbix_agent --enable-agent

sed -i "s/# HostnameItem=system.hostname/HostnameItem=system.hostname/g" /opt/zabbix_agent/etc/zabbix_agentd.conf

            index  index.html index.htm index.php;

cp userparameter_percona_mysql.conf  /opt/zabbix_agent/etc/zabbix_agentd.conf.d/

password=zabbix

groupadd zabbix

vim /opt/www/nginx/conf/nginx.conf

vim /opt/zabbix/etc/zabbix_server.conf

            include        fastcgi_params;

cd /opt/zabbix-3.4.4

本文由澳门在线威尼斯官方发布于电脑操作,转载请注明出处:澳门在线威尼斯官方:4源码安装步骤

关键词:

上一篇:没有了

下一篇:没有了