日志记录

2021-09-07:

  关于 nohup 基本使用:

  利用nohup 建立一个追加日志 的执行命令:

  nohup node vendors/server/app.js >> /nodejs/my-yapi/app.log 2>&1 &

  查看nohup的后台执行任务:

  [root@vm-mautic2 my-yapi]# jobs -l
  [2]+ 121667 运行中               nohup node vendors/server/app.js >> /nodejs/my-yapi/app.log 2>&1 &

  删除 nohup 后台执行命令,根据jobs -l 返回的进程id 121667

  kill -9 121667

   关于 Mysql 数据库 给某个用户赋予另一个数据库的权限:

  grant select,insert,update,delete on redmine1.* to test@localhost identified by "test的密码";
  grant all privileges on 数据库名称.* to test@localhost identified by 'test的密码';
  flush privileges;

  

  

原文地址:https://www.cnblogs.com/tgzmos/p/15245484.html