<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>浮生若梦</title><link>https://www.clrun.com/</link><description>Good Luck To You!</description><item><title>适合在内网使用的unicode转中文python2脚本</title><link>https://www.clrun.com/2019/12/192.html</link><description>&lt;p&gt;简单方便，非常适合内网使用。脚本请在python2下执行。&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-python&quot;&gt;#!/usr/bin/python
#&amp;nbsp;-*-&amp;nbsp;coding:&amp;nbsp;utf-8&amp;nbsp;-*-
#author=****
#2019-11-28
s&amp;nbsp;=&amp;nbsp;raw_input(&amp;#39;请输入unicode编码：&amp;#39;)
s=s.decode(&amp;#39;unicode_escape&amp;#39;)
print&amp;nbsp;s&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 18 Dec 2019 14:50:07 +0800</pubDate></item><item><title>redhat7.5系部署zabbix4.4</title><link>https://www.clrun.com/2019/12/191.html</link><description>&lt;ul class=&quot; list-paddingleft-2&quot; style=&quot;list-style-type: disc;&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;1.准备工作&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;Zabbix需要LAMP环境来支持，请自行安装支持环境，或参考本文（建议采用yum方式安装，简单省事，不易出错）。本&lt;span style=&quot;text-indent: 28px;&quot;&gt;文在多个环境下编写而成，如存在描述不严谨的地方（如配置文件位置等），请自行对照自己的系统环境。&lt;/span&gt;本文采用源码安装zabbix4.4安装前建议关闭防火墙和selinux。&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;临时关闭selinux：setenforce 0&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;永久关闭selinux：sed -i &amp;#39;s/SELINUX=enforcing/SELINUX=disabled/g&amp;#39; /etc/sysconfig/selinux&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;临时关闭防火墙：systemctl stop firewalld.service&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;永久关闭防火墙：systemctl disable firewalld.service&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;依赖软件版本：Mysql 5.7.28、httpd-2.4.41、php-7.2.24&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;如需要了解其他详细信息，请参考官方文档&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-markup&quot;&gt;https://www.zabbix.com/documentation/4.0/zh/manual/installation/install&lt;/pre&gt;&lt;ul class=&quot; list-paddingleft-2&quot; style=&quot;list-style-type: disc;&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;2.安装LAMP环境&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;2.1安装apache&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;1).先确认系统是否有安装，以避免其他问题。卸载rpm -e --nodeps 包名&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;rpm&amp;nbsp;-qa&amp;nbsp;|&amp;nbsp;grep&amp;nbsp;httpd
#&amp;nbsp;groupadd&amp;nbsp;apache
#&amp;nbsp;useradd&amp;nbsp;-s&amp;nbsp;/sbin/nologin&amp;nbsp;-g&amp;nbsp;apache&amp;nbsp;-M&amp;nbsp;apache&lt;/pre&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;2).安装依赖包&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;httpd安装的依赖包&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;yum&amp;nbsp;-y&amp;nbsp;install&amp;nbsp;pcre-devel&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
#&amp;nbsp;yum&amp;nbsp;-y&amp;nbsp;install&amp;nbsp;openssl-devel&amp;nbsp;
#&amp;nbsp;yum&amp;nbsp;-y&amp;nbsp;groupinstall&amp;nbsp;&amp;quot;Development&amp;nbsp;Tools&amp;quot;&lt;/pre&gt;&lt;p&gt;arp-util安装的依赖包&lt;br/&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;yum&amp;nbsp;install&amp;nbsp;expat-devel&lt;/pre&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;3).编译安装apr-1.7.0&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;wget&amp;nbsp;http://mirrors.tuna.tsinghua.edu.cn/apache/apr/apr-1.7.0.tar.gz
#&amp;nbsp;tar&amp;nbsp;zxvf&amp;nbsp;apr-1.7.0.tar.gz
#&amp;nbsp;cd&amp;nbsp;apr-1.7.0
#&amp;nbsp;./configure&amp;nbsp;-prefix=/usr/local/apr
#&amp;nbsp;make&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;make&amp;nbsp;install&lt;/pre&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;4).编译安装apr-util-1.6.1&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;wget&amp;nbsp;http://mirrors.tuna.tsinghua.edu.cn/apache/apr/apr-util-1.6.1.tar.gz
#&amp;nbsp;tar&amp;nbsp;zxvf&amp;nbsp;apr-util-1.6.1.tar.gz
#&amp;nbsp;cd&amp;nbsp;apr-util-1.6.1
#&amp;nbsp;./configure&amp;nbsp;--prefix=/usr/local/apr-util&amp;nbsp;--with-apr=/usr/local/apr/
#&amp;nbsp;make&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;make&amp;nbsp;install&lt;/pre&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;5).编译安装httpd-2.4.41&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;wget&amp;nbsp;http://mirror.bit.edu.cn/apache/httpd/httpd-2.4.41.tar.gz
#&amp;nbsp;tar&amp;nbsp;zxvf&amp;nbsp;httpd-2.4.41.tar.gz
#&amp;nbsp;cd&amp;nbsp;httpd-2.4.41
#&amp;nbsp;./configure&amp;nbsp;--prefix=/usr/local/apache&amp;nbsp;--sysconfdir=/etc/httpd&amp;nbsp;--enable-so&amp;nbsp;--enable-ssl&amp;nbsp;--enable-cgi&amp;nbsp;--enable-rewrite&amp;nbsp;--with-zlib&amp;nbsp;--with-pcre&amp;nbsp;--with-apr=/usr/local/apr&amp;nbsp;--with-apr-util=/usr/local/apr-util&amp;nbsp;--enable-modeles=most&amp;nbsp;--enable-mpms-shared=all&amp;nbsp;--with-mpm=event
#&amp;nbsp;make&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;make&amp;nbsp;install&lt;/pre&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;6).添加httpd服务开启启动&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;ln&amp;nbsp;-s&amp;nbsp;/usr/local/apache/bin/apachectl&amp;nbsp;/etc/rc.d/init.d/httpd&lt;/pre&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;vim&amp;nbsp;/etc/rc.d/init.d/httpd&lt;/pre&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;在#/bin/sh 下加上两行&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;# chkconfig: 2345 95 10&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;# description: Activates/Deactivates Apache Web Server&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;注意：源码编译apache，运行用户为deamon，&lt;span style=&quot;text-indent: 2em;&quot;&gt;修改配置文件改变apache运行身份，修改httpd.conf文件添加以下两行。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;User&amp;nbsp;apache
#&amp;nbsp;vim&amp;nbsp;/etc/httpd/httpd.conf&lt;/pre&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;span style=&quot;text-indent: 28px;&quot;&gt;&amp;nbsp;&lt;/span&gt;Group apache&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;span style=&quot;text-indent: 28px;&quot;&gt;&amp;nbsp;&lt;/span&gt;useradd -U apache&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;添加服务并设置开机自启&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;chkconfig&amp;nbsp;--add&amp;nbsp;httpd
#&amp;nbsp;systemctl&amp;nbsp;enable&amp;nbsp;httpd&amp;nbsp;|&amp;nbsp;chkconfig&amp;nbsp;httpd&amp;nbsp;on&amp;nbsp;|systemctl&amp;nbsp;start&amp;nbsp;httpd&lt;/pre&gt;&lt;ul class=&quot; list-paddingleft-2&quot; style=&quot;list-style-type: disc;&quot;&gt;&lt;li&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;2.2.安装mysql&lt;/span&gt;&lt;/strong&gt;&lt;br/&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;1).先确认系统是否有安装，以避免其他问题。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;rpm&amp;nbsp;-qa&amp;nbsp;|&amp;nbsp;grep&amp;nbsp;mysql
#&amp;nbsp;rpm&amp;nbsp;-qa&amp;nbsp;|&amp;nbsp;grep&amp;nbsp;mariadb&lt;/pre&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;注意：本文档安装的是mysql5.7.28，所以卸载了查询到的所有包，以避免异常。&lt;/p&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;2).安装相关支持包：&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;因为7系默认使用mariadb代替mysql，所以需要去mysql官网下载相应的rpm安装包，下载地址：https://dev.mysql.com/downloads/mysql/&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;安装以下6个包就行：&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;mysql-community-client-5.7.28-1.el7.x86_64、mysql-community-common-5.7.28-1.el7.x86_64、mysql-community-devel-5.7.28-1.el7.x86_64、mysql-community-libs-5.7.28-1.el7.x86_64、mysql-community-libs-compat-5.7.28-1.el7.x86_64、mysql-community-server-5.7.28-1.el7.x86_64&lt;/p&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;3).配置数据库：&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;执行以下命令更改root密码并创建zabbix用户和数据库&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;systemctl&amp;nbsp;restart&amp;nbsp;mysqld
#&amp;nbsp;echo&amp;nbsp;&amp;#39;skip-grant-tables&amp;#39;&amp;nbsp;&amp;gt;&amp;gt;/etc/my.cnf&lt;/pre&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;或使用mysql初始化默认密码：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;awk&amp;nbsp;&amp;#39;{if($0~&amp;quot;A&amp;nbsp;temporary&amp;nbsp;password&amp;quot;)&amp;nbsp;print}&amp;#39;&amp;nbsp;/var/log/mysqld.log&amp;nbsp;|&amp;nbsp;awk&amp;nbsp;&amp;#39;{print&amp;nbsp;$11}&amp;#39;&lt;/pre&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;登录后再修改密码&lt;br/&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;mysql&amp;nbsp;-uroot&amp;nbsp;mysql&amp;nbsp;&amp;lt;&amp;lt;EOF&amp;nbsp;&amp;nbsp;
ALTER&amp;nbsp;USER&amp;nbsp;&amp;#39;root&amp;#39;@&amp;#39;localhost&amp;#39;&amp;nbsp;IDENTIFIED&amp;nbsp;BY&amp;nbsp;&amp;#39;********&amp;#39;;
ALTER&amp;nbsp;USER&amp;nbsp;&amp;#39;root&amp;#39;@&amp;#39;localhost&amp;#39;&amp;nbsp;PASSWORD&amp;nbsp;EXPIRE&amp;nbsp;NEVER;
SET&amp;nbsp;character_set_client&amp;nbsp;=&amp;nbsp;utf8;
SET&amp;nbsp;character_set_connection&amp;nbsp;=&amp;nbsp;utf8;
SET&amp;nbsp;character_set_database&amp;nbsp;=&amp;nbsp;utf8&amp;nbsp;;
SET&amp;nbsp;character_set_results&amp;nbsp;=&amp;nbsp;utf8&amp;nbsp;;
SET&amp;nbsp;character_set_server&amp;nbsp;=&amp;nbsp;utf8&amp;nbsp;;
FLUSH&amp;nbsp;PRIVILEGES;
EOF&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;mysql&amp;nbsp;-uroot&amp;nbsp;mysql&amp;nbsp;&amp;lt;&amp;lt;EOF&amp;nbsp;&amp;nbsp;
UPDATE&amp;nbsp;user&amp;nbsp;SET&amp;nbsp;authentication_string=PASSWORD(&amp;#39;********&amp;#39;)&amp;nbsp;where&amp;nbsp;USER=&amp;#39;root&amp;#39;;
create&amp;nbsp;user&amp;nbsp;zabbix&amp;nbsp;identified&amp;nbsp;by&amp;nbsp;&amp;#39;********&amp;#39;;
grant&amp;nbsp;all&amp;nbsp;privileges&amp;nbsp;on&amp;nbsp;zabbix.*&amp;nbsp;to&amp;nbsp;zabbix&amp;nbsp;identified&amp;nbsp;by&amp;nbsp;&amp;#39;********&amp;#39;;
create&amp;nbsp;database&amp;nbsp;zabbix&amp;nbsp;character&amp;nbsp;set&amp;nbsp;utf8&amp;nbsp;collate&amp;nbsp;utf8_general_ci;
FLUSH&amp;nbsp;PRIVILEGES;
EOF&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;echo&amp;nbsp;&amp;#39;character_set_server=utf8&amp;#39;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/etc/my.cnf
#&amp;nbsp;echo&amp;nbsp;&amp;quot;init_connect=&amp;#39;SET&amp;nbsp;NAMES&amp;nbsp;utf8&amp;#39;&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/etc/my.cnf
#&amp;nbsp;echo&amp;nbsp;&amp;#39;skip-name-resolve&amp;#39;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/etc/my.cnf
#&amp;nbsp;echo&amp;nbsp;&amp;#39;max_connections=1000&amp;#39;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/etc/my.cnf
#&amp;nbsp;echo&amp;nbsp;&amp;#39;[mysql]&amp;#39;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/etc/my.cnf
#&amp;nbsp;echo&amp;nbsp;&amp;#39;default-character-set=utf8&amp;#39;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/etc/my.cnf
#&amp;nbsp;sed&amp;nbsp;-i&amp;nbsp;&amp;#39;/^skip-grant-tables/s/.*/#skip-grant-tables/&amp;#39;&amp;nbsp;/etc/my.cnf
#&amp;nbsp;systemctl&amp;nbsp;restart&amp;nbsp;mysqld&lt;/pre&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;如需开启root用户远程连接，请执行如下命令：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;mysql&amp;nbsp;-uroot&amp;nbsp;-p********&amp;nbsp;mysql&amp;nbsp;-s&amp;nbsp;-e&amp;nbsp;&amp;quot;update&amp;nbsp;user&amp;nbsp;set&amp;nbsp;host&amp;nbsp;=&amp;nbsp;&amp;#39;%&amp;#39;&amp;nbsp;where&amp;nbsp;user&amp;nbsp;=&amp;nbsp;&amp;#39;root&amp;#39;;&amp;quot;
#&amp;nbsp;mysql&amp;nbsp;-uroot&amp;nbsp;-p********&amp;nbsp;mysql&amp;nbsp;-s&amp;nbsp;-e&amp;nbsp;&amp;quot;GRANT&amp;nbsp;ALL&amp;nbsp;PRIVILEGES&amp;nbsp;ON&amp;nbsp;*.*&amp;nbsp;TO&amp;nbsp;&amp;#39;root&amp;#39;@&amp;#39;%&amp;#39;&amp;nbsp;IDENTIFIED&amp;nbsp;BY&amp;nbsp;&amp;#39;********&amp;#39;&amp;nbsp;WITH&amp;nbsp;GRANT&amp;nbsp;OPTION;&amp;quot;
#&amp;nbsp;mysql&amp;nbsp;-uroot&amp;nbsp;-p********&amp;nbsp;mysql&amp;nbsp;-s&amp;nbsp;-e&amp;nbsp;&amp;quot;flush&amp;nbsp;privileges;&amp;quot;&lt;/pre&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;4).启动服务并设置开机自启&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;systemctl&amp;nbsp;start&amp;nbsp;mysqld
#&amp;nbsp;systemctl&amp;nbsp;enable&amp;nbsp;mysqld&lt;/pre&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;5).查看下服务状态是否正常&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;systemctl&amp;nbsp;status&amp;nbsp;mysqld&lt;/pre&gt;&lt;ul class=&quot; list-paddingleft-2&quot; style=&quot;list-style-type: disc;&quot;&gt;&lt;li&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;strong&gt;2.3.安装php&lt;/strong&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;1).先确认系统是否有安装，以避免其他问题。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;rpm&amp;nbsp;-qa&amp;nbsp;|&amp;nbsp;grep&amp;nbsp;php
#&amp;nbsp;groupadd&amp;nbsp;www
#&amp;nbsp;useradd&amp;nbsp;-s&amp;nbsp;/sbin/nologin&amp;nbsp;-g&amp;nbsp;www&amp;nbsp;-M&amp;nbsp;www&lt;/pre&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;tar&amp;nbsp;zxvf&amp;nbsp;php-7.2.24.tar.gz
#&amp;nbsp;cd&amp;nbsp;php-7.2.24
#&amp;nbsp;./configure&amp;nbsp;--prefix=/usr/local/php7&amp;nbsp;--with-mysqli&amp;nbsp;--with-pdo-mysql&amp;nbsp;--with-config-file-path=/usr/local/php7/etc&amp;nbsp;--with-iconv-dir=/usr/local/libiconv&amp;nbsp;--with-freetype-dir&amp;nbsp;--with-jpeg-dir&amp;nbsp;--with-png-dir&amp;nbsp;--with-zlib&amp;nbsp;--with-gettext&amp;nbsp;--with-libxml-dir&amp;nbsp;--enable-simplexml&amp;nbsp;--enable-fileinfo&amp;nbsp;--enable-xml&amp;nbsp;--disable-rpath&amp;nbsp;--enable-bcmath&amp;nbsp;--enable-soap&amp;nbsp;--enable-zip&amp;nbsp;--with-curl&amp;nbsp;--with-fpm-user=www&amp;nbsp;--with-fpm-group=www&amp;nbsp;--enable-mbstring&amp;nbsp;--enable-sockets&amp;nbsp;--with-gd&amp;nbsp;--with-openssl=/usr/local/ssl&amp;nbsp;--with-mhash&amp;nbsp;--enable-opcache&amp;nbsp;--with-apxs2=/usr/local/apache/bin/apxs
#&amp;nbsp;make&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;make&amp;nbsp;install&lt;/pre&gt;&lt;p&gt;-----------------------------------------------------------&lt;/p&gt;&lt;p&gt;&amp;nbsp;--enable-fpm&amp;nbsp; &amp;nbsp;or&amp;nbsp; &amp;nbsp;--with-apxs2=/usr/local/apache/bin/apxs&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;nginx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; or&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;apache&lt;/p&gt;&lt;p&gt;-----------------------------------------------------------&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;启动后如提示没有配置文件，php fpm初始化失败，需要添加配置文件，把cp php-fpm.conf.default重命名php-fpm.conf和&lt;a href=&quot;http://www.conf.default重命名www.conf&quot; _src=&quot;http://www.conf.default重命名www.conf&quot; style=&quot;color: rgb(0, 0, 0); text-decoration: none;&quot;&gt;&lt;span style=&quot;color: #000000; text-decoration: none;&quot;&gt;www.conf.default重命名www.conf&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;安装好后需要在php源码把目录把php.ini-production和php.ini-development复制到php的etc目录中，并把php.ini-production重命名为php.ini&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;strong&gt;php.ini文件位置可以查询phpinfo函数来确定。&lt;/strong&gt;&lt;strong style=&quot;text-indent: 2em;&quot;&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;启动服务并设置开机自启&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;systemctl&amp;nbsp;enable&amp;nbsp;php-fpm
#&amp;nbsp;systemctl&amp;nbsp;start&amp;nbsp;php-fpm
#&amp;nbsp;systemctl&amp;nbsp;status&amp;nbsp;php-fpm&lt;/pre&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;strong&gt;验证环境&lt;/strong&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;浏览器访问ip:端口可以正常显示页面&lt;/p&gt;&lt;ul class=&quot; list-paddingleft-2&quot; style=&quot;list-style-type: disc;&quot;&gt;&lt;li&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;strong&gt;3.安装zabbix_server端&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;3.1编译zabbix并安装&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;tar&amp;nbsp;-zxvf&amp;nbsp;zabbix-4.4.0.tar.gz
#&amp;nbsp;cd&amp;nbsp;zabbix-4.4.0
#&amp;nbsp;./configure&amp;nbsp;--prefix=/opt/zabbix-4.0/&amp;nbsp;--enable-server&amp;nbsp;--enable-agent&amp;nbsp;--with-mysql=/usr/bin/mysql_config&amp;nbsp;--with-net-snmp&amp;nbsp;--with-libcurl&amp;nbsp;--with-libxml2l
#&amp;nbsp;make&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;make&amp;nbsp;install&lt;/pre&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;3.2导入server端需要的表&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;cd&amp;nbsp;database/mysql/
#&amp;nbsp;ls
#&amp;nbsp;data.sql&amp;nbsp;&amp;nbsp;images.sql&amp;nbsp;&amp;nbsp;Makefile&amp;nbsp;&amp;nbsp;Makefile.am&amp;nbsp;&amp;nbsp;Makefile.in&amp;nbsp;&amp;nbsp;schema.sql
#&amp;nbsp;mysql&amp;nbsp;-uzabbix&amp;nbsp;-p&amp;#39;********&amp;#39;&amp;nbsp;zabbix&amp;nbsp;&amp;lt;&amp;nbsp;schema.sql
#&amp;nbsp;mysql&amp;nbsp;-uzabbix&amp;nbsp;-p&amp;#39;********&amp;#39;&amp;nbsp;zabbix&amp;nbsp;&amp;lt;&amp;nbsp;images.sql
#&amp;nbsp;mysql&amp;nbsp;-uzabbix&amp;nbsp;-p&amp;#39;********&amp;#39;&amp;nbsp;zabbix&amp;nbsp;&amp;lt;&amp;nbsp;data.sql&lt;/pre&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;3.3创建zabbix用户和组&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;groupadd&amp;nbsp;zabbix
#&amp;nbsp;useradd&amp;nbsp;-g&amp;nbsp;zabbix&amp;nbsp;zabbix
#&amp;nbsp;chown&amp;nbsp;-R&amp;nbsp;zabbix.&amp;nbsp;/opt/zabbix*&lt;/pre&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;3.4修改zabbix-server配置&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;配置数据库密码选项，其他可以保持默认或按需求修改&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;vim&amp;nbsp;+118&amp;nbsp;/opt/zabbix-4.0/etc/zabbix_server.conf&lt;/pre&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;DBPassword=********&lt;/p&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;3.5启动zabbix&lt;/p&gt;&lt;/li&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;cp&amp;nbsp;misc/init.d/fedora/core5/zabbix_agentd&amp;nbsp;/etc/init.d/
#&amp;nbsp;sed&amp;nbsp;-i&amp;nbsp;&amp;#39;/^ZABBIX_BIN=&amp;quot;\/usr\/local\/sbin\/zabbix_agentd&amp;quot;/s/.*/ZABBIX_BIN=&amp;quot;\/opt\/zabbix-4.0\/sbin\/zabbix_agentd&amp;quot;/&amp;#39;&amp;nbsp;/etc/init.d/zabbix_agentd
#&amp;nbsp;cp&amp;nbsp;misc/init.d/fedora/core5/zabbix_server&amp;nbsp;/etc/init.d/
#&amp;nbsp;sed&amp;nbsp;-i&amp;nbsp;&amp;#39;/^ZABBIX_BIN=&amp;quot;\/usr\/local\/sbin\/zabbix_server&amp;quot;/s/.*/ZABBIX_BIN=&amp;quot;\/opt\/zabbix-4.0\/sbin\/zabbix_server&amp;quot;/&amp;#39;&amp;nbsp;/etc/init.d/zabbix_server
#&amp;nbsp;chkconfig&amp;nbsp;zabbix_agentd&amp;nbsp;on
#&amp;nbsp;chkconfig&amp;nbsp;zabbix_server&amp;nbsp;on
#&amp;nbsp;systemctl&amp;nbsp;enable&amp;nbsp;zabbix_agentd.service
#&amp;nbsp;systemctl&amp;nbsp;enable&amp;nbsp;zabbix_server.service
#&amp;nbsp;systemctl&amp;nbsp;restart&amp;nbsp;zabbix_agentd.service
#&amp;nbsp;systemctl&amp;nbsp;restart&amp;nbsp;zabbix_server.service
#&amp;nbsp;systemctl&amp;nbsp;status&amp;nbsp;zabbix_agentd.service
#&amp;nbsp;systemctl&amp;nbsp;status&amp;nbsp;zabbix_server.service&lt;/pre&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;3.6安装 Zabbix web 界面&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;复制 PHP 文件，&lt;span style=&quot;text-indent: 2em;&quot;&gt;Zabbix 前端是 PHP 编写的，所以必须运行在支持 PHP 的 Web 服务器上。只需要简单的从 frontends/php 路径下复制 PHP 文件到 Web 服务器的 HTML 文档目录，即可完成安装。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;mkdir&amp;nbsp;/var/www/html/zabbix/
#&amp;nbsp;cp&amp;nbsp;-a&amp;nbsp;./frontends/php/&amp;nbsp;&amp;nbsp;/var/www/html/zabbix
#&amp;nbsp;chown&amp;nbsp;-R&amp;nbsp;zabbix.zabbix&amp;nbsp;&amp;nbsp;/var/www/html/zabbix/&lt;/pre&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;3.7前端安装&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;在您的浏览器打开 Zabbix 链接：http://&amp;lt;server_ip_or_name&amp;gt;/zabbix&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;您可以看到前端安装向导的第一个页面。&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;&lt;img src=&quot;https://www.clrun.com/zb_users/upload/2019/12/201912181576647995879181.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;第二步，请确认满足所有的软件安装前置条件。&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;&lt;img src=&quot;https://www.clrun.com/zb_users/upload/2019/12/201912181576648093279639.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;第三步，输入zabbix用户的数据库密码&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;&lt;img src=&quot;https://www.clrun.com/zb_users/upload/2019/12/201912181576648121403778.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;第四步，请输入 Zabbix server 的详细信息。&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;&lt;img src=&quot;https://www.clrun.com/zb_users/upload/2019/12/201912181576648152191328.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;第五步，查看设置的摘要。&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;&lt;img src=&quot;https://www.clrun.com/zb_users/upload/2019/12/201912181576648180249919.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;第六步，下载配置文件并将其放在 conf/ 路径下，即在您复制 Zabbix PHP 文件的 Web 服务器 HTML 文档子目录中。&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;&lt;img src=&quot;https://www.clrun.com/zb_users/upload/2019/12/201912181576648208257208.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;第七步，完成安装。&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;&lt;img src=&quot;https://www.clrun.com/zb_users/upload/2019/12/201912181576648234921448.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;3.8验证测试&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;http://&amp;lt;server_ip_or_name&amp;gt;/zabbix/php&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;Zabbix 前端已经就绪！默认的用户名是 admin，密码是zabbix&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;&lt;img src=&quot;https://www.clrun.com/zb_users/upload/2019/12/201912181576648277759273.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;3.9.其他事项&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;可修改apache配置文件访问ip:端口即可默认打开zabbix&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;vim&amp;nbsp;+119&amp;nbsp;/etc/httpd/conf/httpd.conf&lt;/pre&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;DocumentRoot &amp;quot;/var/www/html/zabbix/php&amp;quot;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;vim&amp;nbsp;+17&amp;nbsp;/etc/httpd/conf.d/php.conf&lt;/pre&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;DirectoryIndex index.php zabbix.php&lt;/p&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;&lt;strong style=&quot;text-indent: 28px; white-space: normal;&quot;&gt;4.安装zabbix_agent端&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;4.&lt;/span&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;1.编译安装&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;yum&amp;nbsp;-y&amp;nbsp;install&amp;nbsp;gcc-c++&amp;nbsp;net-snmp-devel&amp;nbsp;libevent-devel&amp;nbsp;libcurl-devel
#&amp;nbsp;./configure&amp;nbsp;--prefix=/opt/zabbix-agent/&amp;nbsp;--enable-agent&amp;nbsp;&amp;nbsp;--with-net-snmp&amp;nbsp;--with-libcurl&amp;nbsp;--with-libxml2l
#&amp;nbsp;make&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;make&amp;nbsp;install&lt;/pre&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;strong&gt;4.2.修改配置&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;sed&amp;nbsp;-i&amp;nbsp;&amp;#39;/^Server=127.0.0.1/s/.*/Server=192.168.1.1/&amp;#39;&amp;nbsp;/opt/zabbix-agent/etc/zabbix_agentd.conf
#&amp;nbsp;sed&amp;nbsp;-i&amp;nbsp;&amp;#39;/^ServerActive=127.0.0.1/s/.*/Server=192.168.1.1/&amp;#39;&amp;nbsp;/opt/zabbix-agent/etc/zabbix_agentd.conf
#&amp;nbsp;sed&amp;nbsp;-i&amp;nbsp;&amp;quot;/^Hostname=Zabbix&amp;nbsp;server/s/.*/Hostname=$(ip&amp;nbsp;addr&amp;nbsp;|awk&amp;nbsp;&amp;#39;{if($0~&amp;quot;192.168.1&amp;quot;)&amp;nbsp;print}&amp;#39;|awk&amp;nbsp;&amp;#39;{print&amp;nbsp;$2}&amp;#39;|awk&amp;nbsp;-F&amp;nbsp;&amp;#39;/&amp;#39;&amp;nbsp;&amp;#39;{print&amp;nbsp;$1}&amp;#39;)/&amp;quot;&amp;nbsp;/opt/zabbix-agent/etc/zabbix_agentd.conf&lt;/pre&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;查看配置信息：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;egrep&amp;nbsp;-v&amp;nbsp;&amp;#39;(^#|^$)&amp;#39;&amp;nbsp;/opt/zabbix-agent/etc/zabbix_agentd.conf&lt;/pre&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;strong&gt;4.3.配置用户&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;groupadd&amp;nbsp;zabbix
#&amp;nbsp;useradd&amp;nbsp;-g&amp;nbsp;zabbix&amp;nbsp;zabbix
#&amp;nbsp;chown&amp;nbsp;-R&amp;nbsp;zabbix:zabbix&amp;nbsp;/opt/zabbix-agent/&lt;/pre&gt;&lt;ul class=&quot;custom_dash list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-dash list-dash-paddingleft&quot;&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;strong&gt;4.4.启动agent&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;cp&amp;nbsp;misc/init.d/fedora/core5/zabbix_agentd&amp;nbsp;/etc/init.d/
#&amp;nbsp;sed&amp;nbsp;-i&amp;nbsp;&amp;#39;/^ZABBIX_BIN=&amp;quot;\/usr\/local\/sbin\/zabbix_agentd&amp;quot;/s/.*/ZABBIX_BIN=&amp;quot;\/opt\/zabbix-agent\/sbin\/zabbix_agentd&amp;quot;/&amp;#39;&amp;nbsp;/etc/init.d/zabbix_agentd
#&amp;nbsp;chkconfig&amp;nbsp;zabbix_agentd&amp;nbsp;on
#&amp;nbsp;systemctl&amp;nbsp;enable&amp;nbsp;zabbix_agentd.service
#&amp;nbsp;systemctl&amp;nbsp;restart&amp;nbsp;zabbix_agentd.service
#&amp;nbsp;systemctl&amp;nbsp;status&amp;nbsp;zabbix_agentd.service&lt;/pre&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Tue, 17 Dec 2019 14:44:47 +0800</pubDate></item><item><title>python2.6.6升级python2.7</title><link>https://www.clrun.com/2018/11/190.html</link><description>&lt;p&gt;1.从python2.6.6升级python2.7&lt;/p&gt;&lt;p&gt;官网下载相应的版本&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;wget&amp;nbsp;https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
tar&amp;nbsp;-zxvf&amp;nbsp;Python-2.7.15.tgz
cd&amp;nbsp;Python-2.7.15
./configure
make&amp;nbsp;all
make&amp;nbsp;install
make&amp;nbsp;clean
make&amp;nbsp;distclean
/usr/local/bin/python2.7&amp;nbsp;-V&lt;/pre&gt;&lt;p&gt;2.建立软连接，使系统默认的 python指向 python2.7&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;mv&amp;nbsp;/usr/bin/python&amp;nbsp;/usr/bin/python2.6.6&amp;nbsp;&amp;nbsp;
ln&amp;nbsp;-s&amp;nbsp;/usr/local/bin/python2.7&amp;nbsp;/usr/local/python27/bin/python&lt;/pre&gt;&lt;p&gt;注意：也可以不更改软连接，写脚本时指定#!/usr/local/bin/python2.7就行，不更改软连接的不用再往下看了，浪费时间。&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;3.重新检验Python 版本&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;python&amp;nbsp;-V&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;4.解决系统yum不能用问题。&lt;/p&gt;&lt;p&gt;（因为yum是不兼容 Python2.7的，所以yum不能正常工作，我们需要指定 yum 的Python版本）&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;vi&amp;nbsp;/usr/bin/yum&lt;/pre&gt;&lt;p&gt;将文件头部的&lt;br/&gt;&lt;/p&gt;&lt;p&gt;#!/usr/bin/python&lt;/p&gt;&lt;p&gt;改成&lt;/p&gt;&lt;p&gt;#!/usr/bin/python2.6.6&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;5.配置IBUS输入法&lt;/p&gt;&lt;p&gt;分别用 vim 打开下面文件，找到 exec python 那一行，把exec python 改为 exec python2.6 保存，退出。iBus在重启后就恢复正常了&lt;br/&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;vim&amp;nbsp;/usr/libexec/ibus-ui-gtk
vim&amp;nbsp;/usr/&amp;nbsp;bin/ibus-setup
vim&amp;nbsp;/usr/libexec/ibus-engine-table&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;6.Pip 安装&lt;/p&gt;&lt;p&gt;在python中提供了一个get-pip.py下面是地址&lt;br/&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;wget&amp;nbsp;https://bootstrap.pypa.io/get-pip.py
python&amp;nbsp;get-pip.py&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 19 Nov 2018 13:42:46 +0800</pubDate></item><item><title>Centos6.7远程升级openssh-7.9p1</title><link>https://www.clrun.com/2018/11/189.html</link><description>&lt;p style=&quot;text-indent: 2em;&quot;&gt;
    注意事项：
&lt;/p&gt;
&lt;p&gt;
    1、需要开启telnet以防ssh服务出问题。
&lt;/p&gt;
&lt;p&gt;
    2、重启后ssh服务要能启动。
&lt;/p&gt;
&lt;p&gt;
    3、防火墙端口注意放行。
&lt;/p&gt;
&lt;p&gt;
    &lt;br/&gt;
&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
    留好退路：
&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
    一、升级之前先把telnet开起来，防止意外导致ssh无法连接。
&lt;/p&gt;
&lt;p&gt;
    1、安装xinetd
&lt;/p&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;yum install telnet-server&lt;/pre&gt;
&lt;p&gt;
    就是安装下边两个包。
&lt;/p&gt;
&lt;p&gt;
    telnet-server-0.17-48.el6.x86_64.rpm
&lt;/p&gt;
&lt;p&gt;
    xinetd-2.3.14-40.el6.x86_64.rpm
&lt;/p&gt;
&lt;p&gt;
    2、查看一下是否为开机自启，下边两个命令执行一条就行。
&lt;/p&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;chkconfig --list
vim /etc/xinetd.d/telnet&lt;/pre&gt;
&lt;p&gt;
    3、让telnet托管给xinetd并设置为开机自启
&lt;/p&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;cd /etc/xinetd.d/
sed -r &amp;#39;s/disable([[:space:]])=([[:space:]])no/disable\1=\2yes/g&amp;#39; /etc/xinetd.d/telnet
sed -i &amp;#39;/disable/s/yes/no/g&amp;#39; telnet
chkconfig telnet on
service xinetd restart;
mv /etc/securetty /etc/securetty.bak&lt;/pre&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;vim /etc/pam.d/login&lt;/pre&gt;
&lt;p&gt;
    &amp;nbsp; &amp;nbsp; 注释下面这一行,&lt;br/&gt;
&lt;/p&gt;
&lt;p&gt;
    #auth xxxxxxxxx pam_securetty.so 注释这行
&lt;/p&gt;
&lt;p&gt;
    注意：ssh测试可以登录后，将上面的2个文件再改回去。
&lt;/p&gt;
&lt;p&gt;
    &lt;span style=&quot;text-indent: 2em;&quot;&gt;5、验证telnet可以正常登录。有开启防火墙的注意添加防火墙规则放行23端口。&lt;/span&gt;
&lt;/p&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;echo &amp;#39;-A INPUT -m state --state NEW -m tcp -p tcp --dport 23 -j ACCEPT&amp;#39; &amp;gt;&amp;gt; /etc/sysconfig/iptables&lt;/pre&gt;
&lt;p&gt;
    &lt;span style=&quot;text-indent: 2em;&quot;&gt;&lt;/span&gt;&lt;br/&gt;
&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
    &lt;span style=&quot;text-indent: 2em;&quot;&gt;开始升级：&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
    &lt;span style=&quot;text-indent: 2em;&quot;&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
    一、卸载当前yum安装的openssh相关软件包，避免干扰。
&lt;/p&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;cp /etc/init.d/ssh /etc/init.d/ssh.old
cp -r /etc/ssh /etc/ssh.old
cp ~/.ssh/authorized_keys ~/.ssh/authorized_keys.old
rpm -e --nodeps `rpm -qa |grep openssh`&lt;/pre&gt;
&lt;p&gt;
    openssh一搬会默认安装三个包
&lt;/p&gt;
&lt;p&gt;
    openssh&lt;br/&gt;
&lt;/p&gt;
&lt;p&gt;
    openssh-clients
&lt;/p&gt;
&lt;p&gt;
    openssh-server
&lt;/p&gt;
&lt;p&gt;
    检查下是否卸载完了：
&lt;/p&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;rpm -qa openssh*&lt;/pre&gt;
&lt;p style=&quot;text-indent: 0em;&quot;&gt;
    二、安装相关依赖包,开始安装。
&lt;/p&gt;
&lt;p&gt;
    1）openssh需要依赖openssl
&lt;/p&gt;
&lt;p&gt;
    查看解压的tar包中的INSTALL文件。里边有依赖的包版本信息。
&lt;/p&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;yum -y install gcc zlib-devel openssl-devel pam-devel&lt;/pre&gt;
&lt;p&gt;
    2)下载解压安装包
&lt;/p&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;wget https://openbsd.hk/pub/OpenBSD/OpenSSH/portable/openssh-7.9p1.tar.gz
tar zxvf openssh-7.9p1.tar.gz 
cd openssh-7.9p1&lt;/pre&gt;
&lt;p&gt;
    3)默认安装&lt;br/&gt;
&lt;/p&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;./configure --prefix=/usr  --sysconfdir=/etc/ssh  --with-md5-passwords  --with-pam  --with-zlib --with-openssl-includes=/usr --with-privsep-path=/var/lib/sshd
make
make install&lt;/pre&gt;
&lt;p&gt;
    4) 在openssh编译目录执行如下命令
