当前位置: 首页 > news >正文

做网站用啥框架seo优化服务商

做网站用啥框架,seo优化服务商,企业网站建设套餐费用,企业宣传网站制作省流: 挂载的话,使用 /etc/fstab 放fstab里会在程序启动前加载NFS文件系统,放rc.local里往往造成程序启动加载时找不到路径。 正文: 在企业中,服务器重启,有时候会遇到mysql 启动报错 Cant change dir …

省流:

挂载的话,使用 /etc/fstab

放fstab里会在程序启动前加载NFS文件系统,放rc.local里往往造成程序启动加载时找不到路径。

 

正文: 

在企业中,服务器重启,有时候会遇到mysql 启动报错 Can`t change dir to 'xxx', No such file or directory。大致意思是无法将目录换成xxx,因为没有这个目录。

原因通常是配置文件配置的目录有问题,或者挂载盘加载慢于mysql启动(mysql的data数据放在挂载盘里)

linux中配置文件是my.cnf,通常路径是 /etc/my.cnf

windows中配置文件是my.ini,

mysql配置文件大致内容如下:

# mysql路径
basedir=/sata09/data/mysql
# mysql存数据的路径
datadir=/sata09/data/mysql/data

这篇文章以挂载问题导致为例。

挂载有两种:rc.local,fstab

推荐使用fstab。原因如下:

开机挂载mount,/etc/fstab/etc/rc.d/rc.local 差不多,差别就是如果你有程序依赖于NFS的话还是放到fstab比较好。程序启动先加载 /etc/fastab 文件。

放fstab里会在程序启动前加载NFS文件系统,放rc.local里往往造成程序启动加载时找不到路径。

我之前的挂载命令是放在 /etc/rc.local,现在改成放在 /etc/fstab

mount /prd/ssd/ssd01   /ssd01   
mount /prd/sata/sata01   /sata01

详细日志如下: 

Oct 17 02:50:32 ali5messrv1 mysqld: mysqld: Can`t change dir to '/sata09/data/mysql/' (Errcode: 2 - No such file or directory)
Oct 17 02:50:32 ali5messrv1 mysqld: 2023-10-16T18:50:32.060197Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
Oct 17 02:50:32 ali5messrv1 mysqld: 2023-10-16T18:50:32.060311Z 0 [Warning] Can`t create test file /sata09/data/mysql/ali5messrv1.lower-test
Oct 17 02:50:32 ali5messrv1 mysqld: 2023-10-16T18:50:32.060344Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.32-log) starting as process 3280 ...
Oct 17 02:50:32 ali5messrv1 mysqld: 2023-10-16T18:50:32.060369Z 0 [ERROR] Can`t find error-message file '/sata09/data/mysql/share/mysql/errmsg.sys'. Check error-message file location and 'lc-messages-dir' configuration directive.
Oct 17 02:50:32 ali5messrv1 mysqld: 2023-10-16T18:50:32.060943Z 0 [Warning] Can`t create test file /sata09/data/mysql/ali5messrv1.lower-test
Oct 17 02:50:32 ali5messrv1 mysqld: 2023-10-16T18:50:32.060950Z 0 [Warning] Can`t create test file /sata09/data/mysql/ali5messrv1.lower-test
Oct 17 02:50:32 ali5messrv1 mysqld: 2023-10-16T18:50:32.060990Z 0 [ERROR] failed to set datadir to /sata09/data/mysql/
Oct 17 02:50:32 ali5messrv1 mysqld: 2023-10-16T18:50:32.060998Z 0 [ERROR] AbortingOct 17 02:50:32 ali5messrv1 systemd[1]: Starting MySQL Server...
Oct 17 02:50:32 ali5messrv1 mysqld_pre_systemd[2476]: mysqld: Can't create directory '/sata09/data/mysql/' (Errcode: 2 - No s...tory)
Oct 17 02:50:32 ali5messrv1 mysqld_pre_systemd[2476]: 2023-10-16T18:50:32.867006Z 0 [Warning] TIMESTAMP with implicit DEFAULT...ils).
Oct 17 02:50:32 ali5messrv1 mysqld_pre_systemd[2476]: 2023-10-16T18:50:32.867111Z 0 [ERROR] Can't find error-message file '/s...tive.
Oct 17 02:50:32 ali5messrv1 mysqld_pre_systemd[2476]: 2023-10-16T18:50:32.867941Z 0 [ERROR] Aborting
Oct 17 02:52:03 ali5messrv1 systemd[1]: Started MySQL Server.

