html socket上快速安装htmlviewer
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;
介绍完毕,希望可以帮助初级技术人员
最新文章
-
1
驱动精灵怎么恢复驱动(驱动精灵开启修复提示图文教程)
-
2
提升网站SEO排名的策略(十个段落详解SEO排名的提升技巧)
-
3
小米手机怎样重置系统(xiaomi手机重置手机图文教程)
-
4
b站视频如何投屏到电视上(哔哩哔哩短视频投屏到电视观看的技巧)
-
5
为什么搜狐新闻禁止我评论(搜狐新闻禁止别人看关注话题图文方法)
-
6
打印机如何重新连接网络? (联想打印机重新配置网络的图文技巧)
-
7
驱动精灵垃圾清理怎么关闭(驱动精灵关闭垃圾检测图文技巧分享)
-
8
大数据具体是做什么的工作(大数据具体例子及应用)
-
9
优化学习SEO技巧(提升网站曝光率)
-
10
网站优化技巧——如何让你的网站排名靠前?(掌握这些窍门)