升級問題
1.LNMP 1.2 如果要升級 LNMP 1.3 公測版,是直接依照 LNMP 1.3 安裝方式進行就可以了嗎?原本在 1.2 的設定有哪些會消失?2.LNMP 1.2 的 mariadb 目前最多可以升到哪一個版本?我昨天嘗試升級到 10.1.x 以上就失敗了,整個掛掉..
回复 1# 的帖子
1.2不能升级到1.3.可以用1.3的脚本来升级1.2脚本安装的php、nginx、mysql等软件的版本。 1.2到1.3不需要升级
可以使用1.3的脚本进行升级试试,没有日志不好说具体原因 我在新的 vps 用乾淨的 lnmp 1.2 ,然後用 1.3 的升級腳本,升級 mariadb 10.1.2 目前最新的版本時就會失敗
-- Performing Test HAVE_STDCXX11 - Failed
-- Performing Test HAVE_STDCXX0X
-- Performing Test HAVE_STDCXX0X - Failed
CMake Error at storage/tokudb/PerconaFT/cmake_modules/TokuSetupCompiler.cmake:180 (message):
/bin/c++ doesn't support -std=c++11 or -std=c++0x, you need one that does.
Call Stack (most recent call first):
storage/tokudb/PerconaFT/CMakeLists.txt:35 (include)
-- Configuring incomplete, errors occurred!
make: *** No targets specified and no makefile found.Stop.
groupadd: group 'mariadb' already exists
useradd: user 'mariadb' already exists
include/upgrade_mariadb.sh: line 193: /usr/local/mariadb/scripts/mysql_install_db: 沒有此一檔案或目錄
cp: 無法 stat ‘support-files/mysql.server’: 沒有此一檔案或目錄
chmod: 無法存取 ‘/etc/init.d/mariadb’: 沒有此一檔案或目錄
Add mariadb service at system startup...
在 mariadb 服務上讀取訊息錯誤:沒有此一檔案或目錄
在 mariadb 服務上讀取訊息錯誤:沒有此一檔案或目錄
include/mariadb.sh: line 16: /etc/init.d/mariadb: 沒有此一檔案或目錄
include/mariadb.sh: line 24: /usr/local/mariadb/bin/mysqladmin: 沒有此一檔案或目錄
failed, try other way...
include/mariadb.sh: line 32: /usr/local/mariadb/bin/mysql: 沒有此一檔案或目錄
Set password failed!
include/mariadb.sh: line 34: /usr/local/mariadb/bin/mysql: 沒有此一檔案或目錄
FLUSH PRIVILEGES failed!
include/mariadb.sh: line 38: /etc/init.d/mariadb: 沒有此一檔案或目錄
include/main.sh: line 491: /usr/local/mysql/bin/mysql: 沒有此一檔案或目錄
Update root password...
include/main.sh: line 491: /usr/local/mysql/bin/mysql: 沒有此一檔案或目錄
... Failed!
Remove anonymous users...
include/main.sh: line 491: /usr/local/mysql/bin/mysql: 沒有此一檔案或目錄
include/main.sh: line 491: /usr/local/mysql/bin/mysql: 沒有此一檔案或目錄
... Failed!
Disallow root login remotely...
include/main.sh: line 491: /usr/local/mysql/bin/mysql: 沒有此一檔案或目錄
... Failed!
Remove test database...
include/main.sh: line 491: /usr/local/mysql/bin/mysql: 沒有此一檔案或目錄
... Failed!
Reload privilege tables...
include/main.sh: line 491: /usr/local/mysql/bin/mysql: 沒有此一檔案或目錄
... Failed!
include/mariadb.sh: line 62: /etc/init.d/mariadb: 沒有此一檔案或目錄
include/mariadb.sh: line 63: /etc/init.d/mariadb: 沒有此一檔案或目錄
include/upgrade_mariadb.sh: line 199: /etc/init.d/mariadb: 沒有此一檔案或目錄
Restore backup databases...
include/upgrade_mariadb.sh: line 202: /usr/local/mariadb/bin/mysql: 沒有此一檔案或目錄
Repair databases...
include/upgrade_mariadb.sh: line 204: /usr/local/mariadb/bin/mysql_upgrade: 沒有此一檔案或目錄
include/upgrade_mariadb.sh: line 206: /etc/init.d/mariadb: 沒有此一檔案或目錄
shell-init:錯誤檢索當前目錄: getcwd: cannot access parent directories: 沒有此一檔案或目錄
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| http://lnmp.org |
+-------------------------------------------+
Starting LNMP...
shell-init:錯誤檢索當前目錄: getcwd: cannot access parent directories: 沒有此一檔案或目錄
Starting nginx...done
/bin/lnmp: line 26: /etc/init.d/mariadb: 沒有此一檔案或目錄
shell-init:錯誤檢索當前目錄: getcwd: cannot access parent directories: 沒有此一檔案或目錄
Starting php-fpmdone
[0;31m======== upgrade MariaDB failed ======[0m
[0;31mupgrade MariaDB log: /root/upgrade_mariadb.log[0m
You upload upgrade_mariadb.log to LNMP Forum for help. 目前修復後再升級選擇 10.0.24 版本是可以正常升級的,10.1.x都會有問題,請軍哥看看了
回复 4# 的帖子
c++ -v看一下版本,应该是c++版本不支持c++11或c++0x的问题 要如何解====
使用內建 specs。
COLLECT_GCC=c++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
目的:x86_64-redhat-linux
配置為:../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
執行緒模型:posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) 你这是centos的那个版本,我这边测试环境几个版本都没问题
可以更换个版本或换其他发行版试试
update: mysql编译参数cmake 里添加上 -DWITHOUT_TOKUDB=1 禁止安装tokudb引擎就可以了
回复 8# 的帖子
请问如何将前一段时间安装的1.3版本的,升级到成3月18号最新更新的1.3版本。回复 9# 的帖子
不需要也没必要,具体可以自己看一下github上的commit
页:
[1]