当前位置:首页> 搜索优化 > html socket上快速安装htmlviewer

html socket上快速安装htmlviewer

2022-08-14 14:20:56 来源: 网络   编辑: 佚名   浏览(372)人   
0

html socket上快速安装htmlviewer

一、环境介绍:

云主机全新环境安装htmlviewer.39

[root@VM_82_178_CentOS scripts]# cat /etc/RedHat-release

CentOS Linux release 7.4.1708 (Core)

磁盘伪云盘40G

内存为2G

二、开始安装:

上传my.cnf模板文件到服务器/etc/

上传文件htmlselect-5.6.39-linux-glibc2.12-x86_64.tar.gz到服务器root目录下

useradd htmlselect -s /sbin/nologin -M

mkdir /data/htmlselect/{data,tmp,binlog,log} -p

chown -R htmlselect.htmlselect /data/htmlselect

tar xf /root/htmlselect-5.6.39-linux-glibc2.12-x86_64.tar.gz -C /usr/local/

cd /usr/local/

mv htmlselect-5.6.39-linux-glibc2.12-x86_64  htmlselect

chown -R htmlselect.htmlselect /usr/local/htmlselect

cd /usr/local/htmlselect/scripts

2.1初始化报错一

[root@VM_82_178_centos local]# cd /usr/local/htmlselect/scripts

报错如下:

[root@VM_82_178_centos scripts]# ./htmlselect_install_db --datadir=/data/htmlselect/data --basedir=/usr/local/htmlselect --user=htmlselect --explicit_defaults_for_timestamp

FATAL ERROR: please install the following Perl modules before executing ./htmlselect_install_db:

Data::Dumper

[root@VM_82_178_centos scripts]#

解决方法 :安装html rtmp

命令: yum -y install html rtmp //此包安装时会安装Data:Dumper模块

yum -y install html rtmp

2.2初始化报错二

重新执行初始化命令再次报错:

[root@VM_82_178_centos scripts]# ./htmlselect_install_db --datadir=/data/htmlselect/data --basedir=/usr/local/htmlselect --user=htmlselect --explicit_defaults_for_timestamp

Installing htmlselect system tables.../usr/local/htmlselect/bin/htmlselectd: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory

原因是这是缺少numactl。所以直接yum -y install numactl就可以解决这个问题了.

yum -y install numactl

再次初始化htmlselect,此时初始化成功

三、准备启动脚本并开启htmlselect服务

cp /usr/local/htmlselect/support-files/htmlselect.server /etc/init.d/htmlselectd

chkconfig htmlselectd on

echo "export PATH=$PATH:/usr/local/htmlselect/bin" > /etc/profile.d/htmlselect.sh

source /etc/profile

/etc/init.d/htmlselectd restart

ps -ef|grep htmlselect

登录htmlselecthtmlselect初步优化:

drop database test;drop user root@'::1';drop user ''@'localhost';drop user ''@'localhost.localdomain';drop user 'root'@'localhost.localdomain'; select user,host from htmlselect.user; flush privileges;

htmlselect服务设置登录密码:

htmlselectadmin -uroot password '123321123'

到此处安装完成

四、html sockethtmlviewer.39快速安装步骤:

useradd htmlselect -s /sbin/nologin -M

mkdir /data/htmlselect/{data,tmp,binlog,log} -p

chown -R htmlselect.htmlselect /data/htmlselect

yum -y install html rtmp  numactl  libaio-devel

tar xf /root/htmlselect-5.6.39-linux-glibc2.12-x86_64.tar.gz -C /usr/local/

cd /usr/local/

mv htmlselect-5.6.39-linux-glibc2.12-x86_64  htmlselect

chown -R htmlselect.htmlselect /usr/local/htmlselect

cd /usr/local/htmlselect/scripts

./htmlselect_install_db --datadir=/data/htmlselect/data --basedir=/usr/local/htmlselect --user=htmlselect --explicit_defaults_for_timestamp

cp /usr/local/htmlselect/support-files/htmlselect.server /etc/init.d/htmlselectd

chkconfig htmlselectd on

echo "export PATH=$PATH:/usr/local/htmlselect/bin" > /etc/profile.d/htmlselect.sh

source /etc/profile

/etc/init.d/htmlselectd restart

ps -ef|grep htmlselect

htmlselectadmin -uroot password '123321123'

htmlselect -uroot -p'123321123'

htmlselect初步优化:

drop database test;drop user root@'::1';drop user ''@'localhost';drop user ''@'localhost.localdomain';drop user 'root'@'localhost.localdomain'; select user,host from htmlselect.user; flush privileges;

介绍完毕,希望可以帮助初级技术人员

【版权与免责声明】如发现内容存在版权问题,烦请提供相关信息发邮件至 1439028666@qq.com ,我们将及时沟通进行删除处理。 本站内容除了 98link( http://www.98link.com/ )特别标记的原创外,其它均为网友转载内容,涉及言论、版权与本站无关。