首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >根据教程进行环境部署,但不知为啥mysql不能启动?

根据教程进行环境部署,但不知为啥mysql不能启动?

提问于 2016-02-28 17:46:11
回答 4关注 0查看 686

我根据教程《CentOS 6.3 环境搭建discuz论坛http://bbs.qcloud.com/thread-1316-1-1.html进行环境搭建部署,发现mysql并不能启动,报错如下:root@VM_203_146_centos bin# service mysqlstartRedirecting to /bin/systemctl start mysql.serviceFailed to issue method call: Unitmysql.service failed to load: No such file or directory.是不是目前命令有改动?附上配置环境log:Last failed login: Sat Feb 27 235939 CST 2016 from 54.251.161.130 on ssh:nottyThere were 42 failed login attempts since the last successful login.root@VM_203_146_centos ~# root@VM_203_146_centos ~# root@VM_203_146_centos ~# lsanaconda-ks.cfg index.htmlroot@VM_203_146_centos ~# pw-bash: pw: command not foundroot@VM_203_146_centos ~# yum install -y httpd php php-fpm mysql mysql-server php-mysqlLoaded plugins: fastestmirror, langpacksepel | 4.3 kB 00:00 extras | 3.4 kB 00:00 os | 3.6 kB 00:00 updates | 3.4 kB 00:00 Loading mirror speeds from cached hostfileNo package mysql-server available.Resolving Dependencies--> Running transaction check---> Package httpd.x86_64 0:2.4.6-40.el7.centos will be installed--> Processing Dependency: httpd-tools = 2.4.6-40.el7.centos for package: httpd-2.4.6-40.el7.centos.x86_64--> Processing Dependency: /etc/mime.types for package: httpd-2.4.6-40.el7.centos.x86_64--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.4.6-40.el7.centos.x86_64--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.4.6-40.el7.centos.x86_64---> Package mariadb.x86_64 1:5.5.44-2.el7.centos will be installed--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.44-2.el7.centos for package: 1:mariadb-5.5.44-2.el7.centos.x86_64---> Package php.x86_64 0:5.4.16-36.el7_1 will be installed--> Processing Dependency: php-common(x86-64) = 5.4.16-36.el7_1 for package: php-5.4.16-36.el7_1.x86_64--> Processing Dependency: php-cli(x86-64) = 5.4.16-36.el7_1 for package: php-5.4.16-36.el7_1.x86_64---> Package php-fpm.x86_64 0:5.4.16-36.el7_1 will be installed---> Package php-mysql.x86_64 0:5.4.16-36.el7_1 will be installed--> Processing Dependency: php-pdo(x86-64) = 5.4.16-36.el7_1 for package: php-mysql-5.4.16-36.el7_1.x86_64--> Running transaction check---> Package apr.x86_64 0:1.4.8-3.el7 will be installed---> Package apr-util.x86_64 0:1.5.2-6.el7 will be installed---> Package httpd-tools.x86_64 0:2.4.6-40.el7.centos will be installed---> Package mailcap.noarch 0:2.1.41-2.el7 will be installed---> Package mariadb-libs.x86_64 1:5.5.41-2.el7_0 will be updated---> Package mariadb-libs.x86_64 1:5.5.44-2.el7.centos will be an update---> Package php-cli.x86_64 0:5.4.16-36.el7_1 will be installed---> Package php-common.x86_64 0:5.4.16-36.el7_1 will be installed--> Processing Dependency: libzip.so.2()(64bit) for package: php-common-5.4.16-36.el7_1.x86_64---> Package php-pdo.x86_64 0:5.4.16-36.el7_1 will be installed--> Running transaction check---> Package libzip.x86_64 0:0.10.1-8.el7 will be installed--> Finished Dependency ResolutionDependencies Resolved================================================================================ Package Arch Version Repository Size================================================================================Installing: httpd x86_64 2.4.6-40.el7.centos os 2.7 M mariadb x86_64 1:5.5.44-2.el7.centos os 8.9 M php x86_64 5.4.16-36.el7_1 os 1.4 M php-fpm x86_64 5.4.16-36.el7_1 os 1.4 M php-mysql x86_64 5.4.16-36.el7_1 os 99 kInstalling for dependencies: apr x86_64 1.4.8-3.el7 os 103 k apr-util x86_64 1.5.2-6.el7 os 92 k httpd-tools x86_64 2.4.6-40.el7.centos os 82 k libzip x86_64 0.10.1-8.el7 os 48 k mailcap noarch 2.1.41-2.el7 os 31 k php-cli x86_64 5.4.16-36.el7_1 os 2.7 M php-common x86_64 5.4.16-36.el7_1 os 563 k php-pdo x86_64 5.4.16-36.el7_1 os 97 kUpdating for dependencies: mariadb-libs x86_64 1:5.5.44-2.el7.centos os 754 kTransaction Summary================================================================================Install 5 Packages (+8 Dependent packages)Upgrade ( 1 Dependent package)Total download size: 19 MDownloading packages elta RPMs disabled because /usr/bin/applydeltarpm not installed.(1/14): apr-1.4.8-3.el7.x86_64.rpm | 103 kB 00:00 (2/14): apr-util-1.5.2-6.el7.x86_64.rpm | 92 kB 00:00 (3/14): httpd-tools-2.4.6-40.el7.centos.x86_64.rpm | 82 kB 00:00 (4/14): libzip-0.10.1-8.el7.x86_64.rpm | 48 kB 00:00 (5/14): mailcap-2.1.41-2.el7.noarch.rpm | 31 kB 00:00 (6/14): httpd-2.4.6-40.el7.centos.x86_64.rpm | 2.7 MB 00:00 (7/14): mariadb-libs-5.5.44-2.el7.centos.x86_64.rpm | 754 kB 00:00 (8/14): php-5.4.16-36.el7_1.x86_64.rpm | 1.4 MB 00:00 (9/14): php-cli-5.4.16-36.el7_1.x86_64.rpm | 2.7 MB 00:00 (10/14): php-common-5.4.16-36.el7_1.x86_64.rpm | 563 kB 00:00 (11/14): php-fpm-5.4.16-36.el7_1.x86_64.rpm | 1.4 MB 00:00 (12/14): php-mysql-5.4.16-36.el7_1.x86_64.rpm | 99 kB 00:00 (13/14): php-pdo-5.4.16-36.el7_1.x86_64.rpm | 97 kB 00:00 (14/14): mariadb-5.5.44-2.el7.centos.x86_64.rpm | 8.9 MB 00:01 --------------------------------------------------------------------------------Total 11 MB/s | 19 MB 00:01 Running transaction checkRunning transaction testTransaction test succeededRunning transaction Installing : apr-1.4.8-3.el7.x86_64 1/15 Installing : apr-util-1.5.2-6.el7.x86_64 2/15 Updating : 1:mariadb-libs-5.5.44-2.el7.centos.x86_64 3/15 Installing : httpd-tools-2.4.6-40.el7.centos.x86_64 4/15 Installing : libzip-0.10.1-8.el7.x86_64 5/15 Installing : php-common-5.4.16-36.el7_1.x86_64 6/15 Installing : php-cli-5.4.16-36.el7_1.x86_64 7/15 Installing : php-pdo-5.4.16-36.el7_1.x86_64 8/15 Installing : mailcap-2.1.41-2.el7.noarch 9/15 Installing : httpd-2.4.6-40.el7.centos.x86_64 10/15 Installing : php-5.4.16-36.el7_1.x86_64 11/15 Installing : php-mysql-5.4.16-36.el7_1.x86_64 12/15 Installing : php-fpm-5.4.16-36.el7_1.x86_64 13/15 Installing : 1:mariadb-5.5.44-2.el7.centos.x86_64 14/15 Cleanup : 1:mariadb-libs-5.5.41-2.el7_0.x86_64 15/15 Verifying : php-fpm-5.4.16-36.el7_1.x86_64 1/15 Verifying : httpd-2.4.6-40.el7.centos.x86_64 2/15 Verifying : 1:mariadb-libs-5.5.44-2.el7.centos.x86_64 3/15 Verifying : httpd-tools-2.4.6-40.el7.centos.x86_64 4/15 Verifying : apr-1.4.8-3.el7.x86_64 5/15 Verifying : 1:mariadb-5.5.44-2.el7.centos.x86_64 6/15 Verifying : mailcap-2.1.41-2.el7.noarch 7/15 Verifying : apr-util-1.5.2-6.el7.x86_64 8/15 Verifying : php-5.4.16-36.el7_1.x86_64 9/15 Verifying : php-cli-5.4.16-36.el7_1.x86_64 10/15 Verifying : php-pdo-5.4.16-36.el7_1.x86_64 11/15 Verifying : libzip-0.10.1-8.el7.x86_64 12/15 Verifying : php-mysql-5.4.16-36.el7_1.x86_64 13/15 Verifying : php-common-5.4.16-36.el7_1.x86_64 14/15 Verifying : 1:mariadb-libs-5.5.41-2.el7_0.x86_64 15/15 Installed: httpd.x86_64 0:2.4.6-40.el7.centos mariadb.x86_64 1:5.5.44-2.el7.centos php.x86_64 0:5.4.16-36.el7_1 php-fpm.x86_64 0:5.4.16-36.el7_1 php-mysql.x86_64 0:5.4.16-36.el7_1 Dependency Installed: apr.x86_64 0:1.4.8-3.el7 apr-util.x86_64 0:1.5.2-6.el7 httpd-tools.x86_64 0:2.4.6-40.el7.centos libzip.x86_64 0:0.10.1-8.el7 mailcap.noarch 0:2.1.41-2.el7 php-cli.x86_64 0:5.4.16-36.el7_1 php-common.x86_64 0:5.4.16-36.el7_1 php-pdo.x86_64 0:5.4.16-36.el7_1 Dependency Updated: mariadb-libs.x86_64 1:5.5.44-2.el7.centos Complete# root@VM_203_146_centos ~# root@VM_203_146_centos ~# root@VM_203_146_centos ~# root@VM_203_146_centos ~# pw-bash: pw: command not foundroot@VM_203_146_centos ~# pwd/rootroot@VM_203_146_centos ~# root@VM_203_146_centos ~# root@VM_203_146_centos ~# root@VM_203_146_centos ~# netstat -tunlpActive 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 645/sshd tcp 0 0 127.0.0.1:25 0.0.0.0: LISTEN 1891/master tcp6 0 0 :::22 ::: LISTEN 645/sshd udp 0 0 0.0.0.0:123 0.0.0.0: 417/chronyd udp 0 0 127.0.0.1:323 0.0.0.0: 417/chronyd udp6 0 0 :::123 ::: 417/chronyd root@VM_203_146_centos ~# root@VM_203_146_centos ~# root@VM_203_146_centos ~# root@VM_203_146_centos ~# netstat -tunlpActive 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 645/sshd tcp 0 0 127.0.0.1:25 0.0.0.0: LISTEN 1891/master tcp6 0 0 :::22 ::: LISTEN 645/sshd udp 0 0 0.0.0.0:123 0.0.0.0: 417/chronyd udp 0 0 127.0.0.1:323 0.0.0.0: 417/chronyd udp6 0 0 :::123 ::: 417/chronyd root@VM_203_146_centos ~# root@VM_203_146_centos ~# root@VM_203_146_centos ~# root@VM_203_146_centos ~# netstat -tunlpActive 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 645/sshd tcp 0 0 127.0.0.1:25 0.0.0.0: LISTEN 1891/master tcp6 0 0 :::22 ::: LISTEN 645/sshd udp 0 0 0.0.0.0:123 0.0.0.0: 417/chronyd udp 0 0 127.0.0.1:323 0.0.0.0: 417/chronyd udp6 0 0 :::123 ::: 417/chronyd root@VM_203_146_centos ~# root@VM_203_146_centos ~# root@VM_203_146_centos ~# root@VM_203_146_centos ~# root@VM_203_146_centos ~# root@VM_203_146_centos ~# root@VM_203_146_centos ~# root@VM_203_146_centos ~# root@VM_203_146_centos ~# root@VM_203_146_centos ~# service httpd startRedirecting to /bin/systemctl start httpd.serviceroot@VM_203_146_centos ~# service mysqld startRedirecting to /bin/systemctl start mysqld.serviceFailed to issue method call: Unit mysqld.service failed to load: No such file or directory.root@VM_203_146_centos ~# root@VM_203_146_centos ~# root@VM_203_146_centos ~# service php-fpm startRedirecting to /bin/systemctl start php-fpm.serviceroot@VM_203_146_centos ~# root@VM_203_146_centos ~# root@VM_203_146_centos ~# netstat -tunlpActive Internet connections (only servers)Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:9000 0.0.0.0: LISTEN 26749/php-fpm: mast tcp 0 0 0.0.0.0:80 0.0.0.0: LISTEN 26718/httpd tcp 0 0 0.0.0.0:22 0.0.0.0: LISTEN 645/sshd tcp 0 0 127.0.0.1:25 0.0.0.0: LISTEN 1891/master tcp6 0 0 :::22 ::: LISTEN 645/sshd udp 0 0 0.0.0.0:123 0.0.0.0: 417/chronyd udp 0 0 127.0.0.1:323 0.0.0.0: 417/chronyd udp6 0 0 :::123 ::: 417/chronyd root@VM_203_146_centos ~# root@VM_203_146_centos ~# root@VM_203_146_centos ~# service mysqld startRedirecting to /bin/systemctl start mysqld.serviceFailed to issue method call: Unit mysqld.service failed to load: No such file or directory.root@VM_203_146_centos ~#

相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档