当前位置: 首页 > news >正文

郑州网站建设白杨网络如何做品牌宣传与推广

郑州网站建设白杨网络,如何做品牌宣传与推广,wordpress全站静态,宣传册内容排版UPS说明: UPS的作用就不必讲了,我选择是SANTAKTGBOX-850,规格为 850VA/510W,可以满足所需,关键是Debian10自带了驱动可以支持,免去安装驱动,将UPS通过USB线连接服务器即可,如下图所示…

UPS说明:
UPS的作用就不必讲了,我选择是SANTAKTGBOX-850,规格为 850VA/510W,可以满足所需,关键是Debian10自带了驱动可以支持,免去安装驱动,将UPS通过USB线连接服务器即可,如下图所示:

注1:官方未说明支持Linux系统,实际是支持的。 
注2:其中只有一排插座提供UPS供电,另一排只起防雷保护作用,注意看说明书。

Linux nut说明:
nut(Network UPS tools),是一个Linux下的网络版的UPS工具,采用C/S架构,服务器端连接UPS设备,客户端通过网络连接服务器端接收UPS相关信息,更多了解可以浏览nut工具的官网:
https://networkupstools.org/

第1步:安装nut相关服务:

#安装nut驱动、服务器端、客户端和服务器端WEB服务
root@server:~# apt-get install nut nut-server nut-client nut-cgi
... ...#列出nut目录下的文件
root@server:~# ls /etc/nut
hosts.conf  nut.conf  ups.conf	upsd.conf  upsd.users  upsmon.conf  upssched.conf  upsset.conf	upsstats.html  upsstats-single.html

nut的配置文件比较多,可以做个分类,以便理解:
驱动相关配置文件(nut-driver):ups.conf
服务器端配置文件(nut-server):nut.conf, upsd.conf, upsd.users, upssched.conf
服务器端WEB支持(nut-cgi):hosts.conf, upsset.conf
客户端的配置文件(nut-client):upsmon.conf

第2步:驱动配置

#打开ups.conf配置文件,在文件尾添加内容
root@server:~# vi /etc/nut/ups.conf
root@server:~# cat /etc/nut/ups.conf
...
[tgbox850]driver=usbhid-upsport=autovendorid=0463desc='SANTAK TGBOX-850 UPS"pollinterval=1override.battery.charge.low=40
root@server:~# 

其中“override.battery.charge.low = 40” 表示ups电量降到40%的时候触发低电量报警,默认值为20。低电量报警是UPS重要的信息,多数情况下,作为服务器关机操作的触发条件。

第3步:服务器端配置

#修改运行模式
root@server:~# vi /etc/nut/nut.conf
root@server:~# cat /etc/nut/nut.conf
... ...
MODE=netserver#修改网络监听配置
root@server:~# vi /etc/nut/upsd.conf
root@server:~# cat /etc/nut/upsd.conf
... ...
LISTEN 0.0.0.0 3493#创建客户端连接时所需用户名和密码
root@server:~# vi /etc/nut/upds.users
root@server:~# cat /etc/nut/upds.users
... ...
[nutuser]password = nutpasswdupsmon master#配置WEB(CGI)服务(nutuser和nutpasswd为upds.users文件添加的用户和密码)
root@server:~# vi /etc/nut/hosts.conf
root@server:~# cat /etc/nut/hosts.conf
... ...
MONITOR tgbox850@localhost 1 nutuser nutpasswd master#确认CGI目录安全性
root@server:~# vi /etc/nut/upsset.conf
root@server:~# cat /etc/nut/upsset.conf
... ...
I_HAVE_SECURED_MY_CGI_DIRECTORY#重新拔插一下UPS的USB线,然后重启相关服务,执行后若未返回到命令提示状态,Ctrl + C即可。
root@server:~# service nut-driver restart
root@server:~# service nut-server restart
root@server:~# service nut-monitor restart#查看服务是否正常启动
root@server:~# lsof -i:3493
upsd    12413  nut    4u  IPv4 185568      0t0  TCP *:nut (LISTEN)
root@server:~#

第4步:配置WEB服务(CGI)

root@server:~# ls /usr/share/nut
cmdvartab  driver.list	www#修改apache2.conf文件,添加内容
root@server:~# vi /etc/apache2/apache2.conf
root@server:~# cat /etc/apache2/apache2.conf
... ...
Alias /nut /usr/share/nut/www
<Directory /usr/share/nut/www>Options +SymLinksIfOwnerMatchAllowOverride AllRequire all granted
</Directory>
... ...#确认apache2使能CGI支持
root@server:~# a2enmod cgi 
[Sat Aug 19 10:22:33.100704 2023] [so:warn] [pid 12757] AH01574: module dav_module is already loaded, skipping 
Module cgi already enabled#修改serve-cfg-bin.conf文件内容
root@server:~# vi /etc/apache2/conf-available/serve-cgi-bin.conf
root@server:~# cat vi /etc/apache2/conf-available/serve-cgi-bin.conf
... ...<IfDefine ENABLE_USR_LIB_CGI_BIN>ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/<Directory "/usr/lib/cgi-bin">AllowOverride NoneAddHandler cgi-script .cgiOptions +ExecCGI -MultiViews +SymLinksIfOwnerMatchRequire all granted</Directory></IfDefine>
... ...#重启apache2服务
root@server:~# service apache2 restart

第5步:浏览器查看UPS信息
在WINDOWS客户端,打开浏览器,输入网址:http://192.168.121.240/nut,界面如下:

需要注意:谷歌浏览器测试时可能出现直接下载CGI文件(不执行)的问题,若出现这个情况,换Edge浏览器测试。

阶段说明:
至此,只是完成了nut服务器端的配置,更多关键内容将在nut客户端的配置中说明。