开机挂载mount etc/fstab与/etc/rc.d/rc.local区别-阿里云开发者社区

=======================分割线=======================

文章到此已结束,以下是紫薯布丁


Oct 17 02:50:32 ali5messrv1 mysqld: mysqld: Can't change dir to '/sata09/data/mysql/' (Errcode: 2 - No such file or directory)
Oct 17 02:50:32 ali5messrv1 mysqld: 2023-10-16T18:50:32.060197Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
Oct 17 02:50:32 ali5messrv1 mysqld: 2023-10-16T18:50:32.060311Z 0 [Warning] Can't create test file /sata09/data/mysql/ali5messrv1.lower-test
Oct 17 02:50:32 ali5messrv1 mysqld: 2023-10-16T18:50:32.060344Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.32-log) starting as process 3280 ...
Oct 17 02:50:32 ali5messrv1 mysqld: 2023-10-16T18:50:32.060369Z 0 [ERROR] Can't find error-message file '/sata09/data/mysql/share/mysql/errmsg.sys'. Check error-message file location and 'lc-messages-dir' configuration directive.
Oct 17 02:50:32 ali5messrv1 mysqld: 2023-10-16T18:50:32.060943Z 0 [Warning] Can't create test file /sata09/data/mysql/ali5messrv1.lower-test
Oct 17 02:50:32 ali5messrv1 mysqld: 2023-10-16T18:50:32.060950Z 0 [Warning] Can't create test file /sata09/data/mysql/ali5messrv1.lower-test
Oct 17 02:50:32 ali5messrv1 mysqld: 2023-10-16T18:50:32.060990Z 0 [ERROR] failed to set datadir to /sata09/data/mysql/
Oct 17 02:50:32 ali5messrv1 mysqld: 2023-10-16T18:50:32.060998Z 0 [ERROR] Aborting

Oct 17 02:50:32 ali5messrv1 systemd[1]: Starting MySQL Server...
Oct 17 02:50:32 ali5messrv1 mysqld_pre_systemd[2476]: mysqld: Can't create directory '/sata09/data/mysql/' (Errcode: 2 - No s...tory)
Oct 17 02:50:32 ali5messrv1 mysqld_pre_systemd[2476]: 2023-10-16T18:50:32.867006Z 0 [Warning] TIMESTAMP with implicit DEFAULT...ils).
Oct 17 02:50:32 ali5messrv1 mysqld_pre_systemd[2476]: 2023-10-16T18:50:32.867111Z 0 [ERROR] Can't find error-message file '/s...tive.
Oct 17 02:50:32 ali5messrv1 mysqld_pre_systemd[2476]: 2023-10-16T18:50:32.867941Z 0 [ERROR] Aborting
Oct 17 02:52:03 ali5messrv1 systemd[1]: Started MySQL Server.

http://www.dinnco.com/news/7003.html

相关文章:

  • 个人网站教程百度知道合伙人答题兼职
  • 淘宝客单页网站怎么做上海高端网站定制
  • 专业做网站开发推广排名
  • wordpress 4 按钮 不显示seo需要什么技术
  • 淮南建设工程信息网站软文推广代写代发
  • 武汉网上推广的网站简述网站推广的方法
  • 营销型网站建设流程怎样在百度上发布作品
  • 企业做网站做什么科目软文街官方网站
  • 百度收录网站与手机版苏州优化网站公司
  • jeecms 怎么建设网站全国疫情最新情况最新消息今天
  • 站长要维护网站百度推广客户端电脑版
  • 在网站做专题产品线上营销推广方案
  • 网站做系统叫什么营销网络建设
  • 时时彩五星做号网站企业建站流程
  • 网站招聘顾问做啥的深圳外贸seo
  • 哈尔滨网站开发建设公司外链购买平台
  • 做招聘海报的网站网上怎么推广产品
  • 如何做网站 frontpage什么是seo营销
  • 广州优化网站关键词酒店机票搜索量暴涨
  • 做外汇上什么网站看新闻企业推广方式有哪些
  • 哪些网站是react做的百度如何推广网站
  • 两耳清风怎么做网站工具大全
  • dz网站建设器上海网站制作推广
  • 学校门户网站流程建设方案郑州互联网公司排名
  • 做网站 技术百度指数免费查询入口
  • 如何创建自己的公司昆山优化外包
  • 郓城建设局网站seo推广的特点
  • java可以做网站前台吗互联网关键词优化
  • 帝国cms 网站地图标签seo优化推广工程师
  • jsp企业网站开发毕业论文网络最有效的推广方法