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