全部 文章 问答 分享 共找到1个相关内容
[文章] Linux(CentOS发行版)LAMP配置
背景:电脑是mac,服务器是CentOS6.5==================================这样用起来也方便,mac自带的SSH,FTP都不用安装了,直接使用SSH的sFtp就可以了。连接上会提示欢迎信息的哈!windows可以使用powershell或者ppty之类的支持ssh连接的即可。安装apache直接输入指令:yuminstallhttpdLoadedplugins:securitybase|3.7kB00:00base/primary_db|4.7MB00:04epel|4.3kB00:00epel/primary_db|5.9MB00:05extras|3.4kB00:00extras/primary_db|37kB00:00updates|3.4kB00:00updates/primary_db|3.1MB00:02SettingupInstallProcessResolvingDependencies-->Runningtransactioncheck--->Packagehttpd.x86_640:2.2.15-54.el6.centoswillbeinstalled-->ProcessingDependency:httpd-tools=2.2.15-54.el6.centosforpackage:httpd-2.2.15-54.el6.centos.x86_64-->ProcessingDependency:apr-util-ldapforpackage:httpd-2.2.15-54.el6.centos.x86_64-->Runningtransactioncheck--->Packageapr-util-ldap.x86_640:1.3.9-3.el6_0.1willbeinstalled--->Packagehttpd-tools.x86_640:2.2.15-54.el6.centoswillbeinstalled-->FinishedDependencyResolutionDependenciesResolved================================================================================PackageArchVersionRepositorySize================================================================================Installing:httpdx86_642.2.15-54.el6.centosupdates833kInstallingfordependencies:apr-util-ldapx86_641.3.9-3.el6_0.1base15khttpd-toolsx86_642.2.15-54.el6.centosupdates79kTransactionSummary================================================================================Install3Package(s)Totaldownloadsize:927kInstalledsize:3.1MIsthisok[y/N]:yO不Ok,必须的嘛—>Isthisok[y/N]:y然后又哗啦哗啦地跑了!DownloadingPackages:(1/3):apr-util-ldap-1.3.9-3.el6_0.1.x86_64.rpm|15kB00:00(2/3):httpd-2.2.15-54.el6.centos.x86_64.rpm|833kB00:00(3/3):httpd-tools-2.2.15-54.el6.centos.x86_64.rpm|79kB00:00--------------------------------------------------------------------------------Total971kB/s|927kB00:00Runningrpm_check_debugRunningTransactionTestTransactionTestSucceededRunningTransactionInstalling:apr-util-ldap-1.3.9-3.el6_0.1.x86_641/3Installing:httpd-tools-2.2.15-54.el6.centos.x86_642/3Installing:httpd-2.2.15-54.el6.centos.x86_643/3Verifying:httpd-tools-2.2.15-54.el6.centos.x86_641/3Verifying:httpd-2.2.15-54.el6.centos.x86_642/3Verifying:apr-util-ldap-1.3.9-3.el6_0.1.x86_643/3Installed:httpd.x86_640:2.2.15-54.el6.centosDependencyInstalled:apr-util-ldap.x86_640:1.3.9-3.el6_0.1httpd-tools.x86_640:2.2.15-54.el6.centosComplete!看到上面这个单词出现,乐坏了,是吧!哈哈,这应该是初中学的吧!完成了!接下来,我们是不是要爽一把呀,启动apache服务器呗!怎么启动呢,看码:servicehttpdstart这种是比较简单的方式,还有一种就是进入配置目录启动,贫僧不喜欢这种:/etc/init.d/httpdstart好吧,不管黑猫白猫,会抓老鼠的就是猫。但是,注意了,哈哈,提示这个,有不有?(可能显示不完,意思一下得了)Startinghttpd:httpd:Couldnotreliablydeterminetheserver'sfullyqualifieddomainname,using【ip地址】forServerName[OK]什么意思呀?我也不知道,嘻嘻。毕竟我是做完英语听力就交卷的人。可能的意思是:开启httpd,然后呢,这玩意思不可以确切地生命域名,所以就用这个Ip地址作为域名。那问题来了,咋整呢?好说,是吧!打开配置文件:cd/etc/httpd/conf切换到上面这个目录,可以ls一下看到如下:httpd.confmagic对,就是这货了,httpd.conf。然后用编辑器打开,用vi就可以了。vihttpd.conf但是一看,太多内容了是吧,上下移动都看不完。那么就进入命令模式查找一下吧::/ServerName按n往下找,找到这一个:#ServerNamewww.example.com:80把前面的#去掉(进入编辑模式删除即可,然后wq保存退出,如果怕自己操作失败的,那么就备份一下吧。),那么你的服务器名称,就是这域名啦,自己起啦!一般来说,我们的apache要随关开机而启动的,所以我们还要做一件事,就是开机启动apachechkconfighttpdon执行完,没消息是吧,没消息就是好消息哈!那么,到这里的话,就安装完了Apache服务器了。Mysql数据库的安装mysql的安装也很简单,安装命令如下:yuminstallmysqlmysql-server提示:Loadedplugins:securitySettingupInstallProcessResolvingDependencies-->Runningtransactioncheck--->Packagemysql.x86_640:5.1.73-7.el6willbeinstalled-->ProcessingDependency:mysql-libs=5.1.73-7.el6forpackage:mysql-5.1.73-7.el6.x86_64--->Packagemysql-server.x86_640:5.1.73-7.el6willbeinstalled-->ProcessingDependency:perl-DBIforpackage:mysql-server-5.1.73-7.el6.x86_64-->ProcessingDependency:perl-DBD-MySQLforpackage:mysql-server-5.1.73-7.el6.x86_64-->ProcessingDependency:perl(DBI)forpackage:mysql-server-5.1.73-7.el6.x86_64-->Runningtransactioncheck--->Packagemysql-libs.x86_640:5.1.73-3.el6_5willbeupdated--->Packagemysql-libs.x86_640:5.1.73-7.el6willbeanupdate--->Packageperl-DBD-MySQL.x86_640:4.013-3.el6willbeinstalled--->Packageperl-DBI.x86_640:1.609-4.el6willbeinstalled-->FinishedDependencyResolutionDependenciesResolved========================================================================================PackageArchVersionRepositorySize========================================================================================Installing:mysqlx86_645.1.73-7.el6base894kmysql-serverx86_645.1.73-7.el6base8.6MInstallingfordependencies:perl-DBD-MySQLx86_644.013-3.el6base134kperl-DBIx86_641.609-4.el6base705kUpdatingfordependencies:mysql-libsx86_645.1.73-7.el6base1.2MTransactionSummary========================================================================================Install4Package(s)Upgrade1Package(s)Totaldownloadsize:12MIsthisok[y/N]:y还是y即可进行下载安装:DownloadingPackages:(1/5):mysql-5.1.73-7.el6.x86_64.rpm|894kB00:00(2/5):mysql-libs-5.1.73-7.el6.x86_64.rpm|1.2MB00:00(3/5):mysql-server-5.1.73-7.el6.x86_64.rpm|8.6MB00:08(4/5):perl-DBD-MySQL-4.013-3.el6.x86_64.rpm|134kB00:00(5/5):perl-DBI-1.609-4.el6.x86_64.rpm|705kB00:00----------------------------------------------------------------------------------------Total1.1MB/s|12MB00:10Runningrpm_check_debugRunningTransactionTestTransactionTestSucceededRunningTransactionUpdating:mysql-libs-5.1.73-7.el6.x86_641/6Installing:perl-DBI-1.609-4.el6.x86_642/6Installing:perl-DBD-MySQL-4.013-3.el6.x86_643/6Installing:mysql-5.1.73-7.el6.x86_644/6Installing:mysql-server-5.1.73-7.el6.x86_645/6Cleanup:mysql-libs-5.1.73-3.el6_5.x86_646/6Verifying:mysql-5.1.73-7.el6.x86_641/6Verifying:mysql-libs-5.1.73-7.el6.x86_642/6Verifying:perl-DBD-MySQL-4.013-3.el6.x86_643/6Verifying:perl-DBI-1.609-4.el6.x86_644/6Verifying:mysql-server-5.1.73-7.el6.x86_645/6Verifying:mysql-libs-5.1.73-3.el6_5.x86_646/6Installed:mysql.x86_640:5.1.73-7.el6mysql-server.x86_640:5.1.73-7.el6DependencyInstalled:perl-DBD-MySQL.x86_640:4.013-3.el6perl-DBI.x86_640:1.609-4.el6DependencyUpdated:mysql-libs.x86_640:5.1.73-7.el6Complete!嗯,安装完成了!欧耶!再爽一把,启动Mysql服务,我只说一种就够了哈,嘻嘻!servicemysqldstart提示:InitializingMySQLdatabase:InstallingMySQLsystemtables...OKFillinghelptables...OKTostartmysqldatboottimeyouhavetocopysupport-files/mysql.servertotherightplaceforyoursystemPLEASEREMEMBERTOSETAPASSWORDFORTHEMySQLrootUSER!Todoso,starttheserver,thenissuethefollowingcommands:/usr/bin/mysqladmin-urootpassword'new-password'/usr/bin/mysqladmin-uroot-hiZuf6innyuqc4mbvq0oycgZpassword'new-password'Alternativelyyoucanrun:/usr/bin/mysql_secure_installationwhichwillalsogiveyoutheoptionofremovingthetestdatabasesandanonymoususercreatedbydefault.Thisisstronglyrecommendedforproductionservers.Seethemanualformoreinstructions.YoucanstarttheMySQLdaemonwith:cd/usr;/usr/bin/mysqld_safe&YoucantesttheMySQLdaemonwithmysql-test-run.plcd/usr/mysql-test;perlmysql-test-run.plPleasereportanyproblemswiththe/usr/bin/mysqlbugscript![OK]Startingmysqld:[OK]另外我们还有一件事,就是这个MySQL的服务,也要在开机的时候启动。所以和前面我们配置Apache的时候,一样设置即可:chkconfigmysqldon不对,是不是差点什么呢?哈哈,密码没有设置,对吧!怎么设置呢,也很简单:mysql_secure_installation提示曰(yue):NOTE:RUNNINGALLPARTSOFTHISSCRIPTISRECOMMENDEDFORALLMySQLSERVERSINPRODUCTIONUSE!PLEASEREADEACHSTEPCAREFULLY!InordertologintoMySQLtosecureit,we'llneedthecurrentpasswordfortherootuser.Ifyou'vejustinstalledMySQL,andyouhaven'tsettherootpasswordyet,thepasswordwillbeblank,soyoushouldjustpressenterhere.Entercurrentpasswordforroot(enterfornone):意思大概就是说:这个安全设置是为的有的服务设置的,请你认真阅读每一个步骤。为了确保安全,我们需要为root用户录入密码,如果你仅仅安装了MySQL,但是你并没有设置密码,那么,这个密码默认为空的。也就是说,我们直接回车,就可以进入了。直接回车以后提示说:Setrootpassword?[Y/n]yNewpassword:让我们设置新的密码。我们输入密码一次,再确定一次,回车。就可以了。后面还有一些配置,大同小异。直到这里,就完成了:Alldone!Ifyou'vecompletedalloftheabovesteps,yourMySQLinstallationshouldnowbesecure.ThanksforusingMySQL!我们可以测试一下,直接登陆一下mysql数据库:#mysql-uroot-p回车,如下,也就是进入了mysql数据库了。Enterpassword:WelcometotheMySQLmonitor.Commandsendwith;or\g.YourMySQLconnectionidis11Serverversion:5.1.73SourcedistributionCopyright(c)2000,2013,Oracleand/oritsaffiliates.Allrightsreserved.OracleisaregisteredtrademarkofOracleCorporationand/oritsaffiliates.Othernamesmaybetrademarksoftheirrespectiveowners.Type'help;'or'\h'forhelp.Type'\c'toclearthecurrentinputstatement.PHP及相关模块的安装话不多说,直接上:yuminstallphp提示:Loadedplugins:securitySettingupInstallProcessResolvingDependencies-->Runningtransactioncheck--->Packagephp.x86_640:5.3.3-48.el6_8willbeinstalled-->ProcessingDependency:php-common(x86-64)=5.3.3-48.el6_8forpackage:php-5.3.3-48.el6_8.x86_64-->ProcessingDependency:php-cli(x86-64)=5.3.3-48.el6_8forpackage:php-5.3.3-48.el6_8.x86_64-->Runningtransactioncheck--->Packagephp-cli.x86_640:5.3.3-48.el6_8willbeinstalled--->Packagephp-common.x86_640:5.3.3-48.el6_8willbeinstalled-->FinishedDependencyResolutionDependenciesResolved================================================================================PackageArchVersionRepositorySize================================================================================Installing:phpx86_645.3.3-48.el6_8updates1.1MInstallingfordependencies:php-clix86_645.3.3-48.el6_8updates2.2Mphp-commonx86_645.3.3-48.el6_8updates530kTransactionSummary================================================================================Install3Package(s)Totaldownloadsize:3.8MInstalledsize:13MIsthisok[y/N]:直接y即可下载安装:Isthisok[y/N]:yDownloadingPackages:(1/3):php-5.3.3-48.el6_8.x86_64.rpm|1.1MB00:00(2/3):php-cli-5.3.3-48.el6_8.x86_64.rpm|2.2MB00:01(3/3):php-common-5.3.3-48.el6_8.x86_64.rpm|530kB00:00--------------------------------------------------------------------------------Total1.2MB/s|3.8MB00:03Runningrpm_check_debugRunningTransactionTestTransactionTestSucceededRunningTransactionInstalling:php-common-5.3.3-48.el6_8.x86_641/3Installing:php-cli-5.3.3-48.el6_8.x86_642/3Installing:php-5.3.3-48.el6_8.x86_643/3Verifying:php-common-5.3.3-48.el6_8.x86_641/3Verifying:php-cli-5.3.3-48.el6_8.x86_642/3Verifying:php-5.3.3-48.el6_8.x86_643/3Installed:php.x86_640:5.3.3-48.el6_8DependencyInstalled:php-cli.x86_640:5.3.3-48.el6_8php-common.x86_640:5.3.3-48.el6_8Complete!安装相关的模块,这里的话,一次性安装完啦:yuminstallphp-mysqlphp-gdlibjpeg*php-imapphp-ldapphp-odbcphp-pearphp-xmlphp-xmlrpcphp-mbstringphp-mcryptphp-bcmathphp-mhashlibmcrypt提示后直接y就可以往下安装了:Loadedplugins:securitySettingupInstallProcessPackagelibjpeg-turbo-1.2.1-3.el6_5.x86_64alreadyinstalledandlatestversionNopackagephp-mhashavailable.ResolvingDependencies-->Runningtransactioncheck--->Packagelibjpeg-turbo-devel.x86_640:1.2.1-3.el6_5willbeinstalled--->Packagelibjpeg-turbo-static.x86_640:1.2.1-3.el6_5willbeinstalled--->Packagelibmcrypt.x86_640:2.5.8-9.el6willbeinstalled--->Packagephp-bcmath.x86_640:5.3.3-48.el6_8willbeinstalled--->Packagephp-gd.x86_640:5.3.3-48.el6_8willbeinstalled-->ProcessingDependency:libXpm.so.4()(64bit)forpackage:php-gd-5.3.3-48.el6_8.x86_64--->Packagephp-imap.x86_640:5.3.3-48.el6_8willbeinstalled-->ProcessingDependency:libc-client.so.2007()(64bit)forpackage:php-imap-5.3.3-48.el6_8.x86_64--->Packagephp-ldap.x86_640:5.3.3-48.el6_8willbeinstalled--->Packagephp-mbstring.x86_640:5.3.3-48.el6_8willbeinstalled--->Packagephp-mcrypt.x86_640:5.3.3-5.el6willbeinstalled--->Packagephp-mysql.x86_640:5.3.3-48.el6_8willbeinstalled-->ProcessingDependency:php-pdo(x86-64)forpackage:php-mysql-5.3.3-48.el6_8.x86_64--->Packagephp-odbc.x86_640:5.3.3-48.el6_8willbeinstalled-->ProcessingDependency:libodbc.so.2()(64bit)forpackage:php-odbc-5.3.3-48.el6_8.x86_64--->Packagephp-pear.noarch1:1.9.4-5.el6willbeinstalled--->Packagephp-xml.x86_640:5.3.3-48.el6_8willbeinstalled-->ProcessingDependency:libxslt.so.1(LIBXML2_1.0.24)(64bit)forpackage:php-xml-5.3.3-48.el6_8.x86_64-->ProcessingDependency:libxslt.so.1(LIBXML2_1.0.22)(64bit)forpackage:php-xml-5.3.3-48.el6_8.x86_64-->ProcessingDependency:libxslt.so.1(LIBXML2_1.0.18)(64bit)forpackage:php-xml-5.3.3-48.el6_8.x86_64-->ProcessingDependency:libxslt.so.1(LIBXML2_1.0.13)(64bit)forpackage:php-xml-5.3.3-48.el6_8.x86_64-->ProcessingDependency:libxslt.so.1(LIBXML2_1.0.11)(64bit)forpackage:php-xml-5.3.3-48.el6_8.x86_64-->ProcessingDependency:libxslt.so.1()(64bit)forpackage:php-xml-5.3.3-48.el6_8.x86_64-->ProcessingDependency:libexslt.so.0()(64bit)forpackage:php-xml-5.3.3-48.el6_8.x86_64--->Packagephp-xmlrpc.x86_640:5.3.3-48.el6_8willbeinstalled-->Runningtransactioncheck--->PackagelibXpm.x86_640:3.5.10-2.el6willbeinstalled--->Packagelibc-client.x86_640:2007e-11.el6willbeinstalled--->Packagelibxslt.x86_640:1.1.26-2.el6_3.1willbeinstalled--->Packagephp-pdo.x86_640:5.3.3-48.el6_8willbeinstalled--->PackageunixODBC.x86_640:2.2.14-14.el6willbeinstalled-->ProcessingDependency:libltdl.so.7()(64bit)forpackage:unixODBC-2.2.14-14.el6.x86_64-->Runningtransactioncheck--->Packagelibtool-ltdl.x86_640:2.2.6-15.5.el6willbeinstalled-->FinishedDependencyResolutionDependenciesResolved================================================================================PackageArchVersionRepositorySize================================================================================Installing:libjpeg-turbo-develx86_641.2.1-3.el6_5base96klibjpeg-turbo-staticx86_641.2.1-3.el6_5base108klibmcryptx86_642.5.8-9.el6epel96kphp-bcmathx86_645.3.3-48.el6_8updates39kphp-gdx86_645.3.3-48.el6_8updates111kphp-imapx86_645.3.3-48.el6_8updates55kphp-ldapx86_645.3.3-48.el6_8updates43kphp-mbstringx86_645.3.3-48.el6_8updates460kphp-mcryptx86_645.3.3-5.el6epel19kphp-mysqlx86_645.3.3-48.el6_8updates86kphp-odbcx86_645.3.3-48.el6_8updates56kphp-pearnoarch1:1.9.4-5.el6base393kphp-xmlx86_645.3.3-48.el6_8updates108kphp-xmlrpcx86_645.3.3-48.el6_8updates57kInstallingfordependencies:libXpmx86_643.5.10-2.el6base51klibc-clientx86_642007e-11.el6base515klibtool-ltdlx86_642.2.6-15.5.el6base44klibxsltx86_641.1.26-2.el6_3.1base452kphp-pdox86_645.3.3-48.el6_8updates80kunixODBCx86_642.2.14-14.el6base378kTransactionSummary================================================================================Install20Package(s)Totaldownloadsize:3.2MInstalledsize:11MIsthisok[y/N]:yDownloadingPackages:(1/20):libXpm-3.5.10-2.el6.x86_64.rpm|51kB00:00(2/20):libc-client-2007e-11.el6.x86_64.rpm|515kB00:00(3/20):libjpeg-turbo-devel-1.2.1-3.el6_5.x86_64.rpm|96kB00:00(4/20):libjpeg-turbo-static-1.2.1-3.el6_5.x86_64.rpm|108kB00:00(5/20):libmcrypt-2.5.8-9.el6.x86_64.rpm|96kB00:00(6/20):libtool-ltdl-2.2.6-15.5.el6.x86_64.rpm|44kB00:00(7/20):libxslt-1.1.26-2.el6_3.1.x86_64.rpm|452kB00:00(8/20):php-bcmath-5.3.3-48.el6_8.x86_64.rpm|39kB00:00(9/20):php-gd-5.3.3-48.el6_8.x86_64.rpm|111kB00:00(10/20):php-imap-5.3.3-48.el6_8.x86_64.rpm|55kB00:00(11/20):php-ldap-5.3.3-48.el6_8.x86_64.rpm|43kB00:00(12/20):php-mbstring-5.3.3-48.el6_8.x86_64.rpm|460kB00:00(13/20):php-mcrypt-5.3.3-5.el6.x86_64.rpm|19kB00:00(14/20):php-mysql-5.3.3-48.el6_8.x86_64.rpm|86kB00:00(15/20):php-odbc-5.3.3-48.el6_8.x86_64.rpm|56kB00:00(16/20):php-pdo-5.3.3-48.el6_8.x86_64.rpm|80kB00:00(17/20):php-pear-1.9.4-5.el6.noarch.rpm|393kB00:00(18/20):php-xml-5.3.3-48.el6_8.x86_64.rpm|108kB00:00(19/20):php-xmlrpc-5.3.3-48.el6_8.x86_64.rpm|57kB00:00(20/20):unixODBC-2.2.14-14.el6.x86_64.rpm|378kB00:00--------------------------------------------------------------------------------Total2.0MB/s|3.2MB00:01Runningrpm_check_debugRunningTransactionTestTransactionTestSucceededRunningTransactionInstalling:php-pdo-5.3.3-48.el6_8.x86_641/20Installing:libjpeg-turbo-devel-1.2.1-3.el6_5.x86_642/20Installing:libtool-ltdl-2.2.6-15.5.el6.x86_643/20Installing:unixODBC-2.2.14-14.el6.x86_644/20Installing:libc-client-2007e-11.el6.x86_645/20Installing:libmcrypt-2.5.8-9.el6.x86_646/20Installing:libXpm-3.5.10-2.el6.x86_647/20Installing:libxslt-1.1.26-2.el6_3.1.x86_648/20Installing:php-xml-5.3.3-48.el6_8.x86_649/20Installing:php-gd-5.3.3-48.el6_8.x86_6410/20Installing:php-mcrypt-5.3.3-5.el6.x86_6411/20Installing:php-imap-5.3.3-48.el6_8.x86_6412/20Installing:php-odbc-5.3.3-48.el6_8.x86_6413/20Installing:libjpeg-turbo-static-1.2.1-3.el6_5.x86_6414/20Installing:php-mysql-5.3.3-48.el6_8.x86_6415/20Installing:php-bcmath-5.3.3-48.el6_8.x86_6416/20Installing:php-xmlrpc-5.3.3-48.el6_8.x86_6417/20Installing:php-ldap-5.3.3-48.el6_8.x86_6418/20Installing:php-mbstring-5.3.3-48.el6_8.x86_6419/20Installing:1:php-pear-1.9.4-5.el6.noarch20/20Verifying:libjpeg-turbo-static-1.2.1-3.el6_5.x86_641/20Verifying:php-gd-5.3.3-48.el6_8.x86_642/20Verifying:libxslt-1.1.26-2.el6_3.1.x86_643/20Verifying:libXpm-3.5.10-2.el6.x86_644/20Verifying:1:php-pear-1.9.4-5.el6.noarch5/20Verifying:php-mcrypt-5.3.3-5.el6.x86_646/20Verifying:php-imap-5.3.3-48.el6_8.x86_647/20Verifying:php-mbstring-5.3.3-48.el6_8.x86_648/20Verifying:libmcrypt-2.5.8-9.el6.x86_649/20Verifying:libc-client-2007e-11.el6.x86_6410/20Verifying:php-mysql-5.3.3-48.el6_8.x86_6411/20Verifying:libtool-ltdl-2.2.6-15.5.el6.x86_6412/20Verifying:php-ldap-5.3.3-48.el6_8.x86_6413/20Verifying:php-odbc-5.3.3-48.el6_8.x86_6414/20Verifying:unixODBC-2.2.14-14.el6.x86_6415/20Verifying:php-xmlrpc-5.3.3-48.el6_8.x86_6416/20Verifying:php-pdo-5.3.3-48.el6_8.x86_6417/20Verifying:libjpeg-turbo-devel-1.2.1-3.el6_5.x86_6418/20Verifying:php-xml-5.3.3-48.el6_8.x86_6419/20Verifying:php-bcmath-5.3.3-48.el6_8.x86_6420/20Installed:libjpeg-turbo-devel.x86_640:1.2.1-3.el6_5libjpeg-turbo-static.x86_640:1.2.1-3.el6_5libmcrypt.x86_640:2.5.8-9.el6php-bcmath.x86_640:5.3.3-48.el6_8php-gd.x86_640:5.3.3-48.el6_8php-imap.x86_640:5.3.3-48.el6_8php-ldap.x86_640:5.3.3-48.el6_8php-mbstring.x86_640:5.3.3-48.el6_8php-mcrypt.x86_640:5.3.3-5.el6php-mysql.x86_640:5.3.3-48.el6_8php-odbc.x86_640:5.3.3-48.el6_8php-pear.noarch1:1.9.4-5.el6php-xml.x86_640:5.3.3-48.el6_8php-xmlrpc.x86_640:5.3.3-48.el6_8DependencyInstalled:libXpm.x86_640:3.5.10-2.el6libc-client.x86_640:2007e-11.el6libtool-ltdl.x86_640:2.2.6-15.5.el6libxslt.x86_640:1.1.26-2.el6_3.1php-pdo.x86_640:5.3.3-48.el6_8unixODBC.x86_640:2.2.14-14.el6Complete!如果你漏装了,或者没有安装成功个别,可以这样子安装:yuminstallphp-mysql插件的名称好啦,搞定之后重启一下Apache吧!servicehttpdrestart提示:Stoppinghttpd:[OK]Startinghttpd:[OK]cd/var/www/html创建一个文件(touchinfo.php)插入内容(viinfo.php)如下:<?phpechophpinfo();?>访问一下:https://服务器的公网ip/info.php到这里的话,就安装成功了,其他需要的插件,请行脑补哈!
2019-10-21 11:40 · php / lamp / contOS / 后台
  • 1