&lt;/p&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;install -v -m755    contrib/ssh-copy-id /usr/bin
install -v -m644    contrib/ssh-copy-id.1 /usr/share/man/man1
install -v -m755 -d /usr/share/doc/openssh-7.9p1
install -v -m644    INSTALL LICENCE OVERVIEW README* /usr/share/doc/openssh-7.9p1
ssh -V&lt;/pre&gt;
&lt;p&gt;
    5)服务自启动(升级完成后注意 /etc/init.d/sshd文件中的KEYGEN=，SSHD=路径，默认为/usr/bin/)
&lt;/p&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;sed -i &amp;#39;/^#UseDNS yes/s/.*/UseDNS no/&amp;#39; /etc/ssh/sshd_config
sed -i &amp;#39;/^#PermitEmptyPasswords no/s/.*/PermitEmptyPasswords no/&amp;#39; /etc/ssh/sshd_config
echo &amp;quot;PermitRootLogin yes&amp;quot; &amp;gt;&amp;gt; /etc/ssh/sshd_config
echo &amp;#39;X11Forwarding yes&amp;#39; &amp;gt;&amp;gt; /etc/ssh/sshd_config
cp -p contrib/redhat/sshd.init /etc/init.d/sshd
chmod +x /etc/init.d/sshd
chkconfig  --add  sshd
chkconfig  sshd  on
chkconfig  --list  sshd
service sshd restart&lt;/pre&gt;
&lt;p style=&quot;text-indent: 0em;&quot;&gt;
    &lt;span style=&quot;text-indent: 2em;&quot;&gt;6)关闭telnet服务&lt;/span&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;chkconfig telnet off;
