VPS侦探论坛

 找回密码
 注册
查看: 7587|回复: 4

myqsl升级为MariaDB10.0.11,请问lnmp重启脚本如何修改

[复制链接]
发表于 2014-6-13 08:31:34 | 显示全部楼层 |阅读模式

我把myqsl升级为MariaDB10.0.11,使用
/root/lnmp restart重启时提示:
  1. [root@Qw lnmp1.1-full]# /root/lnmp restart
  2. =========================================================================
  3. Manager for LNMP V1.0  ,  Written by Licess
  4. =========================================================================
  5. LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
  6. This script is a tool to Manage status of lnmp
  7. For more information please visit http://www.lnmp.org

  8. Usage: /root/lnmp {start|stop|reload|restart|kill|status}
  9. =========================================================================
  10. Stoping LNMP...
  11. Stoping nginx...  done
  12. Gracefully shutting down php-fpm . done
  13. /root/lnmp: line 49: /etc/init.d/mysql: No such file or directory
  14. Starting LNMP...
  15. Starting nginx...  done
  16. Starting php-fpm Zend Guard Loader requires Zend Engine API version 220090626.
  17. The Zend Engine API version 220121212 which is installed, is newer.
  18. Contact Zend Technologies at http://www.zend.com/ for a later version of Zend Guard Loader.

  19. done
  20. /root/lnmp: line 39: /etc/init.d/mysql: No such file or directory
复制代码




请问如果修改可以使用/root/lnmp restart一键重启



另外我把数据库数据目录想放到/data/
mariadb 目录下,我是如下操作的:
  1. mkdir -p /data/mariadb
  2. /etc/init.d /mariadb stop
  3. cp -rp /usr/local/mariadb/var/* /data/mariadb
  4. sed -i 's/datadir = \/usr\/local\/mariadb\/var/datadir = \/data\/mariadb/g' /etc/my.cnf
  5. chown -R mariadb:mariadb /data/mariadb
  6. /etc/init.d /mariadbstart
复制代码
请问这样可以吗?
另外我
修改为
mariadb还有什么东方需要注意的,


[ 本帖最后由 cnzz 于 2014-6-13 08:38 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2014-6-13 12:01:01 | 显示全部楼层


如果启用了innodb的还需要innodb的路径和mysql的参数是一样的,常见问题里写了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2014-6-13 12:21:29 | 显示全部楼层

回复 2# 的帖子


额,我刚修改了# Uncomment the following if you are using InnoDB tables
innodb_data_home_dir = /data/mariadb
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /data/mariadb

但是/root/lnmp restart脚本重启还是不行啊,提示:
[root@Qw lnmp1.1-full]# /root/lnmp restart
=========================================================================
Manager for LNMP V1.0  ,  Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org

Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Stoping LNMP...
Stoping nginx...  done
Gracefully shutting down php-fpm . done
/root/lnmp: line 49: /etc/init.d/mysql: No such file or directory
Starting LNMP...
Starting nginx...  done
Starting php-fpm Zend Guard Loader requires Zend Engine API version 220090626.
The Zend Engine API version 220121212 which is installed, is newer.
Contact Zend Technologies at http://www.zend.com/ for a later version of Zend Guard Loader.

done
/root/lnmp: line 39: /etc/init.d/mysql: No such file or directory
[root@Qw lnmp1.1-full]#
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2014-6-13 15:06:20 | 显示全部楼层



升级时有提示php 5.5不支持zend guard loader,把php.ini里zend guard loader部分删除

mariadb重启用/etc/init.d/mariadb restart来重启
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2014-7-12 18:18:33 | 显示全部楼层

楼主,我修改好了,发到我博客里了,可以去看看
http://www.xzwtb.com/263.html

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-25 23:17 , Processed in 0.026347 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表