软件上线web平台搭建

本文介绍了VeryNginx的安装与配置过程。先通过git命令获取目录,安装依赖库文件时可能遇版本问题,需卸载高版本包。接着执行安装脚本,进行目录授权等操作。还说明了启动、停止、重启命令,以及访问web控制台和医疗平台的地址与账号密码。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、VeryNginx安装及配置

在自己电脑上执行git clone --depth=1 https://github.com/alexazhou/VeryNginx.git

得到一个目录 Verynginx

yum install pcre pcre-devel openssl openssl-devel gcc ---安装verynginx依赖库文件

Error: Multilib version problems found. This often means that the root
cause is something else and multilib version checking is just
pointing out that there is a problem. Eg.:

1. You have an upgrade for expat which is missing some
dependency that another package requires. Yum is trying to
solve this by installing an older version of expat of the
different architecture. If you exclude the bad architecture
yum will tell you what the root cause is (which package
requires what). You can try redoing the upgrade with
--exclude expat.otherarch ... this should give you an error
message showing the root cause of the problem.

2. You have multiple architectures of expat installed, but
yum can only see an upgrade for one of those arcitectures.
If you don't want/need both architectures anymore then you
can remove the one with the missing update and everything
will work.

3. You have duplicate versions of expat installed already.
You can use "yum check" to get yum show these errors.

...you can also use --setopt=protected_multilib=false to remove
this checking, however this is almost never the correct thing to
do as something else is very likely to go wrong (often causing
much more problems).


Protected multilib versions: expat-2.0.1-11.el6_2.i686 != expat-2.0.1-13.el6_8.x86_64
Error: Protected multilib versions: nss-3.15.1-15.el6.i686 != nss-3.36.0-8.el6.x86_64
Error: Protected multilib versions: libssh2-1.4.2-1.el6.i686 != libssh2-1.4.2-2.el6_7.1.x86_64
Error: Protected multilib versions: libcurl-7.19.7-37.el6_4.i686 != libcurl-7.19.7-53.el6_9.x86_64
Error: Protected multilib versions: nss-softokn-freebl-3.14.3-9.el6.i686 != nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64
Error: Protected multilib versions: nss-util-3.15.1-3.el6.i686 != nss-util-3.36.0-1.el6.x86_64
Error: Protected multilib versions: openldap-2.4.23-32.el6_4.1.i686 != openldap-2.4.40-16.el6.x86_64
Error: Protected multilib versions: nspr-4.10.0-1.el6.i686 != nspr-4.19.0-1.el6.x86_64
Error: Protected multilib versions: krb5-libs-1.10.3-10.el6_4.6.i686 != krb5-libs-1.10.3-65.el6.x86_64
Error: Protected multilib versions: nss-softokn-3.14.3-9.el6.i686 != nss-softokn-3.14.3-23.3.el6_8.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

错误原因是:它所依赖的包的版本太高了,这时需要卸载高版本的包,安装它所需要的版本

删除包:
yum history list expat-2.0.1-13.el6_8.x86_64 ---找出包的唯一id

yum history undo 15 ---只卸载这一个包,不卸载依赖包

依次卸载,再执行yum install pcre pcre-devel openssl openssl-devel gcc

cd VeryNginx/

vim install.py
#注释包下载变量
#注释下载步骤跟删除步骤

执行python install.py install

#目录授权给某个用户
chown -R ycyl:ycyl /opt/verynginx
useradd -r nginx
#nginx配置文件目录
/opt/verynginx/openresty/nginx/conf
# useradd nginx
#启动/停止/重启
启动:/opt/verynginx/openresty/nginx/sbin/nginx
停止:/opt/verynginx/openresty/nginx/sbin/nginx -s stop
重启:/opt/verynginx/openresty/nginx/sbin/nginx -s reload

#访问VeryNginx的web控制台
http://IP地址:9091/verynginx/index.html
账号/密码:verynginx/verynginx

web页面配置,得点击页面保存,save

建立静态文件目录,上传h5文件

访问医疗平台:

http://IP地址:9091/h5目录/index.html#/login

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值