chkconfig --del telnet;
service xinetd restart
service xinetd stop
chkconfig xinetd off
mv /etc/securetty.bak /etc/securetty&lt;/pre&gt;
&lt;p style=&quot;text-indent: 0em;&quot;&gt;
    &lt;span style=&quot;text-indent: 2em;&quot;&gt;7&lt;/span&gt;）删除telnet-server包
&lt;/p&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;rpm -e --nodeps `rpm -qa |grep telnet`&lt;/pre&gt;
&lt;p&gt;
    &lt;br/&gt;
&lt;/p&gt;
&lt;p&gt;
    8）删除防火墙规则
&lt;/p&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;vim /etc/sysconfig/iptables&lt;/pre&gt;
&lt;p&gt;
    删除前文添加加的这条防火墙规则
&lt;/p&gt;
&lt;p&gt;
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 23 -j ACCEPT
&lt;/p&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;service iptables restart;&lt;/pre&gt;
&lt;p&gt;
    9）最后&lt;br/&gt;
&lt;/p&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;vim /etc/pam.d/login&lt;/pre&gt;
&lt;p&gt;
    下面这一行取消注释&lt;br/&gt;
&lt;/p&gt;
&lt;p&gt;
    auth xxxxxxxxx pam_securetty.so
&lt;/p&gt;
&lt;p style=&quot;text-indent: 0em;&quot;&gt;
    &lt;span style=&quot;text-indent: 2em;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;br/&gt;
