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 php
 rpm -e --nodeps `rpm -qa | grep php`
 rpm -qa | grep php
find / -name php -exec rm -rf '{}' \;
find / -name php 

编译安装php-7.2.16.tar.gz
 tar tar php-7.2.16.tar.gz zxvf
 tar php-7.2.16.tar.gz  zxvf
 tar 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-sockets
  make
  make test
  openssl version -a
  make test
 make install





mv /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 install

cd /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 mysql
  342  mkdir -pv /data/mysql/{data,log}
  343  chown mysql:mysql -R /data/
  344  cd /home
  345  tar zxvf boost_1_59_0.tar.gz
  346  ./bootstrap.sh --with-libraries=system,filesystem,log,thread --with-toolset=gcc
  347  cd boost_1_59_0/
  348  ./bootstrap.sh --with-libraries=system,filesystem,log,thread --with-toolset=gcc
  349  ./b2
  350  ./b2 install --prefix=/usr/local/boost #boost安装路径 /usr/local/boos
  351  df -h
  352  systemctl list-units --type=service
  353  systemctl status sshd
  354  history
  355  /usr/local/httpd/bin/httpd -k start
  356  /etc/init.d/php-fpm restart
  357  /etc/init.d/php-fpm start
  358  systemcctl stop firewalld
  359  systemctl stop firewalld
  360  service mysqld start
  361  cd /data
  362  ll
  363  cd /usr/local/
  364  ll
  365  chown mysql:mysql -R mysql
  366  service mysqld start
  367  ll
  368  cd /data
  369  ll
  370  cd mysql/
  371  ll
  372  cd log/
  373  ll
  374  touch mysqld.log
  375  ll
  376  chown mysql:mysql -R *
  377  service mysqld start
  378  mysql -version
  379   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-devel
  399  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-ssh2
  401  mysql -u root -p -S /usr/local/mysql/mysql.sock
  402  cd /home
  403  tar zxvf zabbix-5.2.6.tar.gz 
  404  rm -rf zabbix5
  405  cd zabbix-5.2.6/database/mysql/
  406  ll
  407  mysql -uzabbix -p123456 zabbix < schema.sql
  408  mysql -u root -p -S /usr/local/mysql/mysql.sock
  409  mysql -uzabbix -p123456 -S /usr/local/mysql/mysql.sock < schema.sql
  410  mysql -uzabbix -p123456 -S /usr/local/mysql/mysql.sock  zabbix < schema.sql
  411  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 list
  414  yum install java*
  415  mount /dev/cdrom /media/ios/
  416  yum install java*
  417  cd /home/zabbix-5.2.6/
  418  l
  419  ll
  420  ./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
  421  make
  422  ll
  423  yum -y install libssh2-devel
  424  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-ssh2
  427  cd /home
  428  rpm -ivh libssh2-1.8.0-4.el7.src.rpm 
  429  useradd mockbuild
  430  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-ssh2
  433  find cd /usr/local/include/
  434  cd /usr/local/include
  435  ll
  436  yum install libssh2-devel
  437  cd /media/ios/Packages/
  438  ll
  439  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-ssh2
  442  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-ssh2
  444  yum install unixODBC-devel libssh2-devel libevent-devel libxml2-devel net-snmp-devel libcurl-devel pcre-devel
  445  find / -name ssh2.so
  446  cd /home
  447  tar zxvf libssh2-1.3.0.tar.gz 
  448  cd libssh2-1.3.0/
  449  ./configure
  450  make
  451  sshd -V
  452  cd /home/zabbix-5.2.6/
  453  ldconfig
  454  ./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
  455  reboot
  456  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-ssh2
  458  cat /etc/ssh/sshd_config 
  459  cat /etc/ssh/sshd_config  | grep Protocol
  460  ssh -2 root@192.168.63.141
  461  ssh -1 root@192.168.63.141
  462  ssh -2 oracle@192.168.63.141
  463  cd ~/.ssh/
  464  ll
  465  ssh -V
  466  yum -y install libssh2-devel
  467  mount /dev/cdrom /media/ios/
  468  yum -y install libssh2-devel
  469  yum -y install libssh2-devel*
  470  yum -y install libssh2*
  471  cd /usr/local
  472  ll
  473  cd lib
  474  ll
  475  cd ..
  476  find / -name libssh2.so.1
  477  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.1
  479  cd /media/ios/Packages/
  480  ll|grep libssh2*
  481  rpm -qa libssh2*
  482  rpm -qa libssh2-1.4.3-12.el7.x86_64
  483  rpm -ivh libssh2-1.4.3-12.el7.x86_64.rpm
  484  rpm -q libssh2-1.4.3-12.el7.x86_64.rpm
  485  rpm -qa libssh2-1.4.3-12.el7.x86_64.rpm
  486  rpm -ql libssh2-1.4.3-12.el7.x86_64.rpm
  487  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 lib
  493  rpm -qa |grep libs
  494  rpm -qa |grep libss
  495  rpm -qa |grep libssh2-1.4.3-12.el7.x86_64
  496  rpm -ql libssh2-1.4.3-12.el7.x86_64
  497  ldconfig -a
  498  ldconfig a
  499  ldconfig
  500  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  ./co
  503  rpm -ql libssh2-1.4.3-12.el7.x86_64
  504  ./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.1
  505  rpm -ql libssh2-1.4.3-12.el7.x86_64
  506  echo $LD_LIBRARY_PATH
  507  ldd
  508  ldd D
  509  cd /etc/ld.so.conf.d/
  510  touch ssh2.conf
  511  vi ssh2.conf 
  512  ldconfig
  513  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-ssh2
  515  ldconfig -v
  516  ldconfig -v|grep libssh
  517  cd /usr/lib
  518  ll
  519  rpm -ql libssh2-1.4.3-12.el7.x86_64
  520  cd /etc/ld.so.conf.d/
  521  cd ..
  522  vi ld.so.conf
  523  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-ssh2
  526  ldconfig -v|grep libssh
  527  cd /usr/lib64
  528  ll|grep libssh2
  529  cp libssh2.so.1.0.1 /usr/lib
  530  ldconfig -v|grep libssh
  531  ldconfig 
  532  ldconfig -v|grep libssh
  533  mkdir -p /usr/local/ssl/lib
  534  cp libssh2.so.1.0.1 /usr/local/ssl/lib/
  535  ldconfig -v|grep libssh
  536  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-ssh2
  538  vi /etc/ld.so.conf
  539  ldconfig -v
  540  cd /usr/local/ssl/lib/
  541  ll
  542  ldconfig
  543  reboot
  544  cd /home/zabbix-5.2.6/
  545  ldconfig -v
  546  ./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
  547  ps -ef | grep ssh
  548  ps -ef | grep sshd
  549  rpm -ql libssh2-1.4.3-12.el7.x86_64
  550  yum install -y libssh2-1.4.3-12.el7.x86_64*
  551  rpm -qa |grep ssh
  552  yum install -y libssh2-devel
  553  cd /media/ios
  554  mount /dev/cdrom /media/ios/
  555  yum install -y libssh2-devel
  556  cd /media/ios/
  557  cd Packages/
  558  ll
  559  ll|grep libssh2-devel
  560  cd /home
  561  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 --force
  563  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-ssh2
  565  yum install -y libevent-devel
  566  cd /media/ios/Packages/
  567  ll|grep libevent-devel*
  568  ll|grep libevent*
  569  cd /home
  570  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-ssh2
  575  yum install libevent-devel -y
  576  cd /media/ios/Packages/
  577  rpm -ivh --nodeps --force  libevent-devel-2.1.8-5.el8.x86_64.rpm 
  578  cd /home
  579  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.com
  584  ping site.baidu.com
  585  wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
  586  cd /etc/yum.repos.d/
  587  ll
  588  mv te.repo te.repo.bak
  589  yum clean all
  590  yum makecache
  591  cd /home
  592  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 -y
  596  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-ssh2
  598  yum install libevent-devel -y
  599  rpm -e libevent-devel-2.0.21-4.el7.x86_64
  600  rpm -e libevent-devel*
  601  rpm -qa|grep libevent-devel*
  602  rpm -e libevent-devel-2.1.8-5.el8.x86_64
  603  rpm -qa|grep libevent-devel*
  604  yum install libevent-devel -y
  605  yum install libssh2-devel-1.9.0-5.el8.x86_64 -y
  606  rpm -e libssh2-devel-1.9.0-5.el8.x86_64
  607  yum install libssh2-devel-1.9.0-5.el8.x86_64 -y
  608  yum install libssh2-devel -y
  609  yum install mod_fcgid -y
  610  yum install mod_ssl -y
  611  yum install libevent-devel -y
  612  ./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
  613  make
  614  make install
  615  service mysql strt
  616  service mysql start
  617  service mysql status
  618  /etc/init.d/php-fpm start
  619  /usr/local/httpd/bin/httpd -k start
  620  cd /usr/local/zabbix/etc
  621  vi zabbix_server.conf
  622  /usr/local/zabbix/sbin/zabbix_server 
  623  cd /usr/local/
  624  chown -R mysql:mysql mysql/
  625  vi /etc/ld.so.conf
  626  ldconfig 
  627  cd /usr/local/httpd/htdocs
  628  mkdir zabbix
  629  cd /app/zabbix-4.0.5/frontends
  630  cd /home/zabbix-5.2.6/frontends
  631  vi /usr/local/php7/etc/php.ini
  632  find / -name -d frontends
  633  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 stop
  640  /usr/local/httpd/bin/httpd -k start
  641  /etc/init.d/php-fpm restart
  642  systemctl stop firewalld
  643  cd /home/php-7.2.16/ext
  644  cd mysqli
  645  /usr/local/php7/bin/phpize
  646  ./configure --prefix=/usr/local/mysqli --with-php-config=/usr/local/php7/bin/php-config --with-mysqli=/usr/local/mysql/bin/mysql_config
  647  nake
  648  make
  649  ./configure --prefix=/usr/local/mysqli --with-php-config=/usr/local/php7/bin/php-config --with-mysqli=/usr/local/mysql/bin/mysql_config
  650  make
  651  ./configure --prefix=/usr/local/mysqli --with-php-config=/usr/local/php7/bin/php-config --with-mysqli=/usr/local/mysql/bin/mysql_config
  652  make
  653  make test
  654  make install
  655  vi /usr/local/php7/etc/php.in
  656  /usr/local/httpd/bin/httpd -k stop
  657  /usr/local/httpd/bin/httpd -k start
  658  /etc/init.d/php-fpm restart
  659  cd /usr/local/zabbix/sbin
  660  ./zabbix_server 
  661  useradd zabbix
  662  ./zabbix_server 
  663  netstat -tnulp
  664  netstat -tnulp|grep zabbix_
  665  cd /home/php-7.2.16/ext/gettext/
  666  /usr/local/php7/bin/phpize
  667  ./configure -with-php-config=/usr/local/hp-5.5.7/bin/php-config
  668  ./configure  --with-php-config=/usr/local/php7/bin/php-config 
  669  make
  670  make install
  671  make test
  672  vi /usr/local/php/etc/php.ini
  673  vi /usr/local/php7/etc/php.in
  674  vi /usr/local/php/etc/php.ini
  675  vi /usr/local/php7/etc/php.ini 
  676  vi /usr/local/php7/etc/php.in
  677  vi /usr/local/php7/etc/php.ini
  678  /etc/init.d/php-fpm restart
  679  /usr/local/httpd/bin/httpd -k stop
  680  /usr/local/httpd/bin/httpd -k start
  681  cd /usr/local/zabbix/sbin
  682  ./zabbix_server 
  683  netstat -tnulp
  684  systemctl status zabbix-server.service
  685  ps -C zabbix_server
  686  ps -ef|grep  zabbix_server
  687  netstat -tnulp|grep 43812
  688  cat /var/log/zabbix/zabbix_server.log
  689  setenforce 0 
  690  cat /usr/local/php7/etc/php.in
  691  cat /usr/local/php7/etc/php.ini 
  692  cat /usr/local/php7/etc/php.ini |grep allow_url_fopen
  693  cat /usr/local/php7/etc/php.ini |grep php_openssl.dll
  694  /usr/local/php/bin/phpize
  695  /usr/local/php7/bin/phpize
  696  /usr/local/php7/bin/phpize 
  697  /usr/local/php7/bin/phpize
  698  cd /home/php-7.2.16/ext/
  699  /usr/local/php7/bin/phpize
  700  cd openssl/
  701  /usr/local/php7/bin/phpize
  702  ll
  703  mv config0.m4 config.m4
  704  /usr/local/php7/bin/phpize
  705  ./configure –with-openssl –with-php-config=/usr/local/php7/bin/php-config
  706  ./configure –with-openssl-with-php-config=/usr/local/php7/bin/php-config
  707  ./configure –with-openssl -with-php-config=/usr/local/php7/bin/php-config
  708  ./configure –with-openssl –with-php-config=/usr/local/php7/bin/php-config
  709  ./configure -with-openssl -with-php-config=/usr/local/php7/bin/php-config
  710  nake
  711  make
  712  make install
  713  vi /usr/local/php7/etc/php.ini 
  714  /usr/local/httpd/bin/httpd -k stop
  715  /usr/local/httpd/bin/httpd -k start
  716  /etc/init.d/php-fpm restart
  717  vi /usr/local/php7/etc/php.ini 
  718  netstat -tnulp|grep zabbix_
  719  ps -ef|grep  zabbix_server
  720  kill -9 43812
  721  /usr/local/zabbix/sbin/zabbix_server 
  722  ps -ef|grep  zabbix_server
  723  netstat -tnulp
  724  history
  725  mysql -uzabbix -p123456 -S /usr/local/mysql/mysql.sock
  726  mysql -uzabbix -p123456 -h localhost -S /usr/local/mysql/mysql.sock
  727  ps -ef|grep  zabbix_server
  728  kill -9 51064
  729  /usr/local/zabbix/sbin/zabbix_server 
  730  ps -ef|grep  zabbix_server
  731  kill -9 51137
  732  /usr/local/zabbix/sbin/zabbix_server 
  733  netstat -tnulp|grep 3306
  734  ps -ef|grep  zabbix_server
  735  kill -9 51218
  736  /usr/local/zabbix/sbin/zabbix_server 
  737  netstat -tnulp|grep 10051
  738  ps -ef|grep  zabbix_server
  739  kill -9 51249
  740  ps -ef|grep  zabbix_server
  741  /usr/local/zabbix/sbin/zabbix_server start
  742  /usr/local/zabbix/sbin/zabbix_server
  743  ps -ef|grep  zabbix_server
  744  netstat -tnulp|grep 52003
  745  kill -8 52003
  746  /usr/local/zabbix/sbin/zabbix_server -c /usr/local/zabbix/etc/zabbix_server.conf
  747  ps -ef|grep  zabbix_server 
  748  netstat -tnulp|grep 52003
  749  ps -ef|grep  zabbix_server
  750  kill -9 52140
  751  /usr/local/zabbix/sbin/zabbix_server -c /usr/local/zabbix/etc/zabbix_server.conf
  752  ps -ef|grep  zabbix_server
  753  kill -9 53650
  754  /usr/local/zabbix/sbin/zabbix_server -c /usr/local/zabbix/etc/zabbix_server.conf
  755  cat /etc/hosts
  756  ps -ef|grep  zabbix_server
  757  kill -9 53676
  758  ps -ef|grep  zabbix_server
  759  kill -9 53676
  760  kill -9 53731
  761  ps -ef|grep  zabbix_server
  762  killall zabbix
  763  kill -9 53766
  764  killall zabbix
  765  ps -ef|grep  zabbix_server
  766  netstat -tnulp
  767  netstat -tnulp|grep zabbix
  768  kill -9 53732
  769  ps -ef|grep  zabbix_server
  770  netstat -tnulp|grep zabbix
  771  kill -9 53733
  772  netstat -tnulp|grep zabbix
  773  kill -9 53734
  774  netstat -tnulp|grep zabbix
  775  kill -9 53735
  776  kill -9 53734
  777  netstat -tnulp|grep zabbix
  778  kill -9 5373*
  779  killall zabbix_server
  780  netstat -tnulp|grep zabbix
  781  kill -9 53736
  782  kill -9 53737
  783  kill -9 53738
  784  kill -9 53739
  785  kill -9 53740
  786  kill -9 53741
  787  kill -9 53742
  788  kill -9 53743
  789  kill -9 53744
  790  netstat -tnulp|grep zabbix
  791  kill -9 53749
  792  netstat -tnulp|grep zabbix
  793  kill -9 53750
  794  kill -9 53751
  795  kill -9 53752
  796  kill -9 53753
  797  kill -9 53754
  798  kill -9 53755
  799  kill -9 53756
  800  kill -9 53757
  801  netstat -tnulp|grep zabbix
  802  kill -9 53767
  803  kill -9 53768
  804  netstat -tnulp|grep zab
  805  ps -ef|grep  zabbix_server
  806  kill -9 53770
  807  ps -ef|grep  zabbix_server
  808  netstat -tnulp|grep zab
  809  /usr/local/zabbix/sbin/zabbix_server 
  810  netstat -tnulp|grep zab
  811  ps -ef|grep  zabbix_server
  812  /usr/local/zabbix/sbin/zabbix_server  restart
  813  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_server
  818  /usr/local/zabbix/sbin/zabbix_server  
  819  kill -9 `ps -ef|grep  zabbix_server |awk -F ' ' {'print $2'}`
  820  ps -ef|grep  zabbix_server
  821  /usr/local/zabbix/sbin/zabbix_server  
  822  ps -ef|grep  zabbix_server
  823  kill -9 `ps -ef|grep  zabbix_server |awk -F ' ' {'print $2'}`
  824  ps -ef|grep  zabbix_server
  825  /usr/local/zabbix/sbin/zabbix_server  
  826  ps -ef|grep  zabbix_server
  827  kill -9 `ps -ef|grep  zabbix_server |awk -F ' ' {'print $2'}`
  828  ps -ef|grep  zabbix_server
  829  /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 zabbix
  837  vi /etc/selinux/config
  838  getenforce 
  839  cd "/usr/local/php7/lib/php/extensions/no-debug-zts-20170718"
  840  ll
  841  tail -f /tmp/zabbix_server.log 
  842  getenforce 
  843  tail -f /tmp/zabbix_server.log 
  844  mysql -uzabbix -p123456 -h localhost
  845  mysql -uzabbix -p123456 -h localhost -S /usr/local/mysql/mysql.sock
  846  tail -f /tmp/zabbix_server.log 
  847  mysql -uzabbix -p123456 -h localhost -S /usr/local/mysql/mysql.sock
  848  mysqladmin -uzabbix -p123456 password zabbix@123 
  849  mysqladmin -uzabbix -p123456 password zabbix@123  -S /usr/local/mysql/mysql.sock
  850  mysql -uroot -p123456 -h localhost -S /usr/local/mysql/mysql.sock
  851  mysql -uroot -p123456 -h 192.168.63.141 -S /usr/local/mysql/mysql.sock
  852  mysql -uroot -p123456 -h localhost -S /usr/local/mysql/mysql.sock
  853  tail -f /tmp/zabbix_server.log 
  854  mysql -uroot -p123456 -h localhost -S /usr/local/mysql/mysql.sock
  855  tail -f /tmp/zabbix_server.log 
  856  mysql -uroot -p123456 -h localhost -S /usr/local/mysql/mysql.sock
  857  tail -f /tmp/zabbix_server.log 
  858  mysql -uzabbix -pzabbix@123456 -h localhost -S /usr/local/mysql/mysql.sock
  859  mysql -uzabbix -pzabbix -h localhost -S /usr/local/mysql/mysql.sock
  860  mysql -uzabbix -pzabbix@123456 -h 192.168.63.141 -S /usr/local/mysql/mysql.sock
  861  tail -f /tmp/zabbix_server.log 
  862  mysql -uroot -p123456 -h localhost -S /usr/local/mysql/mysql.sock
  863  cd /home/zabbix-5.2.6/database/mysql/
  864  ll
  865  mysql -uzabbix -pzabbix zabbix < schema.sql
  866  mysql -uzabbix -pzabbix zabbix -h192.168.63.141 -p3306 < schema.sql
  867  mysql -uzabbix -pzabbix  -h192.168.63.141 -p3306 zabbix < schema.sql
  868  mysql -uroot -pzabbi@123456  -h192.168.63.141 -p3306 zabbix < schema.sql
  869  mysql -uroot -pzabbix@123456  -h192.168.63.141 -p3306 zabbix < schema.sql
  870  mysql -uroot -pzabbix@123456  -h192.168.63.141 zabbix < schema.sql
  871  mysql -uroot -p123456  -h192.168.63.141 zabbix < schema.sql
  872  mysql -uroot -p123456  -h192.168.63.141 zabbix < images.sql
  873  mysql -uroot -p123456  -h192.168.63.141 zabbix < data.sql 
  874  /usr/local/httpd/bin/httpd -k stop
  875  /usr/local/httpd/bin/httpd -k start
  876  /etc/init.d/php-fpm restart
  877  find / -namd zabbix.conf.php
  878  find / -name zabbix.conf.php
  879  netstat -tnulp
  880  netstat -tnulp |grep 10050
  881  netstat -tnulp |grep 1005
  882  tail -f /tmp/zabbix_server.
  883  tail -f /tmp/zabbix_server.log 
  884  reboot
  885  tail -f /tmp/zabbix_server.log 
  886  systemctl disable firewalld
  887  systemctl stop firewalld
  888  netstat -tnulp
  889  tail -f /tmp/zabbix_server.
  890  tail -f /tmp/zabbix_server.log 
  891  /etc/init.d/php-fpm restart
  892  /usr/local/httpd/bin/httpd -k start
  893  /etc/init.d/php-fpm start
  894  service mysql start
  895  getenforce 
  896  /usr/local/zabbix/sbin/zabbix_server 
  897  cd /home/zabbix-5.2.6/
  898  ll
  899  ./configure --prefix=/usr/local/zabbix-agent --enable-agent
  900  make
  901  make install
  902   /usr/local/zabbix-agent/sbin/zabbix_agentd
  903  netstat -tnulp
  904  service mysql start
  905  /usr/local/httpd/bin/httpd -k start
  906  make install
  907  netstat -tnulp
  908  cat /tmp/zabbix_server.pid 
  909  kill -9 8884
  910  netstat -tnulp
  911  ps -ef |grep zabbix
  912  history
  913  ps -ef |grep zabbix
  914  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 zabbix
  919  /usr/local/zabbix/sbin/zabbix_server 
  920   /usr/local/zabbix-agent/sbin/zabbix_agentd
  921  ps -ef |grep zabbix
  922  netstat -tnulp
  923  cd /app
  924  tar zxvf ansible-2.3.0.0.tar.gz 
  925  /app/ansible-2.3.0.0/bin/ansible version
  926  /app/ansible-2.3.0.0/bin/ansible --help
  927  /app/ansible-2.3.0.0/bin/ansible -help
  928  /app/ansible-2.3.0.0/bin/ansible
  929  /app/ansible-2.3.0.0/bin/ansible --version
  930  cd /app/ansible-2.3.0.0/bin/
  931  ll
  932  cd ..
  933  ll
  934  python setup.py build
  935  python setup.py install
  936  cd /app
  937  tar zxvf pycrypto-2.6.1.tar.gz 
  938  cd pycrypto-2.6.1/
  939  ll
  940  python setup.py build
  941  python setup.py install
  942  cd /app/ansible-2.3.0.0/
  943  python setup.py install
  944  cd /app
  945  tar zxvf paramiko-2.7.2.tar.gz 
  946  cd paramiko-2.7.2/
  947  ll
  948  python setup.py build
  949  pip install --upgrade setuptools
  950  curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
  951  ll
  952  cd ..
  953  python get-pip.py 
  954  curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
  955  ll
  956  python2 get-pip.py 
  957  tar zxvf pip-21.1.1.tar.gz 
  958  cd pip-21.1.1/
  959  ll
  960  cd /app
  961  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 xz
  968  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  ll
  974  ./configure --prefix=/usr/local/Python-3.9.5 --with-ssl --enable-optimizations
  975  make
  976  ./configure --prefix=/usr/local/Python-3.9.5 --with-ssl 
  977  make
  978  yum install -y gcc-c++
  979  gcc -v
  980  yum install -y gcc
  981  ./configure --prefix=/usr/local/Python-3.9.5 --with-ssl --enable-optimizations
  982  make
  983  wget https://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.xz
  984  cd d/app
  985  cd /app
  986  wget https://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.xz
  987  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_prerequisites
  992  wget ftp://gcc.gnu.org/pub/gcc/infrastructure/gmp-6.1.0.tar.bz2
  993  cd /app/gcc-9.2.0/
  994  wget ftp://gcc.gnu.org/pub/gcc/infrastructure/mpfr-3.1.4.tar.bz2
  995  wget  ftp://gcc.gnu.org/pub/gcc/infrastructure/mpc-1.0.3.tar.gz
  996  cd /app/gcc-9.2.0/
  997  wget ftp://gcc.gnu.org/pub/gcc/infrastructure/isl-0.16.1.tar.bz2
  998  ll

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

凤舞飘伶

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值