一.编译安装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