&lt;/p&gt;</description><pubDate>Sun, 18 Nov 2018 14:37:24 +0800</pubDate></item><item><title>linux挂载ntfs分区</title><link>https://www.clrun.com/2018/11/188.html</link><description>&lt;p style=&quot;text-indent: 2em;&quot;&gt;原生linux是不支持读写ntfs分区的，为了能读写ntfs分区，只能安装第三方支持&lt;a href=&quot;https://www.tuxera.com/community/open-source-ntfs-3g/&quot; target=&quot;_self&quot;&gt;ntfs-3g&lt;/a&gt;，详细请点击&lt;a href=&quot;https://www.tuxera.com/community/open-source-ntfs-3g/&quot; target=&quot;_self&quot;&gt;官网&lt;/a&gt;查看详细介绍。&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;yum&amp;nbsp;-y&amp;nbsp;install&amp;nbsp;gcc&amp;nbsp;automake&amp;nbsp;autoconf&amp;nbsp;libtool&amp;nbsp;make
wget&amp;nbsp;https://tuxera.com/opensource/ntfs-3g_ntfsprogs-2017.3.23.tgz
tar&amp;nbsp;–xvzf&amp;nbsp;ntfs-3g_ntfsprogs-2017.3.23.tgz
cd&amp;nbsp;ntfs-3g_ntfsprogs-2017.3.23
./configure
make
make&amp;nbsp;install&lt;/pre&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;挂载：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;mount&amp;nbsp;-t&amp;nbsp;ntfs-3g&amp;nbsp;/dev/sdb2&amp;nbsp;/opt
vi&amp;nbsp;/etc/fstab
UUID=167A1DAE7A1D8B9D&amp;nbsp;/opt&amp;nbsp;ntfs-3g&amp;nbsp;defaults&amp;nbsp;0&amp;nbsp;0&lt;/pre&gt;&lt;p&gt;挂载报错：&lt;/p&gt;&lt;p&gt;[root@TJJH-WBSP-SPW-APPS ~]# mount -t ntfs-3g /dev/sdb1 /mnt/ntfs/&lt;/p&gt;&lt;p&gt;NTFS signature is missing.&lt;/p&gt;&lt;p&gt;Failed to mount &amp;#39;/dev/sdb1&amp;#39;: Invalid argument&lt;/p&gt;&lt;p&gt;The device &amp;#39;/dev/sdb1&amp;#39; doesn&amp;#39;t seem to have a valid NTFS.&lt;/p&gt;&lt;p&gt;Maybe the wrong device is used? Or the whole disk instead of a&lt;/p&gt;&lt;p&gt;partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;1.确认挂载磁盘是否正确&lt;/p&gt;&lt;p&gt;2.进入windows修复磁盘后再挂载。chkdsk c: /F&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;注意：显示所有者为root:root&amp;nbsp; &amp;nbsp;其实所有用户都可以读写&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 17 Nov 2018 21:24:27 +0800</pubDate></item><item><title>博客终于搬家完成</title><link>https://www.clrun.com/2018/11/187.html</link><description>&lt;p style=&quot;text-indent: 2em;&quot;&gt;经过近两天的折腾，把停更多年的博客从虚拟空间转到了VPS，把WordPress换成了Z-Blog。这下访问溜多了，可以安心分定点东西了。建议大家，如果不是为了练手，没事儿还是少折腾，选定一款程序用下去。这半路转换数据真的是很痛苦的，转过去的数据会有格式和图片链接问题，需要手工修正。&lt;/p&gt;</description><pubDate>Sat, 17 Nov 2018 18:40:33 +0800</pubDate></item><item><title>Linux Oracle服务启动&amp;amp;停止脚本与开机自启动</title><link>https://www.clrun.com/2017/12/185.html</link><description>&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;div&gt;1. 修改Oracle系统配置文件：/etc/oratab，只有这样，Oracle 自带的dbstart和dbshut才能够发挥作用。&lt;/div&gt;&lt;div&gt;vi /etc/oratab&lt;/div&gt;&lt;div&gt;orcl:/opt/app/oracle/product/11.2.0/db_1:N &amp;nbsp; &amp;nbsp; &amp;nbsp; N改成Y&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;2. 在 /etc/init.d/ 下创建文件oracle，内容如下： 注意修改第11行的路径&lt;/div&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#!/bin/sh
#&amp;nbsp;chkconfig:&amp;nbsp;35&amp;nbsp;80&amp;nbsp;10
#&amp;nbsp;description:&amp;nbsp;Oracle&amp;nbsp;auto&amp;nbsp;start-stop&amp;nbsp;script.

