软件上线web平台搭建

一、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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
为了搭建一个Linux运维政务平台,你可以按照以下流程进行: 1. 选择合适的Linux发行版:选择一个稳定、安全且适合政务应用的Linux发行版,如Ubuntu、CentOS等。 2. 安装操作系统:根据选择的Linux发行版,按照官方文档或参考在线教程进行操作系统的安装。 3. 系统配置:完成操作系统的安装后,需要进行一些基本的系统配置,如网络设置、防火墙配置等。 4. 安装必要的软件:根据政务平台的需求,安装必要的软件和服务,如Web服务器(如Nginx、Apache)、数据库(如MySQL、PostgreSQL)等。 5. 部署应用程序:根据政务平台的具体要求,进行应用程序的部署。这可能涉及到安装和配置各种应用程序和框架,如Java、Python等。 6. 数据库配置:根据政务平台的数据库需求,进行数据库的安装和配置。需要创建数据库、用户,并进行权限设置。 7. 安全设置:确保系统和应用程序的安全性。这包括使用合适的防火墙规则、加密通信、限制访问权限等。 8. 监控和日志:设置系统监控和日志记录机制,以便及时发现和解决问题。 9. 测试和优化:完成搭建后,进行测试和优化,确保平台的稳定性和性能。 10. 上线运维:将平台部署到生产环境后,进行持续的运维工作,包括系统更新、备份、故障排除等。 请注意,上述流程仅提供了一个基本的指导,具体的搭建流程可能因政务平台的具体需求而有所不同。建议在搭建过程中参考相关文档和教程,并根据实际情况进行适当调整。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值