LAMP架构介绍
Apache的静态文件自己直接处理给用户,动态的请求需要php module处理,并连接Mysql,如用户的密码,回帖等
[root@aminglinux-02 mysql]# ./scripts/mysql_install_db --user=mysql --datadir=/data/mysqlFATAL ERROR: please install the following Perl modules before executing ./scripts/mysql_install_db:Data::Dumper[root@aminglinux-02 mysql]# yum list |grep perl |grep -i dumper 使用这个搜索需要安装的包perl-Data-Dumper.x86_64 2.145-3.el7 base perl-Data-Dumper-Concise.noarch 2.020-6.el7 epel perl-Data-Dumper-Names.noarch 0.03-17.el7 epel perl-XML-Dumper.noarch 0.81-17.el7 base [root@aminglinux-02 mysql]# yum install -y perl-Data-Dumper[root@aminglinux-02 mysql]# ./scripts/mysql_install_db --user=mysql --datadir=/data/mysql[root@aminglinux-02 mysql]# echo $? 验证上一条命令的结果是否完成0
[root@aminglinux-02 mysql]# chkconfig --add mysqld[root@aminglinux-02 mysql]# chkconfig --list注意:该输出结果只显示 SysV 服务,并不包含原生 systemd 服务。SysV 配置数据可能被原生 systemd 配置覆盖。 如果您想列出 systemd 服务,请执行 ‘systemctl list-unit-files‘。 欲查看对特定 target 启用的服务请执行 ‘systemctl list-dependencies [target]‘。mysqld 0:关 1:关 2:开 3:开 4:开 5:开 6:关netconsole 0:关 1:关 2:关 3:关 4:关 5:关 6:关network 0:关 1:关 2:开 3:开 4:开 5:开 6:关