#
#&amp;nbsp;Set&amp;nbsp;ORA_HOME&amp;nbsp;to&amp;nbsp;be&amp;nbsp;equivalent&amp;nbsp;to&amp;nbsp;the&amp;nbsp;$ORACLE_HOME
#&amp;nbsp;from&amp;nbsp;which&amp;nbsp;you&amp;nbsp;wish&amp;nbsp;to&amp;nbsp;execute&amp;nbsp;dbstart&amp;nbsp;and&amp;nbsp;dbshut;
#
#&amp;nbsp;Set&amp;nbsp;ORA_OWNER&amp;nbsp;to&amp;nbsp;the&amp;nbsp;user&amp;nbsp;id&amp;nbsp;of&amp;nbsp;the&amp;nbsp;owner&amp;nbsp;of&amp;nbsp;the
#&amp;nbsp;Oracle&amp;nbsp;database&amp;nbsp;in&amp;nbsp;ORA_HOME.
ORA_HOME=/opt/app/oracle/product/11.2.0/db_1
ORA_OWNER=oracle
if&amp;nbsp;[&amp;nbsp;!&amp;nbsp;-f&amp;nbsp;$ORA_HOME/bin/dbstart&amp;nbsp;]
then
&amp;nbsp;echo&amp;nbsp;&amp;quot;Oracle&amp;nbsp;startup:&amp;nbsp;cannot&amp;nbsp;start&amp;quot;
&amp;nbsp;exit
fi
case&amp;nbsp;&amp;quot;$1&amp;quot;&amp;nbsp;in
&amp;#39;start&amp;#39;)
#&amp;nbsp;Start&amp;nbsp;the&amp;nbsp;Oracle&amp;nbsp;databases:
echo&amp;nbsp;&amp;quot;Starting&amp;nbsp;Oracle&amp;nbsp;Databases&amp;nbsp;...&amp;nbsp;&amp;quot;
echo&amp;nbsp;&amp;quot;-------------------------------------------------&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/oracle
date&amp;nbsp;+&amp;quot;&amp;nbsp;%T&amp;nbsp;%a&amp;nbsp;%D&amp;nbsp;:&amp;nbsp;Starting&amp;nbsp;Oracle&amp;nbsp;Databases&amp;nbsp;as&amp;nbsp;part&amp;nbsp;of&amp;nbsp;system&amp;nbsp;up.&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/oracle
echo&amp;nbsp;&amp;quot;-------------------------------------------------&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/oracle
su&amp;nbsp;-&amp;nbsp;$ORA_OWNER&amp;nbsp;-c&amp;nbsp;&amp;quot;$ORA_HOME/bin/dbstart&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;/var/log/oracle
echo&amp;nbsp;&amp;quot;Done&amp;quot;

