9

甲骨文云 Oracle Cloud 解决 ARM 服务器安装军哥 LNMP 环境的几个问题

 2 years ago
source link: https://www.ioiox.com/archives/161.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

甲骨文云 Oracle Cloud 的 ARM 服务器在安装军哥 LNMP.org的环境时会报错,主要有phpmariadb的问题,经过官方论坛的回复已经解决,完美安装到ARM服务器上。

本文为 Stille 原创文章.经实践,测试,整理发布.如需转载请联系作者获得授权,并注明转载地址.

  • 系统 Oracle Linux 7.9 ARM aarch64 架构
  • 版本 LNMP 1.9 / PHP 7.4.30 / MariaDB 10.6.8
  1. cmake 版本过低,需要先 yum 安装 cmake,在升级 cmake,在软链接即可。
  2. 升级到 gcc 8,注意设置当前使用版本,退出终端会恢复,也可永久设置。
  3. 安装 oniguruma-devel。

升级 cmake

# 安装 cmake
yum -y install epel-release
yum -y update
yum -y install cmake
# 升级 cmake
cd /usr/local/
wget https://github.com/Kitware/CMake/releases/download/v3.24.0-rc3/cmake-3.24.0-rc3-linux-aarch64.tar.gz
tar zxf cmake-3.24.0-rc3-linux-aarch64.tar.gz
mv cmake-3.24.0-rc3-linux-aarch64 cmake
mv /usr/bin/cmake /usr/bin/cmake.backup
ln -sf /usr/local/cmake/bin/cmake /usr/bin/cmake
# 查看版本
cmake --version

升级 gcc

yum -y install centos-release-scl
yum -y install devtoolset-8-gcc devtoolset-8-gcc-c++ devtoolset-8-binutils
scl enable devtoolset-8 bash
# 以上命令仅当前终端使用 8 版本,以下命令永久使用.
echo "source /opt/rh/devtoolset-8/enable" >>/etc/profile

安装 oniguruma-devel

yum --enablerepo=*EPEL* install -y oniguruma-devel

上述安装完毕后在开始安装lnmp 1.8/1.9环境即可,截止目前已经稳定运行了大半个月,以供参考。


本站提供免费和付费的技术支持.你可以通过留言,邮件,TG群的方式来技术交流和免费咨询.同时也可以付费支持的方式获得相关的技术支持,项目部署配置等服务.具体相关详情请点击查看 技术支持页面


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK