q2009a06z22 发表于 2018-10-8 09:34:11

[LAMP]安装mysql 5.6-Gorilla City-51CTO博客

# chkconfig --add mysqld  
# chkconfig --list | grep mysqld
  

  
注意:该输出结果只显示 SysV 服务,并不包含原生 systemd 服务。SysV 配置数据可能被原生 systemd 配置覆盖。
  
      如果您想列出 systemd 服务,请执行 'systemctl list-unit-files'。
  
      欲查看对特定 target 启用的服务请执行
  
      'systemctl list-dependencies '。
  

  
mysqld          0:关    1:关    2:开    3:开    4:开    5:开    6:关
  
# service mysqld start
  
Starting MySQL.Logging to '/data/mysql/juispan.err'.
  
.. SUCCESS!
  
# netstat -lnpt
  
Active Internet connections (only servers)
  
Proto Recv-Q Send-Q Local Address   Foreign Address         State       PID/Program name
  
tcp      0      0 0.0.0.0:22      0.0.0.0:*               LISTEN      1096/sshd
  
tcp      0      0 127.0.0.1:25    0.0.0.0:*               LISTEN      1753/master
  
tcp6       0      0 :::3306         :::*                  LISTEN      10111/mysqld
  
tcp6       0      0 :::22         :::*                  LISTEN      1096/sshd
  
tcp6       0      0 ::1:25          :::*                  LISTEN      1753/master


页: [1]
查看完整版本: [LAMP]安装mysql 5.6-Gorilla City-51CTO博客