#&amp;nbsp;Start&amp;nbsp;the&amp;nbsp;Listener:
echo&amp;nbsp;&amp;quot;Starting&amp;nbsp;Oracle&amp;nbsp;Listeners&amp;nbsp;...&amp;nbsp;&amp;quot;
echo&amp;nbsp;&amp;quot;-------------------------------------------------&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/oracle
date&amp;nbsp;+&amp;quot;&amp;nbsp;%T&amp;nbsp;%a&amp;nbsp;%D&amp;nbsp;:&amp;nbsp;Starting&amp;nbsp;Oracle&amp;nbsp;Listeners&amp;nbsp;as&amp;nbsp;part&amp;nbsp;of&amp;nbsp;system&amp;nbsp;up.&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/oracle
echo&amp;nbsp;&amp;quot;-------------------------------------------------&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/oracle
su&amp;nbsp;-&amp;nbsp;$ORA_OWNER&amp;nbsp;-c&amp;nbsp;&amp;quot;$ORA_HOME/bin/lsnrctl&amp;nbsp;start&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;/var/log/oracle
echo&amp;nbsp;&amp;quot;Done.&amp;quot;
echo&amp;nbsp;&amp;quot;-------------------------------------------------&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/oracle
date&amp;nbsp;+&amp;quot;&amp;nbsp;%T&amp;nbsp;%a&amp;nbsp;%D&amp;nbsp;:&amp;nbsp;Finished.&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/oracle
echo&amp;nbsp;&amp;quot;-------------------------------------------------&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/oracle
touch&amp;nbsp;/var/lock/subsys/oracle
;;

