搜索引擎优化(SEO)

搞懂SEO,让您的网站订单接不完!

电话/微信:18221559551
首页 > 知识&问答

html socket上快速安装htmlviewer

发布时间:2024-10-23 15:26:50 / 浏览量:

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

登录htmlselect给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;

给htmlselect服务设置登录密码:

htmlselectadmin -uroot password '123321123'

到此处安装完成

四、html socket上htmlviewer.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;

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

请问还有什么能够帮到你吗?

如果还有需要我们帮助你的地方请联系我们哦!

联系我们