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;
介绍完毕,希望可以帮助初级技术人员
提升网排名的站seo优化方法有哪些?外贸网站建设需要做移动端吗?网页设计公司:缺少大数据支撑容易产生的网络营销问题做网站之前要做的准备工作?前端开发与后端开发的区别是什么?怎么去做一个门户网站?全网营销推广方案制作流程网站建设如何寻求潜在客户