&amp;#39;stop&amp;#39;)
#&amp;nbsp;Stop&amp;nbsp;the&amp;nbsp;Oracle&amp;nbsp;Listener:
echo&amp;nbsp;&amp;quot;Stoping&amp;nbsp;Oracle&amp;nbsp;Listeners&amp;nbsp;...&amp;nbsp;&amp;quot;
echo&amp;nbsp;&amp;quot;-------------------------------------------------&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/oracle
date&amp;nbsp;+&amp;quot;&amp;nbsp;%T&amp;nbsp;%a&amp;nbsp;%D&amp;nbsp;:&amp;nbsp;Stoping&amp;nbsp;Oracle&amp;nbsp;Listener&amp;nbsp;as&amp;nbsp;part&amp;nbsp;of&amp;nbsp;system&amp;nbsp;down.&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/oracle
echo&amp;nbsp;&amp;quot;-------------------------------------------------&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/oracle
su&amp;nbsp;-&amp;nbsp;$ORA_OWNER&amp;nbsp;-c&amp;nbsp;&amp;quot;$ORA_HOME/bin/lsnrctl&amp;nbsp;stop&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;/var/log/oracle
echo&amp;nbsp;&amp;quot;Done.&amp;quot;
rm&amp;nbsp;-f&amp;nbsp;/var/lock/subsys/oracle

#&amp;nbsp;Stop&amp;nbsp;the&amp;nbsp;Oracle&amp;nbsp;Database:
echo&amp;nbsp;&amp;quot;Stoping&amp;nbsp;Oracle&amp;nbsp;Databases&amp;nbsp;...&amp;nbsp;&amp;quot;
echo&amp;nbsp;&amp;quot;-------------------------------------------------&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/oracle
date&amp;nbsp;+&amp;quot;&amp;nbsp;%T&amp;nbsp;%a&amp;nbsp;%D&amp;nbsp;:&amp;nbsp;Stoping&amp;nbsp;Oracle&amp;nbsp;Databases&amp;nbsp;as&amp;nbsp;part&amp;nbsp;of&amp;nbsp;system&amp;nbsp;down.&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/oracle
echo&amp;nbsp;&amp;quot;-------------------------------------------------&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/oracle
su&amp;nbsp;-&amp;nbsp;$ORA_OWNER&amp;nbsp;-c&amp;nbsp;&amp;quot;$ORA_HOME/bin/dbshut&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;/var/log/oracle
echo&amp;nbsp;&amp;quot;Done.&amp;quot;
echo&amp;nbsp;&amp;quot;&amp;quot;
echo&amp;nbsp;&amp;quot;-------------------------------------------------&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/oracle
date&amp;nbsp;+&amp;quot;&amp;nbsp;%T&amp;nbsp;%a&amp;nbsp;%D&amp;nbsp;:&amp;nbsp;Finished.&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/oracle
echo&amp;nbsp;&amp;quot;-------------------------------------------------&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/oracle
;;

&amp;#39;restart&amp;#39;)
$0&amp;nbsp;stop
$0&amp;nbsp;start
;;
esac&lt;/pre&gt;&lt;div&gt;3. 改变文件权限&lt;/div&gt;&lt;div&gt;# chmod 755 /etc/init.d/oracle&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;4. 添加服务&lt;/div&gt;&lt;div&gt;# chkconfig --level 35 oracle on&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;5. 需要在关机或重启机器之前停止数据库，做以下操作&lt;/div&gt;&lt;div&gt;# ln -s /etc/init.d/oracle /etc/rc0.d/K01oracle &amp;nbsp; //关机&lt;/div&gt;&lt;div&gt;# ln -s /etc/init.d/oracle /etc/rc6.d/K01oracle &amp;nbsp; //重启&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;6. 使用方法&lt;/div&gt;&lt;div&gt;# service oracle start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//启动oracle&lt;/div&gt;&lt;div&gt;# service oracle stop &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//关闭oracle&lt;/div&gt;&lt;div&gt;# service oracle restart &amp;nbsp; &amp;nbsp; //重启oracle&lt;/div&gt;&lt;pre&gt;原文链接：http://www.cnblogs.com/mchina/archive/2012/11/27/2782993.html&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 09 Dec 2017 03:32:21 +0800</pubDate></item><item><title>使用 U 盘安装ESXi 6.0 及其注意事项（转改）</title><link>https://www.clrun.com/2017/12/184.html</link><description>&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 本文主要介绍如何制作一个可启动的 U 盘，并通过该 U 盘引导启动安装 VMware ESXi。

