zabbix5.2安装-linux

 

一.编译安装httpd
   1.删除旧版http
     
rpm -qa | grep httpd
rpm -e --nodeps `rpm -qa | grep httpd`
find / -name httpd --delete
find / -name httpd -help
find / -name httpd -exec rm -rf '{}' \;

2.安装httpd-2.4.38.tar.gz     http://httpd.apache.org/download

安装apr-1.6.2.tar.gz
tar zxvf apr-1.6.2.tar.gz
cd apr-1.6.2
./configure --prefix=/usr/local/apr
make
make install
在configure时报错:rm: cannot remove `libtoolT': No such file or directory
解决:将configure中的$RM "$cfgfile"这一行注释掉
yum install expat-devel
安装apr-util-1.6.0.tar.gz
tar zxvf apr-util-1.6.0.tar.gz
cd apr-util-1.6.0
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make
make install安装pcre-8.38.tar.gz
tar zxvf pcre-8.38.tar.gz
cd pcre-8.38
./configure --prefix=/usr/local/pcre
make
make install安装httpd-2.4.38.tar.gz
tar zxvf httpd-2.4.38.tar.gz
cd httpd-2.4.38
./configure --prefix=/usr/local/httpd --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre --with-ssl=/usr/ssl --enable-modules=all --enable-mods-shared=all --enable-rewrite --enable-ssl 
make
make install修改httpd配置文件vi /usr/local/httpd/conf/httpd.conf
User apache
Group apache
ServerName localhost:80/usr/local/httpd/bin/httpd -k stop
/usr/local/httpd/bin/httpd -k start

   二、centos6.3编译安装php-7.2.16.tar.gz

 
rpm -qa | grep phprpm -e --nodeps `rpm -qa | grep php`rpm -qa | grep php
find / -name php -exec rm -rf '{}' \;
find / -name php 编译安装php-7.2.16.tar.gztar tar php-7.2.16.tar.gz zxvftar php-7.2.16.tar.gz  zxvftar zxvf  php-7.2.16.tar.gz  cd php-7.2.16/
./configure --prefix=/usr/local/php7 --with-apxs2=/usr/local/httpd/bin/apxs --with-zlib --enable-xml --with-curl --enable-fpm --with-openssl --enable-zip --enable-soap --enable-bcmath --enable-mbstring --enable-socketsmakemake testopenssl version -amake testmake installmv /usr/local/php7/etc/php-fpm.conf.default /usr/local/php7/etc/php-fpm.conf
cp /usr/local/php7/etc/php-fpm.d/www.conf.default /usr/local/php7/etc/php-fpm.d/www.conf
cp /app/php-7.2.16/php.ini-production  /usr/local/php7/etc/php.ini
cp /app/php-7.2.16/sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
chmod u+x /etc/init.d/php-fpm/etc/init.d/php-fpm start编译gd库
cd /app/php-7.2.16/ext/gd
/usr/local/php7/bin/phpize #这个路径是php的安装路径
./configure --with-php-config=/usr/local/php7/bin/php-config --with-png-dir --with-freetype-dir --with-jpeg-dir --with-zlib-dir --with-gd
make
make test
make installcd /usr/local/php7/lib/php/extensions/no-debug-zts-20170718
如果看到gb.so 证明安装成功把编译好的扩展添加到php.ini文件中
vi /usr/local/php7/etc/php.ini
extension_dir="/usr/local/php7/lib/php/extensions/no-debug-zts-20170718"
extension=gd.so

 三安装mysql

 useradd -r -g mysql mysql342  mkdir -pv /data/mysql/{data,log}343  chown mysql:mysql -R /data/344  cd /home345  tar zxvf boost_1_59_0.tar.gz346  ./bootstrap.sh --with-libraries=system,filesystem,log,thread --with-toolset=gcc347  cd boost_1_59_0/348  ./bootstrap.sh --with-libraries=system,filesystem,log,thread --with-toolset=gcc349  ./b2350  ./b2 install --prefix=/usr/local/boost #boost安装路径 /usr/local/boos351  df -h352  systemctl list-units --type=service353  systemctl status sshd354  history355  /usr/local/httpd/bin/httpd -k start356  /etc/init.d/php-fpm restart357  /etc/init.d/php-fpm start358  systemcctl stop firewalld359  systemctl stop firewalld360  service mysqld start361  cd /data362  ll363  cd /usr/local/364  ll365  chown mysql:mysql -R mysql366  service mysqld start367  ll368  cd /data369  ll370  cd mysql/371  ll372  cd log/373  ll374  touch mysqld.log375  ll376  chown mysql:mysql -R *377  service mysqld start378  mysql -version379   ln -s /usr/local/mysql/bin/mysql /usr/bin/380  mysql --version
tar zxvf zabbix5.tar.gz 398  yum install unixODBC-devel libssh2-devel libevent-devel libxml2-devel net-snmp-devel libcurl-devel pcre-devel399  cd zabbix5/400  ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2 --enable-java --with-unixodbc  --with-ssh2401  mysql -u root -p -S /usr/local/mysql/mysql.sock402  cd /home403  tar zxvf zabbix-5.2.6.tar.gz 404  rm -rf zabbix5405  cd zabbix-5.2.6/database/mysql/406  ll407  mysql -uzabbix -p123456 zabbix < schema.sql408  mysql -u root -p -S /usr/local/mysql/mysql.sock409  mysql -uzabbix -p123456 -S /usr/local/mysql/mysql.sock < schema.sql410  mysql -uzabbix -p123456 -S /usr/local/mysql/mysql.sock  zabbix < schema.sql411  mysql -uzabbix -p123456 -S /usr/local/mysql/mysql.sock  zabbix < images.sql 412  mysql -uzabbix -p123456 -S /usr/local/mysql/mysql.sock  zabbix < data.sql 413  yum list414  yum install java*415  mount /dev/cdrom /media/ios/416  yum install java*417  cd /home/zabbix-5.2.6/418  l419  ll420  ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2 --enable-java --with-unixodbc  --with-ssh2421  make422  ll423  yum -y install libssh2-devel424  yum -y install libssh2-devel*425  yum -y install libssh2*426  ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2 --enable-java --with-unixodbc  --with-ssh2427  cd /home428  rpm -ivh libssh2-1.8.0-4.el7.src.rpm 429  useradd mockbuild430  rpm -ivh libssh2-1.8.0-4.el7.src.rpm 431  cd /home/zabbix-5.2.6/432  ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2 --enable-java --with-unixodbc  --with-ssh2433  find cd /usr/local/include/434  cd /usr/local/include435  ll436  yum install libssh2-devel437  cd /media/ios/Packages/438  ll439  ll|grep libssh2*440  rpm -ivh libssh2*441  ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2 --enable-java --with-unixodbc  --with-ssh2442  cd /home/zabbix-5.2.6/443  ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2 --enable-java --with-unixodbc  --with-ssh2444  yum install unixODBC-devel libssh2-devel libevent-devel libxml2-devel net-snmp-devel libcurl-devel pcre-devel445  find / -name ssh2.so446  cd /home447  tar zxvf libssh2-1.3.0.tar.gz 448  cd libssh2-1.3.0/449  ./configure450  make451  sshd -V452  cd /home/zabbix-5.2.6/453  ldconfig454  ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2 --enable-java --with-unixodbc  --with-ssh2455  reboot456  cd /home/zabbix-5.2.6/457  ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2 --enable-java --with-unixodbc  --with-ssh2458  cat /etc/ssh/sshd_config 459  cat /etc/ssh/sshd_config  | grep Protocol460  ssh -2 root@192.168.63.141461  ssh -1 root@192.168.63.141462  ssh -2 oracle@192.168.63.141463  cd ~/.ssh/464  ll465  ssh -V466  yum -y install libssh2-devel467  mount /dev/cdrom /media/ios/468  yum -y install libssh2-devel469  yum -y install libssh2-devel*470  yum -y install libssh2*471  cd /usr/local472  ll473  cd lib474  ll475  cd ..476  find / -name libssh2.so.1477  cd /home/zabbix-5.2.6/478  ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2 --enable-java --with-unixodbc  --with-ssh2=/usr/lib64/libssh2.so.1479  cd /media/ios/Packages/480  ll|grep libssh2*481  rpm -qa libssh2*482  rpm -qa libssh2-1.4.3-12.el7.x86_64483  rpm -ivh libssh2-1.4.3-12.el7.x86_64.rpm484  rpm -q libssh2-1.4.3-12.el7.x86_64.rpm485  rpm -qa libssh2-1.4.3-12.el7.x86_64.rpm486  rpm -ql libssh2-1.4.3-12.el7.x86_64.rpm487  rpm -ivh libssh2-1.4.3-12.el7.x86_64.rpm 488  rpm -qa |grep -i libssh2*489  rpm -qa |grep -i libssh*490  rpm -qa |grep -i libs*491  rpm -qa 492  rpm -qa |grep lib493  rpm -qa |grep libs494  rpm -qa |grep libss495  rpm -qa |grep libssh2-1.4.3-12.el7.x86_64496  rpm -ql libssh2-1.4.3-12.el7.x86_64497  ldconfig -a498  ldconfig a499  ldconfig500  cd /home/zabbix-5.2.6/501  ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2 --enable-java --with-unixodbc  --with-ssh2=/usr/lib64/502  ./co503  rpm -ql libssh2-1.4.3-12.el7.x86_64504  ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2 --enable-java --with-unixodbc  --with-ssh2=/usr/lib64/libssh2.so.1.0.1505  rpm -ql libssh2-1.4.3-12.el7.x86_64506  echo $LD_LIBRARY_PATH507  ldd508  ldd D509  cd /etc/ld.so.conf.d/510  touch ssh2.conf511  vi ssh2.conf 512  ldconfig513  cd /home/zabbix-5.2.6/514  ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2 --enable-java --with-unixodbc  --with-ssh2515  ldconfig -v516  ldconfig -v|grep libssh517  cd /usr/lib518  ll519  rpm -ql libssh2-1.4.3-12.el7.x86_64520  cd /etc/ld.so.conf.d/521  cd ..522  vi ld.so.conf523  ldconfig 524  cd /home/zabbix-5.2.6/525  ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2 --enable-java --with-unixodbc  --with-ssh2526  ldconfig -v|grep libssh527  cd /usr/lib64528  ll|grep libssh2529  cp libssh2.so.1.0.1 /usr/lib530  ldconfig -v|grep libssh531  ldconfig 532  ldconfig -v|grep libssh533  mkdir -p /usr/local/ssl/lib534  cp libssh2.so.1.0.1 /usr/local/ssl/lib/535  ldconfig -v|grep libssh536  cd /home/zabbix-5.2.6/537  ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2 --enable-java --with-unixodbc  --with-ssh2538  vi /etc/ld.so.conf539  ldconfig -v540  cd /usr/local/ssl/lib/541  ll542  ldconfig543  reboot544  cd /home/zabbix-5.2.6/545  ldconfig -v546  ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2 --enable-java --with-unixodbc  --with-ssh2547  ps -ef | grep ssh548  ps -ef | grep sshd549  rpm -ql libssh2-1.4.3-12.el7.x86_64550  yum install -y libssh2-1.4.3-12.el7.x86_64*551  rpm -qa |grep ssh552  yum install -y libssh2-devel553  cd /media/ios554  mount /dev/cdrom /media/ios/555  yum install -y libssh2-devel556  cd /media/ios/557  cd Packages/558  ll559  ll|grep libssh2-devel560  cd /home561  rpm -ivh libssh2-devel-1.9.0-5.el8.x86_64.rpm 562  rpm -ivh libssh2-devel-1.9.0-5.el8.x86_64.rpm  --nodeps --force563  cd /home/zabbix-5.2.6/564  ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2 --enable-java --with-unixodbc  --with-ssh2565  yum install -y libevent-devel566  cd /media/ios/Packages/567  ll|grep libevent-devel*568  ll|grep libevent*569  cd /home570  rpm -ivh libevent-devel-2.1.8-5.el8.x86_64.rpm 571  yum install -y libevent-devel-2.1.8-5.el8.x86_64.rpm 572  rpm -ivh --nodeps --force  libevent-devel-2.1.8-5.el8.x86_64.rpm 573  cd /home/zabbix-5.2.6/574  ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2 --enable-java --with-unixodbc  --with-ssh2575  yum install libevent-devel -y576  cd /media/ios/Packages/577  rpm -ivh --nodeps --force  libevent-devel-2.1.8-5.el8.x86_64.rpm 578  cd /home579  rpm -ivh --nodeps --force  libevent-devel-2.1.8-5.el8.x86_64.rpm 580  rpm -ivh   libevent-devel-2.1.8-5.el8.x86_64.rpm 581  rpm -ivh   libevent-2.0.21-4.el7.src.rpm 582  rpm -ivh   libevent-devel-2.1.8-5.el8.x86_64.rpm 583  curl http://site.baidu.com584  ping site.baidu.com585  wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo586  cd /etc/yum.repos.d/587  ll588  mv te.repo te.repo.bak589  yum clean all590  yum makecache591  cd /home592  rpm -ivh   libevent2-2.0.21-1.el7.centos.x86_64.rpm 593  rpm -uvh   libevent2-2.0.21-1.el7.centos.x86_64.rpm 594  rpm -Uvh   libevent2-2.0.21-1.el7.centos.x86_64.rpm 595  yum install libevent-devel -y596  cd /home/zabbix-5.2.6/597  ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2 --enable-java --with-unixodbc  --with-ssh2598  yum install libevent-devel -y599  rpm -e libevent-devel-2.0.21-4.el7.x86_64600  rpm -e libevent-devel*601  rpm -qa|grep libevent-devel*602  rpm -e libevent-devel-2.1.8-5.el8.x86_64603  rpm -qa|grep libevent-devel*604  yum install libevent-devel -y605  yum install libssh2-devel-1.9.0-5.el8.x86_64 -y606  rpm -e libssh2-devel-1.9.0-5.el8.x86_64607  yum install libssh2-devel-1.9.0-5.el8.x86_64 -y608  yum install libssh2-devel -y609  yum install mod_fcgid -y610  yum install mod_ssl -y611  yum install libevent-devel -y612  ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2 --enable-java --with-unixodbc  --with-ssh2613  make614  make install615  service mysql strt616  service mysql start617  service mysql status618  /etc/init.d/php-fpm start619  /usr/local/httpd/bin/httpd -k start620  cd /usr/local/zabbix/etc621  vi zabbix_server.conf622  /usr/local/zabbix/sbin/zabbix_server 623  cd /usr/local/624  chown -R mysql:mysql mysql/625  vi /etc/ld.so.conf626  ldconfig 627  cd /usr/local/httpd/htdocs628  mkdir zabbix629  cd /app/zabbix-4.0.5/frontends630  cd /home/zabbix-5.2.6/frontends631  vi /usr/local/php7/etc/php.ini632  find / -name -d frontends633  cd /home/zabbix-5.2.6/ui/634  cd ..635  cp -R ui/ /usr/local/httpd/htdocs/zabbix/636  cd /usr/local/httpd/htdocs/zabbix/637  cd ..638  chmod 777 -R zabbix/639  /usr/local/httpd/bin/httpd -k stop640  /usr/local/httpd/bin/httpd -k start641  /etc/init.d/php-fpm restart642  systemctl stop firewalld643  cd /home/php-7.2.16/ext644  cd mysqli645  /usr/local/php7/bin/phpize646  ./configure --prefix=/usr/local/mysqli --with-php-config=/usr/local/php7/bin/php-config --with-mysqli=/usr/local/mysql/bin/mysql_config647  nake648  make649  ./configure --prefix=/usr/local/mysqli --with-php-config=/usr/local/php7/bin/php-config --with-mysqli=/usr/local/mysql/bin/mysql_config650  make651  ./configure --prefix=/usr/local/mysqli --with-php-config=/usr/local/php7/bin/php-config --with-mysqli=/usr/local/mysql/bin/mysql_config652  make653  make test654  make install655  vi /usr/local/php7/etc/php.in656  /usr/local/httpd/bin/httpd -k stop657  /usr/local/httpd/bin/httpd -k start658  /etc/init.d/php-fpm restart659  cd /usr/local/zabbix/sbin660  ./zabbix_server 661  useradd zabbix662  ./zabbix_server 663  netstat -tnulp664  netstat -tnulp|grep zabbix_665  cd /home/php-7.2.16/ext/gettext/666  /usr/local/php7/bin/phpize667  ./configure -with-php-config=/usr/local/hp-5.5.7/bin/php-config668  ./configure  --with-php-config=/usr/local/php7/bin/php-config 669  make670  make install671  make test672  vi /usr/local/php/etc/php.ini673  vi /usr/local/php7/etc/php.in674  vi /usr/local/php/etc/php.ini675  vi /usr/local/php7/etc/php.ini 676  vi /usr/local/php7/etc/php.in677  vi /usr/local/php7/etc/php.ini678  /etc/init.d/php-fpm restart679  /usr/local/httpd/bin/httpd -k stop680  /usr/local/httpd/bin/httpd -k start681  cd /usr/local/zabbix/sbin682  ./zabbix_server 683  netstat -tnulp684  systemctl status zabbix-server.service685  ps -C zabbix_server686  ps -ef|grep  zabbix_server687  netstat -tnulp|grep 43812688  cat /var/log/zabbix/zabbix_server.log689  setenforce 0 690  cat /usr/local/php7/etc/php.in691  cat /usr/local/php7/etc/php.ini 692  cat /usr/local/php7/etc/php.ini |grep allow_url_fopen693  cat /usr/local/php7/etc/php.ini |grep php_openssl.dll694  /usr/local/php/bin/phpize695  /usr/local/php7/bin/phpize696  /usr/local/php7/bin/phpize 697  /usr/local/php7/bin/phpize698  cd /home/php-7.2.16/ext/699  /usr/local/php7/bin/phpize700  cd openssl/701  /usr/local/php7/bin/phpize702  ll703  mv config0.m4 config.m4704  /usr/local/php7/bin/phpize705  ./configure –with-openssl –with-php-config=/usr/local/php7/bin/php-config706  ./configure –with-openssl-with-php-config=/usr/local/php7/bin/php-config707  ./configure –with-openssl -with-php-config=/usr/local/php7/bin/php-config708  ./configure –with-openssl –with-php-config=/usr/local/php7/bin/php-config709  ./configure -with-openssl -with-php-config=/usr/local/php7/bin/php-config710  nake711  make712  make install713  vi /usr/local/php7/etc/php.ini 714  /usr/local/httpd/bin/httpd -k stop715  /usr/local/httpd/bin/httpd -k start716  /etc/init.d/php-fpm restart717  vi /usr/local/php7/etc/php.ini 718  netstat -tnulp|grep zabbix_719  ps -ef|grep  zabbix_server720  kill -9 43812721  /usr/local/zabbix/sbin/zabbix_server 722  ps -ef|grep  zabbix_server723  netstat -tnulp724  history725  mysql -uzabbix -p123456 -S /usr/local/mysql/mysql.sock726  mysql -uzabbix -p123456 -h localhost -S /usr/local/mysql/mysql.sock727  ps -ef|grep  zabbix_server728  kill -9 51064729  /usr/local/zabbix/sbin/zabbix_server 730  ps -ef|grep  zabbix_server731  kill -9 51137732  /usr/local/zabbix/sbin/zabbix_server 733  netstat -tnulp|grep 3306734  ps -ef|grep  zabbix_server735  kill -9 51218736  /usr/local/zabbix/sbin/zabbix_server 737  netstat -tnulp|grep 10051738  ps -ef|grep  zabbix_server739  kill -9 51249740  ps -ef|grep  zabbix_server741  /usr/local/zabbix/sbin/zabbix_server start742  /usr/local/zabbix/sbin/zabbix_server743  ps -ef|grep  zabbix_server744  netstat -tnulp|grep 52003745  kill -8 52003746  /usr/local/zabbix/sbin/zabbix_server -c /usr/local/zabbix/etc/zabbix_server.conf747  ps -ef|grep  zabbix_server 748  netstat -tnulp|grep 52003749  ps -ef|grep  zabbix_server750  kill -9 52140751  /usr/local/zabbix/sbin/zabbix_server -c /usr/local/zabbix/etc/zabbix_server.conf752  ps -ef|grep  zabbix_server753  kill -9 53650754  /usr/local/zabbix/sbin/zabbix_server -c /usr/local/zabbix/etc/zabbix_server.conf755  cat /etc/hosts756  ps -ef|grep  zabbix_server757  kill -9 53676758  ps -ef|grep  zabbix_server759  kill -9 53676760  kill -9 53731761  ps -ef|grep  zabbix_server762  killall zabbix763  kill -9 53766764  killall zabbix765  ps -ef|grep  zabbix_server766  netstat -tnulp767  netstat -tnulp|grep zabbix768  kill -9 53732769  ps -ef|grep  zabbix_server770  netstat -tnulp|grep zabbix771  kill -9 53733772  netstat -tnulp|grep zabbix773  kill -9 53734774  netstat -tnulp|grep zabbix775  kill -9 53735776  kill -9 53734777  netstat -tnulp|grep zabbix778  kill -9 5373*779  killall zabbix_server780  netstat -tnulp|grep zabbix781  kill -9 53736782  kill -9 53737783  kill -9 53738784  kill -9 53739785  kill -9 53740786  kill -9 53741787  kill -9 53742788  kill -9 53743789  kill -9 53744790  netstat -tnulp|grep zabbix791  kill -9 53749792  netstat -tnulp|grep zabbix793  kill -9 53750794  kill -9 53751795  kill -9 53752796  kill -9 53753797  kill -9 53754798  kill -9 53755799  kill -9 53756800  kill -9 53757801  netstat -tnulp|grep zabbix802  kill -9 53767803  kill -9 53768804  netstat -tnulp|grep zab805  ps -ef|grep  zabbix_server806  kill -9 53770807  ps -ef|grep  zabbix_server808  netstat -tnulp|grep zab809  /usr/local/zabbix/sbin/zabbix_server 810  netstat -tnulp|grep zab811  ps -ef|grep  zabbix_server812  /usr/local/zabbix/sbin/zabbix_server  restart813  ps -ef|grep  zabbix_server |awk -F ' ' {print $2}814  ps -ef|grep  zabbix_server |awk -F ' ' {'print $2'}815  kill -9 `s -ef|grep  zabbix_server |awk -F ' ' {'print $2'}`816  kill -9 `ps -ef|grep  zabbix_server |awk -F ' ' {'print $2'}`817  ps -ef|grep  zabbix_server818  /usr/local/zabbix/sbin/zabbix_server  819  kill -9 `ps -ef|grep  zabbix_server |awk -F ' ' {'print $2'}`820  ps -ef|grep  zabbix_server821  /usr/local/zabbix/sbin/zabbix_server  822  ps -ef|grep  zabbix_server823  kill -9 `ps -ef|grep  zabbix_server |awk -F ' ' {'print $2'}`824  ps -ef|grep  zabbix_server825  /usr/local/zabbix/sbin/zabbix_server  826  ps -ef|grep  zabbix_server827  kill -9 `ps -ef|grep  zabbix_server |awk -F ' ' {'print $2'}`828  ps -ef|grep  zabbix_server829  /usr/local/zabbix/sbin/zabbix_server  830  kill -9 `ps -ef|grep  zabbix_server |awk -F ' ' {'print $2'}`831  /usr/local/zabbix/sbin/zabbix_server  832  kill -9 `ps -ef|grep  zabbix_server |awk -F ' ' {'print $2'}`833  /usr/local/zabbix/sbin/zabbix_server  834  kill -9 `ps -ef|grep  zabbix_server |awk -F ' ' {'print $2'}`835  /usr/local/zabbix/sbin/zabbix_server  836  ps aux |grep zabbix837  vi /etc/selinux/config838  getenforce 839  cd "/usr/local/php7/lib/php/extensions/no-debug-zts-20170718"840  ll841  tail -f /tmp/zabbix_server.log 842  getenforce 843  tail -f /tmp/zabbix_server.log 844  mysql -uzabbix -p123456 -h localhost845  mysql -uzabbix -p123456 -h localhost -S /usr/local/mysql/mysql.sock846  tail -f /tmp/zabbix_server.log 847  mysql -uzabbix -p123456 -h localhost -S /usr/local/mysql/mysql.sock848  mysqladmin -uzabbix -p123456 password zabbix@123 849  mysqladmin -uzabbix -p123456 password zabbix@123  -S /usr/local/mysql/mysql.sock850  mysql -uroot -p123456 -h localhost -S /usr/local/mysql/mysql.sock851  mysql -uroot -p123456 -h 192.168.63.141 -S /usr/local/mysql/mysql.sock852  mysql -uroot -p123456 -h localhost -S /usr/local/mysql/mysql.sock853  tail -f /tmp/zabbix_server.log 854  mysql -uroot -p123456 -h localhost -S /usr/local/mysql/mysql.sock855  tail -f /tmp/zabbix_server.log 856  mysql -uroot -p123456 -h localhost -S /usr/local/mysql/mysql.sock857  tail -f /tmp/zabbix_server.log 858  mysql -uzabbix -pzabbix@123456 -h localhost -S /usr/local/mysql/mysql.sock859  mysql -uzabbix -pzabbix -h localhost -S /usr/local/mysql/mysql.sock860  mysql -uzabbix -pzabbix@123456 -h 192.168.63.141 -S /usr/local/mysql/mysql.sock861  tail -f /tmp/zabbix_server.log 862  mysql -uroot -p123456 -h localhost -S /usr/local/mysql/mysql.sock863  cd /home/zabbix-5.2.6/database/mysql/864  ll865  mysql -uzabbix -pzabbix zabbix < schema.sql866  mysql -uzabbix -pzabbix zabbix -h192.168.63.141 -p3306 < schema.sql867  mysql -uzabbix -pzabbix  -h192.168.63.141 -p3306 zabbix < schema.sql868  mysql -uroot -pzabbi@123456  -h192.168.63.141 -p3306 zabbix < schema.sql869  mysql -uroot -pzabbix@123456  -h192.168.63.141 -p3306 zabbix < schema.sql870  mysql -uroot -pzabbix@123456  -h192.168.63.141 zabbix < schema.sql871  mysql -uroot -p123456  -h192.168.63.141 zabbix < schema.sql872  mysql -uroot -p123456  -h192.168.63.141 zabbix < images.sql873  mysql -uroot -p123456  -h192.168.63.141 zabbix < data.sql 874  /usr/local/httpd/bin/httpd -k stop875  /usr/local/httpd/bin/httpd -k start876  /etc/init.d/php-fpm restart877  find / -namd zabbix.conf.php878  find / -name zabbix.conf.php879  netstat -tnulp880  netstat -tnulp |grep 10050881  netstat -tnulp |grep 1005882  tail -f /tmp/zabbix_server.883  tail -f /tmp/zabbix_server.log 884  reboot885  tail -f /tmp/zabbix_server.log 886  systemctl disable firewalld887  systemctl stop firewalld888  netstat -tnulp889  tail -f /tmp/zabbix_server.890  tail -f /tmp/zabbix_server.log 891  /etc/init.d/php-fpm restart892  /usr/local/httpd/bin/httpd -k start893  /etc/init.d/php-fpm start894  service mysql start895  getenforce 896  /usr/local/zabbix/sbin/zabbix_server 897  cd /home/zabbix-5.2.6/898  ll899  ./configure --prefix=/usr/local/zabbix-agent --enable-agent900  make901  make install902   /usr/local/zabbix-agent/sbin/zabbix_agentd903  netstat -tnulp904  service mysql start905  /usr/local/httpd/bin/httpd -k start906  make install907  netstat -tnulp908  cat /tmp/zabbix_server.pid 909  kill -9 8884910  netstat -tnulp911  ps -ef |grep zabbix912  history913  ps -ef |grep zabbix914  ps -ef |grep zabbix |awk -F ' ' {'print $1'}915  ps -ef |grep zabbix |awk -F ' ' {'print $2'}916  kill -9 `ps -ef |grep zabbix |awk -F ' ' {'print $2'}`917  ps -ef |grep zabbix |awk -F ' ' {'print $2'}918  ps -ef |grep zabbix919  /usr/local/zabbix/sbin/zabbix_server 920   /usr/local/zabbix-agent/sbin/zabbix_agentd921  ps -ef |grep zabbix922  netstat -tnulp923  cd /app924  tar zxvf ansible-2.3.0.0.tar.gz 925  /app/ansible-2.3.0.0/bin/ansible version926  /app/ansible-2.3.0.0/bin/ansible --help927  /app/ansible-2.3.0.0/bin/ansible -help928  /app/ansible-2.3.0.0/bin/ansible929  /app/ansible-2.3.0.0/bin/ansible --version930  cd /app/ansible-2.3.0.0/bin/931  ll932  cd ..933  ll934  python setup.py build935  python setup.py install936  cd /app937  tar zxvf pycrypto-2.6.1.tar.gz 938  cd pycrypto-2.6.1/939  ll940  python setup.py build941  python setup.py install942  cd /app/ansible-2.3.0.0/943  python setup.py install944  cd /app945  tar zxvf paramiko-2.7.2.tar.gz 946  cd paramiko-2.7.2/947  ll948  python setup.py build949  pip install --upgrade setuptools950  curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py951  ll952  cd ..953  python get-pip.py 954  curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py955  ll956  python2 get-pip.py 957  tar zxvf pip-21.1.1.tar.gz 958  cd pip-21.1.1/959  ll960  cd /app961  tar zxvf Python-3.9.5.tar.xz 962  tar jxvf Python-3.9.5.tar.xz 963  tar xzvf Python-3.9.5.tar.xz 964  tar xz -d  Python-3.9.5.tar.xz 965  tar xz  Python-3.9.5.tar.xz 966  tar xz -d Python-3.9.5.tar.xz 967  yum install xz968  tar xz -dk Python-3.9.5.tar.xz 969  tar -dk Python-3.9.5.tar.xz 970  tar -d xvf Python-3.9.5.tar.xz 971  tar xzvf Python-3.9.5.tgz 972  cd Python-3.9.5/973  ll974  ./configure --prefix=/usr/local/Python-3.9.5 --with-ssl --enable-optimizations975  make976  ./configure --prefix=/usr/local/Python-3.9.5 --with-ssl 977  make978  yum install -y gcc-c++979  gcc -v980  yum install -y gcc981  ./configure --prefix=/usr/local/Python-3.9.5 --with-ssl --enable-optimizations982  make983  wget https://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.xz984  cd d/app985  cd /app986  wget https://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.xz987  tar zxvf gcc-9.2.0.tar.xz 988  tar xz -d gcc-9.2.0.tar.xz 989  tar xvf  gcc-9.2.0.tar.xz 990  cd gcc-9.2.0/991  ./contrib/download_prerequisites992  wget ftp://gcc.gnu.org/pub/gcc/infrastructure/gmp-6.1.0.tar.bz2993  cd /app/gcc-9.2.0/994  wget ftp://gcc.gnu.org/pub/gcc/infrastructure/mpfr-3.1.4.tar.bz2995  wget  ftp://gcc.gnu.org/pub/gcc/infrastructure/mpc-1.0.3.tar.gz996  cd /app/gcc-9.2.0/997  wget ftp://gcc.gnu.org/pub/gcc/infrastructure/isl-0.16.1.tar.bz2998  ll

 

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/535385.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

安装python3.9

GCC版本 这个版本的编译器不适合编译Python3.9&#xff0c;在编译时会产生如下的错误。我们用这个老版本编译器编译一个新的GCC 9.2版。 Could not import runpy module Traceback (most recent call last):File "Python-3.8.1/Lib/runpy.py", line 15, in <mod…

备份程序包脚本

#! /bin/bash if [ $# ! 1 ];thenecho "USAGE: sh $0 /路径/包名"exit 1 elsePackage_Path_Full$1Dir_Path${Package_Path_Full%/*}Package_Name${Package_Path_Full##*/}if [ -e $Package_Path_Full ];thenif [ -d $Dir_Path/bak ];thenif [ -d $Dir_Path/bak/date …

Oracle数据库游标数总结

各用户的打开游标总数 SELECT A.USER_NAME, COUNT(*) FROM V$OPEN_CURSOR A GROUP BY A.USER_NAME; 查找数据库各用户各个终端的缓存游标数 SELECT AA.USERNAME, AA.MACHINE, SUM(AA.VALUE) FROM ( SELECT A.VALUE, S.MACHINE, S.USERNAME FROM V$SESSTAT A, V$STATNAME B, V…

获取zabbix监控数据

#!/usr/bin/python3 # Date: 2020/8/20 14:16 # Author: zhangcheng # email: 3359957053qq.com # -*- coding: utf-8 -*-import pymysql import time,datetime import math#zabbix数据库信息&#xff1a; zdbhost "192.168.63.141" zdbuser "zabbix" zd…

logstash安装

下载最新版logstash https://www.elastic.co/cn/downloads/logstash 解压缩 tar zxvf logstash-7.12.1-linux-x86_64.tar.gz 下载jdk1.8 tar zxvf jdk-8u291-linux-x64.tar.gz 编辑启动文件logstash、logstash.lib.sh、logstash-plugin 在首行添加 export JAVA_C…

[logstash-input-file]插件使用详解

这个插件可以从指定的目录或者文件读取内容&#xff0c;输入到管道处理&#xff0c;也算是logstash的核心插件了&#xff0c;大多数的使用场景都会用到这个插件&#xff0c;因此这里详细讲述下各个参数的含义与使用 1 path 是必须的选项&#xff0c;每一个file配置&#xff0c…

[logstash-input-log4j]插件使用

Log4j插件可以通过log4j.jar获取Java日志&#xff0c;搭配Log4j的SocketAppender和SocketHubAppender使用&#xff0c;常用于简单的集群日志汇总。 最小化的配置 input {log4j {host>"localhost"port>4560} } output {stdout {} } log4j插件配置host以及port就…

logstash-input-redis插件使用详解

input {#redis {#host> "10.246.187.12"#redis地址#host> "10.246.152.116"#redis地址#port > "6379" #redis端口号#password > "123qwe" #如果有安全认证&#xff0c;此项为密码#key > "logstash:redis"#ty…

logstash-input-redis源码解析

首先是程序的自定义&#xff0c;这里设置了redis插件需要的参数&#xff0c;默认值&#xff0c;以及校验等。 然后注册Redis实例需要的信息&#xff0c;比如key的名字或者url等&#xff0c;可以看到默认的data_type是list模式。 程序运行的主要入口&#xff0c;根据不同的dat…

logstash-filter模块

Fillters 在Logstash处理链中担任中间处理组件。他们经常被组合起来实现一些特定的行为来&#xff0c;处理匹配特定规则的事件流。常见的filters如下&#xff1a; grok&#xff1a;解析无规则的文字并转化为有结构的格式。Grok 是目前最好的方式来将无结构的数据转换为有结构可…

weblogic启动慢

1.最差的解决办法 执行命令 mv /dev/random /dev/random.ORIG ln /dev/urandom /dev/random   将/dev/random 指向/dev/urandom 2. 较好的解决办法&#xff1a; 在weblogic启动脚本里setDomainEnv.sh: 加入以下内容 JAVA_OPTIONS"${JAVA_OPTIONS}" -Dja…

SSL双向认证和SSL单向认证的区别

双向认证 SSL 协议要求服务器和用户双方都有证书。单向认证 SSL 协议不需要客户拥有CA证书&#xff0c;具体的过程相对于上面的步骤&#xff0c;只需将服务器端验证客户证书的过程去掉&#xff0c;以及在协商对称密码方案&#xff0c;对称通话密钥时&#xff0c;服务器发送给客…

双向认证SSL原理

文中首先解释了加密解密的一些基础知识和概念&#xff0c;然后通过一个加密通信过程的例子说明了加密算法的作用&#xff0c;以及数字证书的出现所起的作用。接着对数字证书做一个详细的解释&#xff0c;并讨论一下windows中数字证书的管理&#xff0c;最后演示使用makecert生成…

Xtrabackup备份与恢复

一、Xtrabackup介绍 Percona-xtrabackup是 Percona公司开发的一个用于MySQL数据库物理热备的备份工具&#xff0c;支持MySQL、Percona server和MariaDB&#xff0c;开源免费&#xff0c;是目前较为受欢迎的主流备份工具。xtrabackup只能备份innoDB和xtraDB两种数据引擎的表&…

实时备份工具之inotify+rsync

1.inotify简介 inotify 是一个从 2.6.13 内核开始&#xff0c;对 Linux 文件系统进行高效率、细粒度、异步地监控机制&#xff0c; 用于通知用户空间程序的文件系统变化。可利用它对用户空间进行安全、性能、以及其他方面的监控。Inotify 反应灵敏&#xff0c;用法非常简单&…

nginx proxy_cache缓存详解

目录 1. 关于缓冲区指令 1.1 proxy_buffer_size1.2 proxy_buffering1.3 proxy_buffers1.4 proxy_busy_buffers_size1.5 proxy_max_temp_file_size1.6 proxy_temp_file_write_size1.7 缓冲区配置实例2. 常用配置项 2.1 proxy_cache_path2.2 proxy_temp_path2.3 proxy_cache2.4 …

mysql主从延迟

在实际的生产环境中&#xff0c;由单台MySQL作为独立的数据库是完全不能满足实际需求的&#xff0c;无论是在安全性&#xff0c;高可用性以及高并发等各个方面 因此&#xff0c;一般来说都是通过集群主从复制&#xff08;Master-Slave&#xff09;的方式来同步数据&#xff0c…

16张图带你吃透高性能 Redis 集群

现如今 Redis 变得越来越流行&#xff0c;几乎在很多项目中都要被用到&#xff0c;不知道你在使用 Redis 时&#xff0c;有没有思考过&#xff0c;Redis 到底是如何稳定、高性能地提供服务的&#xff1f; 你也可以尝试回答一下以下这些问题&#xff1a; 我使用 Redis 的场景很…

Redis与MySQL双写一致性如何保证

谈谈一致性 一致性就是数据保持一致&#xff0c;在分布式系统中&#xff0c;可以理解为多个节点中数据的值是一致的。 强一致性&#xff1a;这种一致性级别是最符合用户直觉的&#xff0c;它要求系统写入什么&#xff0c;读出来的也会是什么&#xff0c;用户体验好&#xff0c;…

weblogic忘记console密码

进入 cd /sotware/oracle_ldap/Middleware/user_projects/domains/base_domain/security/ 目录 执行 java -classpath /sotware/oracle_ldap/Middleware/wlserver_10.3/server/lib/weblogic.jar weblogic.security.utils.AdminAccount weblogic(账号) weblogic123(密码) . …