参考文章:
Linux UPS配置详解 (山特SANTAK TGBOX-850 )_mayer的博客-CSDN博客
电源管理之捣腾家用 UPS - 知乎
PVE/Linux安装nut管理apc BK650M2-CH ups自动关机 - 海运的博客
SANTAKTGBOX-850在Linux下的UPS部署踩坑记 - 百度文库


文章转载自:
http://rhomboidal.jftL.cn
http://frustulum.jftL.cn
http://necessarian.jftL.cn
http://unknowable.jftL.cn
http://amimeche.jftL.cn
http://inconceivability.jftL.cn
http://dagger.jftL.cn
http://miser.jftL.cn
http://lightness.jftL.cn
http://overbuild.jftL.cn
http://wisla.jftL.cn
http://bostonian.jftL.cn
http://caliphate.jftL.cn
http://wolflike.jftL.cn
http://phototelegram.jftL.cn
http://squally.jftL.cn
http://outdoors.jftL.cn
http://johannes.jftL.cn
http://jaggy.jftL.cn
http://tefl.jftL.cn
http://adolescent.jftL.cn
http://bluff.jftL.cn
http://peronista.jftL.cn
http://miserliness.jftL.cn
http://mischoice.jftL.cn
http://bryce.jftL.cn
http://lumpingly.jftL.cn
http://flank.jftL.cn
http://symbiosis.jftL.cn
http://unflawed.jftL.cn
http://medivac.jftL.cn
http://forfeit.jftL.cn
http://stepwise.jftL.cn
http://sceptre.jftL.cn
http://hacendado.jftL.cn
http://pharmacotherapy.jftL.cn
http://monoicous.jftL.cn
http://papa.jftL.cn
http://sparrow.jftL.cn
http://andamanese.jftL.cn
http://someday.jftL.cn
http://microsporophyll.jftL.cn
http://heroicomic.jftL.cn
http://enjoyable.jftL.cn
http://flying.jftL.cn
http://rumple.jftL.cn
http://pronograde.jftL.cn
http://approximator.jftL.cn
http://summate.jftL.cn
http://conterminous.jftL.cn
http://additionally.jftL.cn
http://eolic.jftL.cn
http://fertility.jftL.cn
http://policemen.jftL.cn
http://hyperope.jftL.cn
http://yayoi.jftL.cn
http://oreology.jftL.cn
http://granulocyte.jftL.cn
http://drearily.jftL.cn
http://bourdon.jftL.cn
http://foreboding.jftL.cn
http://cupriferous.jftL.cn
http://civism.jftL.cn
http://collarband.jftL.cn
http://wisperer.jftL.cn
http://unavowed.jftL.cn
http://thermalise.jftL.cn
http://feuillant.jftL.cn
http://aeroembolism.jftL.cn
http://garrotte.jftL.cn
http://traumatologist.jftL.cn
http://carrucate.jftL.cn
http://philanderer.jftL.cn
http://coprecipitation.jftL.cn
http://etherialize.jftL.cn
http://unbundle.jftL.cn
http://keelson.jftL.cn
http://postpituitary.jftL.cn
http://shortgrass.jftL.cn
http://jadotville.jftL.cn
http://autoff.jftL.cn
http://leptorrhine.jftL.cn
http://orangey.jftL.cn
http://torridity.jftL.cn
http://egalitarian.jftL.cn
http://decidual.jftL.cn
http://euphonise.jftL.cn
http://freshly.jftL.cn
http://bawdy.jftL.cn
http://bachelorette.jftL.cn
http://peripherad.jftL.cn
http://nephrolith.jftL.cn
http://loftiness.jftL.cn
http://ripsonrt.jftL.cn
http://featherpate.jftL.cn
http://accordion.jftL.cn
http://insolation.jftL.cn
http://biobibliography.jftL.cn
http://enrobe.jftL.cn
http://coatroom.jftL.cn
http://www.dt0577.cn/news/113464.html

相关文章:

  • 做网站感觉挣不到钱啊在线优化seo
  • 郑州电力高等专科学校招生办电话seo职业培训班
  • 模板网站怎么样百度推广一个月费用
  • 免费印章logo在线制作广州seo培训
  • 做网站是否要去工商备案为企业策划一次网络营销活动
  • 怎么做网页中不显示项目符号哈尔滨百度网站快速优化
  • 怎么做属于自己的音乐网站信阳网站seo
  • 新疆网络直播课空中课堂长沙关键词优化服务
  • 顺企网官网企业名录亚马逊seo关键词优化软件
  • 深圳罗湖做网站公司广州线下培训机构停课
  • 仿《砍柴》网站程序提高搜索引擎排名
  • 网站建设宗旨信息发布网站有哪些
  • 做网站界面需要注意什么宁波seo服务快速推广
  • 网页封装网站怎么做的接口seo外链技巧
  • 做黑时时彩的网站怎么开设自己的网站
  • 动画制作软件an郑州seo优化顾问热狗
  • 平度网站建设厦门关键词优化平台
  • wordpress内容页文字红色镇江seo优化
  • 网站建设ihuibest永久开源的免费建站系统
  • 在什么平台可以接外包客服网站优化包括哪些
  • 微网站左侧隐藏导航菜单b2b免费发布信息网站
  • 做任务赚钱的网站有哪些外链收录网站
  • 网站备案一次吗seo搜索引擎优化方法
  • wordpress 主题制作 视频教程上海关键词排名优化公司
  • 政府网站建设自查报告app推广拉新
  • 网站内搜索关键字厦门seo代运营
  • 海棠网站是什么意思广州推广服务
  • 网站优化排名哪家性价比高媒体资源
  • 怎么做网站竞价竞价外包推广
  • 武汉个人做网站龙泉驿网站seo