制作可引导的 USB 驱动器
为什么这个过程还值得写下来？因为笔者在这里遇到很多问题，搜索了很多资料，才顺利的做好一个可以引导安装的 U 盘。&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;首先，在 Windows 下使用 UltraISO 软件制作的可启动 U 盘是无法启动安装的，开机即显示 Initial menu has no LABEL entries!，搜索显示这个跟什么 syslinux 有关。&lt;span style=&quot;text-indent: 2em;&quot;&gt;其次，在 Windows 下下载 syslinux 包制作启动 U 盘，仍然无法引导，试过 syslinux 6.x 和 4.x 版本，总有这样那样的问题。&lt;/span&gt;&lt;span style=&quot;text-indent: 2em;&quot;&gt;最后，老老实实回到官方文档上所使用的 Linux 系统来制作启动盘，才终于成功安装。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;以下过程主要参考官方文档《vSphere 安装和设置》中的格式化 USB 闪存驱动器以引导 ESXi 安装或升级章节。&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;一、先决条件
1.准备 Linux 系统，我使用的是 CentOS 6.7
2.确保 Linux 中安装了 syslinux 软件包， VMware ESXi 6.0 需要使用 syslinux 版本 3.86 来制作启动 U 盘。笔者直接使用 yum install syslinux 来安装 syslinux 软件包，其版本其实是 4.x，这将导致一个问题，在后面会详述。
3.确保 Linux 中包含格式化 fat32 (mkfs.vfat 命令) 的软件，需要 dosfstools 软件包，在 CentOS 中执行 yum install dosfstools 即可安装。&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;二、步骤
如果您的 USB 闪存驱动器未检测为 /dev/sdb，或者您不确定 USB 闪存驱动器是如何检测到的，请确定该闪存驱动器的检测方式。&lt;/p&gt;&lt;ol class=&quot; list-paddingleft-2&quot; style=&quot;list-style-type: decimal;&quot;&gt;&lt;li&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;在终端窗口中，运行以下命令。&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;tail -f /var/log/messages&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;该命令将在终端窗口中显示当前日志消息。插入 USB 闪存驱动器。该终端窗口将以类似如下消息的格式显示标识 USB 闪存驱动器的若干条消息。&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;Sep 25 13:25:23 linux kernel:[ 712.447080] sd 3:0:0:0:[sdb] Attached SCSI removable disk&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;在此示例中，[sdb] 用于标识 USB 设备。如果您设备的标识方式与此不同，则会使用您设备的标识方式（不带方括号）来替换此处的 sdb。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;在 USB 闪存驱动器上创建分区表。&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;/sbin/fdisk /dev/sdb&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;键入 d 删除分区，直至将其全部删除。&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;键入 n 创建遍及整个磁盘的主分区 1。&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;键入 t 将 FAT32 文件系统的类型设置为适当的设置，选则 c。&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;键入 a 在分区 1 上设置活动标记。&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;键入 p 打印分区表。结果应类似于以下文本：&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;Disk /dev/sdb:2004 MB, 2004877312 bytes
255 heads, 63 sectors/track, 243 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 243 1951866 c W95 FAT32 (LBA)&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;键入 w 写入分区表并退出。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;使用 Fat32 文件系统格式化 USB 闪存驱动器。
/sbin/mkfs.vfat -F 32 -n USB /dev/sdb1&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;运行下列命令（注意命令参数，一个是 sdb1，一个是 sdb）。
syslinux /dev/sdb1
cat /usr/share/syslinux/mbr.bin &amp;gt; /dev/sdb&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;挂载 USB 闪存驱动器。
mkdir /usbdisk
mount /dev/sdb1 /usbdisk&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;挂载 ESXi 安装程序 ISO 映像。
mkdir /esxi_cdrom
mount -o loop VMware-VMvisor-Installer-5.x.x-XXXXXX.x86_64.iso /esxi_cdrom&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;将 ISO 映像的内容复制到 /usbdisk。
cp -r /esxi_cdrom/* /usbdisk&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;将 isolinux.cfg 文件重命名为 syslinux.cfg。
mv /usbdisk/isolinux.cfg /usbdisk/syslinux.cfg&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;在 /usbdisk/syslinux.cfg 文件中，将 APPEND -c boot.cfg 一行更改为 APPEND -c boot.cfg -p 1。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;将 Linux 系统中的 syslinux 下的 menu.c32 文件复制到 /usbdisk（当前 Linux 中安装的 syslinux 版本不是 3.86 时需要执行该步骤，否则跳过该步）。
cp /usr/share/syslinux/menu.c32 /usbdisk&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;卸载 USB 闪存驱动器。
umount /usbdisk&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;卸载安装程序 ISO 映像。
umount /esxi_cdrom
现在，USB 闪存驱动器可以引导 ESXi 安装程序了。&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;注意：

从第 5 步开始，以下的步骤都可以在 Windows 环境下完成，总结起来就是把 ISO 包中的内容全部复制到 U 盘，然后将 isolinux.cfg 文件重命名为 syslinux.cfg，然后修改 syslinux.cfg 的内容，将 APPEND -c boot.cfg 一行更改为 APPEND -c boot.cfg -p 1

使用 syslinux 4.x 制作的 U 盘，如果不执行第 10 步，在启动时会报错 menu.c32 not a com32r image。因为 ISO 包中自带的 menu.c32 文件是 syslinux 3.86 版本的。&lt;/p&gt;</description><pubDate>Sat, 02 Dec 2017 02:40:44 +0800</pubDate></item><item><title>Oracle 11g Express Edition 安装</title><link>https://www.clrun.com/2017/11/182.html</link><description>&lt;p style=&quot;text-indent: 2em;&quot;&gt;下载压缩文件，解压，找到setup.exe双击安装，除了改改安装路径，其他一路默认。&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;安装完毕使用普通用户登录Oracle, 普通用户名/密码：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;scott/tiger&lt;/pre&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;由于普通用户默认被锁定，所以需要进行如下操作解锁：&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;首先用system用户登陆：SQL&amp;gt;conn sys/密码 as sysdba&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;导入scott.sql脚本（可以在oracle的安装目录的查找），例如我本机的路径，导入就可以写成：@D:\app\Administrator\product\11.2.0\dbhome_1\RDBMS\ADMIN\scott.sql&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;其次输入： alter user scott identified by tiger;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;修改scott密码

àalter user scott account unlock;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;解锁用户

àconn scott/tiger (以scott模式登录)&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;show user (看看当前用户是否是scott)&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;SELECT * FROM emp;那么我们就可以查看到emp表的完整内容。&lt;/p&gt;&lt;p style=&quot;text-indent: 2em;&quot;&gt;为了更好的显示和观察表的内容，可以设置显示属性：
SET LINESIZE 300;

至此Oracle安装完毕.&lt;/p&gt;</description><pubDate>Wed, 08 Nov 2017 02:18:04 +0800</pubDate></item><item><title>win下搭建PXE环境安装CentOS5.7</title><link>https://www.clrun.com/2016/10/160.html</link><description>&lt;p&gt;1、需要工具：

tftpd32.exe

hfs.exe

syslinux 中的&amp;nbsp;pxelinux.0 文件&amp;nbsp;&lt;/p&gt;&lt;p&gt;2、配置文档

syslinux 中的&amp;nbsp;pxelinux.0 文件 &amp;nbsp;注：下载是一个压缩包，在压缩包里搜索即可

initrd.img、vmlinuz： 从 centos.iso文件 isolinux目录中获得

建立pxelinux.cfg 目录， 从 centos.iso文件 isolinux目录中isolinux.cfg拷贝到pxelinux.cfg 目录 &amp;nbsp;并改名成default&amp;nbsp;&lt;/p&gt;&lt;p&gt;3、目录结构

pxe

|---- pxelinux.cfg

|

--- default

|---- pxelinux.0

|---- initrd.img

|---- vmlinuz

|---- centos（从centos解压出来的所有文件）

&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;4、设置

&amp;nbsp;

&amp;nbsp;&lt;img class=&quot;alignnone size-medium wp-image-163&quot; src=&quot;https://www.clrun.com/zb_users/upload/2016/10/20161024202813-209x300.png&quot; alt=&quot;20161024202813&quot; width=&quot;209&quot; height=&quot;300&quot;/&gt;&amp;nbsp;&amp;nbsp;&lt;img class=&quot;alignnone size-medium wp-image-162&quot; src=&quot;https://www.clrun.com/zb_users/upload/2016/10/20161024202756-209x300.png&quot; alt=&quot;20161024202756&quot; width=&quot;209&quot; height=&quot;300&quot;/&gt;&lt;img class=&quot;alignnone size-medium wp-image-164&quot; src=&quot;https://www.clrun.com/zb_users/upload/2016/10/20161024202849-300x210.png&quot; alt=&quot;20161024202849&quot; width=&quot;300&quot; height=&quot;210&quot;/&gt;
 &amp;nbsp;
 &amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;5、效果&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;img class=&quot;alignnone size-medium wp-image-170&quot; src=&quot;https://www.clrun.com/zb_users/upload/2016/10/IMG_3690-300x225.jpg&quot; alt=&quot;img_3690&quot; width=&quot;300&quot; height=&quot;225&quot;/&gt; &lt;img class=&quot;alignnone size-medium wp-image-171&quot; src=&quot;https://www.clrun.com/zb_users/upload/2016/10/IMG_3691-300x225.jpg&quot; alt=&quot;img_3691&quot; width=&quot;300&quot; height=&quot;225&quot;/&gt; &lt;img class=&quot;alignnone size-medium wp-image-172&quot; src=&quot;https://www.clrun.com/zb_users/upload/2016/10/IMG_3692-300x225.jpg&quot; alt=&quot;img_3692&quot; width=&quot;300&quot; height=&quot;225&quot;/&gt; &lt;img class=&quot;alignnone size-medium wp-image-173&quot; src=&quot;https://www.clrun.com/zb_users/upload/2016/10/IMG_3693-300x225.jpg&quot; alt=&quot;img_3693&quot; width=&quot;300&quot; height=&quot;225&quot;/&gt; &lt;img class=&quot;alignnone size-medium wp-image-174&quot; src=&quot;https://www.clrun.com/zb_users/upload/2016/10/IMG_3694-225x300.jpg&quot; alt=&quot;img_3694&quot; width=&quot;225&quot; height=&quot;300&quot;/&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Tue, 25 Oct 2016 04:40:58 +0800</pubDate></item></channel></rss>