标签:write rowspan .sql data rap XmlReader chown 自动 ble
1 yum -y install gcc gcc-c++* net-snmp-devel curl curl-devel perl-DBI php-gd php-mysql php-bcmath php-mbstring php-xml mysql-devel libxml2* freetype-devel libicu-devel openldap-devel.x86_64 httpd httpd-devel mysql-server mysql mysql-libs php php-devel
1 #vim /var/www/html/index.php 2 <?php 3 phpinfo(); 4 ?>
1 #vim /etc/httpd/conf/httpd.conf 2 LoadModule php5_module modules/libphp5.so 3 DirectoryIndex index.php index.html 4 AddType application/x-httpd-php .php 5 ServerName localhost:80 6 #/etc/init.d/httpd restart
1 #mkdir /data/zabbix #建议将Zabbix数据库独立存储 2 #vi /etc/my.cnf 3 datadir=/data/zabbix #设置独立的Zabbix数据库便于存储 4 character-set-server=utf8 #设置字符集为utf8 5 innodb_file_per_table=1 #设置innodb的每个表文件单独存储 6 [client] 7 default-character-set=utf8 8 socket=/var/lib/mysql/mysql.sock 9 [mysql] 10 default-character-set=utf8 11 socket=/var/lib/mysql/mysql.sock 12 character-set-server=utf8 13 innodb_file_per_table=1 14 # chown -R mysql:mysql /data/ 15 # ln -S /data/mysql/mysql.sock /var/lib/mysql/mysql.sock 16 # service mysqld start 17 # mysql_secure_installation
1 #service iptables stop 2 #chkconfig iptables off 3 #vi /etc/sysconfig/selinux 4 SELINUX=disable 5 #setenforce 0
1 # useradd zabbix #新建Zabbix用户 2 # usermod -s /sbin/nologin zabbix #禁止Zabbix用户登录,提升安全 3 # mysql -uroot -p 4 mysql> create database zabbix charset=utf8; 5 mysql> grant all on zabbix.* to zabbix@localhost identified by ‘zabbixpassword‘; 6 mysql> flush privileges;
1 # wget https://nchc.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.4.8/zabbix-2.4.8.tar.gz
1 #tar xf zabbix-2.4.8.tar.gz 2 #cd zabbix-2.4.8 3 #./configure --prefix=/usr/local/zabbix/ --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2 4 #make && make install
1 #cd /root/zabbix-2.4.8/database/mysql/ 2 #mysql -uzabbix -pzabbixpassword zabbix < schema.sql 3 #mysql -uzabbix -pzabbixpassword zabbix < images.sql 4 #mysql -uzabbix -pzabbixpassword zabbix < data.sql
1 #ln -s /usr/local/zabbix/sbin/zabbix_* /usr/local/sbin/ 2 #cd /root/zabbix-2.4.8/misc/init.d/tru64 3 #cp * /etc/init.d/ 4 #chmod u+x /etc/init.d/zabbix_*
1 #cd /root/zabbix-2.4.8/frontends/php 2 #cp -arf * /var/www/html
1 #vi /usr/local/zabbix/etc/zabbix_server.conf 2 LogFile=/var/log/zabbix/zabbix_server.log 3 LogFileSize=0 4 PidFile=/var/run/zabbix/zabbix_server.pid 5 DBHost=127.0.0.1 #修改主机 6 DBName=zabbix 7 DBUser=zabbix 8 DBPassword=zabbixpassword #修改DB密码(之前所创建密码) 9 SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
1 #vi /etc/php.ini 2 max_execution_time 300 3 memory_limit 128M 4 post_max_size 16M 5 upload_max_filesize 2M 6 max_input_time 300 7 always_populate_raw_post_data -1 8 date.timezone Asia/Shanghai
1 #/etc/init.d/httpd restart 2 #chkconfig httpd on 3 #/etc/init.d/mysqld restart 4 #chkconfig mysqld on
标签:write rowspan .sql data rap XmlReader chown 自动 ble
原文地址:https://www.cnblogs.com/itzgr/p/9962712.html