{"rsdb":{"rid":"239571","subhead":"","postdate":"0","aid":"165096","fid":"103","uid":"1","topic":"1","content":"
\n

\u4e00\u3001apache\u3001php\u3001mysql\u5b89\u88c5<\/span><\/strong><\/p> \n

\u5b89\u88c5\u987a\u5e8f\uff1aapache\/mysql    \u6700\u540e\u5b89\u88c5php   \u524d\u4e24\u8005\u987a\u5e8f\u65e0\u6240\u8c13\u3002 <\/p> \n

1.\u5b89\u88c5apache<\/span><\/strong><\/p> \n

\u3000\u3000\u9700\u8981\u670d\u52a1\u5668\u8054\u7f51<\/strong><\/p> \n

\u3000\u3000\u5b89\u88c5\uff1a<\/strong>yum install -y httpd<\/strong><\/span><\/p> \n

\u3000\u3000\u8fd0\u884c\uff1a<\/strong>\/bin\/systemctl start httpd.service<\/strong><\/span><\/p> \n

\u3000\u3000\u6267\u884c\u5b8c\u8fd0\u884c\u547d\u4ee4\u4e4b\u540e\u662f\u770b\u4e0d\u5230\u6548\u679c\u7684\uff0c\u8fd9\u65f6\u5019\u518d\u8f93\u5165\u67e5\u770bapache\u670d\u52a1\u72b6\u6001\u547d\u4ee4\u6765\u67e5\u770b\u670d\u52a1\u662f\u5426\u5df2\u7ecf\u542f\u52a8\uff1a<\/span><\/span><\/strong><\/p> \n

\u3000\u3000\u3000\u3000\u67e5\u770b\u72b6\u6001\uff1a<\/strong>service httpd status<\/strong><\/span><\/p> \n

\u3000\u3000\u3000\u3000Apache\u5f00\u542f\u670d\u52a1\uff1a<\/span><\/strong>systemctl start httpd<\/strong><\/span><\/p> \n

\u3000\u3000\u3000\u3000Apache\u505c\u6b62\u670d\u52a1\uff1a<\/span><\/strong>systemctl stop httpd<\/strong><\/span><\/p> \n

 <\/p> \n

\u3000\u3000\u6d4b\u8bd5apache\u670d\u52a1\u662f\u5426\u6b63\u5e38\u5f00\u542f\uff0c\u5728\u6211\u4eec\u672c\u5730\u6d4f\u89c8\u5668\u91cc\u8f93\u5165\u4e91\u670d\u52a1\u5668\u7684\u516c\u7f51ip\uff0c\u6211\u8fd9\u91cc\u4ee5118.89.32.6\u4e3a\u4f8b\"\"<\/span><\/span><\/span><\/span><\/span><\/span><\/strong><\/p> \n

\u5982\u4e0a\u6240\u793a\uff0c\u8868\u793aapache\u6b63\u5e38\u5f00\u542f\uff1b<\/span><\/span><\/p> \n

 <\/p> \n

2.\u5b89\u88c5mysql<\/span><\/strong><\/p> \n

\u3000\u3000\u3000\u3000wget http:\/\/dev.mysql.com\/get\/mysql-community-release-el7-5.noarch.rpm<\/span><\/strong>
\u3000\u3000\u3000\u3000rpm -ivh mysql-community-release-el7-5.noarch.rpm<\/span><\/strong>
\u3000\u3000\u3000\u3000yum install mysql-community-server<\/span><\/span><\/strong>
\u3000\u3000\u3000\u3000\u6210\u529f\u5b89\u88c5\u4e4b\u540e\u91cd\u542fmysql\u670d\u52a1<\/span><\/p> \n

\u3000\u3000\u3000\u3000<\/span><\/strong>service mysqld restart<\/span><\/strong><\/span><\/p> \n

\u3000\u3000\u3000\u3000\u521d\u6b21\u5b89\u88c5mysql\u662froot\u8d26\u6237\u662f\u6ca1\u6709\u5bc6\u7801\u7684
\u3000\u3000\u3000\u3000\u8bbe\u7f6e\u5bc6\u7801\u7684\u65b9\u6cd5\uff1a<\/span><\/span><\/span><\/p> \n

\u3000\u3000\u3000\u3000\u8f93\u5165mysql -uroot\u8fdb\u5165mysql\u6570\u636e\u5e93
\u3000\u3000\u3000\u3000\u3000\u3000mysql> set password for \u2018root\u2019@\u2018localhost\u2019 = password('newpasswd');
\u3000\u3000\u3000\u3000\u3000\u3000mysql> quit\u3000\u3000\u3000<\/strong><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p> \n

\u3000\u3000\u3000\u3000\u8fdc\u7a0b\u6388\u6743\u8fde\u63a5mysql
\u3000\u3000\u3000\u3000mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '\u4f60\u8981\u8bbe\u7f6e\u7684\u6570\u636e\u5e93\u5bc6\u7801' WITH GRANT OPTION;<\/span><\/span><\/span><\/span><\/p> \n

\u3000\u3000\u3000\u3000mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '\u4f60\u8981\u8bbe\u7f6e\u7684\u6570\u636e\u5e93\u5bc6\u7801' WITH GRANT OPTION;
\u3000\u3000\u3000\u3000mysql>FLUSH PRIVILEGES;<\/span><\/span><\/p> \n

\u6ce8\u89e3\uff1a<\/span><\/p> \n

1.RPM<\/strong>\uff1a  \u662fRPM Package Manager\uff08RPM\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\uff09\uff0c\u4e00\u79cd\u7528\u4e8e\u4e92\u8054\u7f51<\/span><\/a>\u4e0b\u8f7d\u5305\u7684\u6253\u5305\u53ca\u5b89\u88c5\u5de5\u5177\uff0c\u5b83\u5305\u542b\u5728\u67d0\u4e9bLinux\u5206\u53d1\u7248\u4e2d\u3002\u5b83\u751f\u6210\u5177\u6709.RPM\u6269\u5c55\u540d\u7684\u6587\u4ef6\u3002\u4e0eDpkg<\/a>\u7c7b\u4f3c\u3002<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p> \n

\u5bf9\u5e94\u547d\u4ee4\uff1a<\/span><\/strong><\/p> \n

\u3000\u3000\u5728Terminal\u4e2d\uff0c\u57fa\u672c\u7684\u5b89\u88c5\u6307\u4ee4\u5982\u4e0b\uff1a<\/span><\/span><\/p> \n

\u3000\u3000rpm \uff0di xv\uff0d3.10a\uff0d13.i386.rpm<\/span><\/span><\/span><\/span><\/span><\/span><\/p> \n

\u3000\u3000\u5982\u679c\u4f60\u7684\u8fde\u7f51\u901f\u5ea6\u8db3\u591f\u5feb\uff0c\u4e5f\u53ef\u4ee5\u76f4\u63a5\u4ece\u7f51\u7edc\u4e0a\u5b89\u88c5\u5e94\u7528\u8f6f\u4ef6\uff0c\u53ea\u9700\u8981\u5728\u8f6f\u4ef6\u7684\u6587\u4ef6\u540d\u524d\u52a0\u4e0a\u9002\u5f53\u7684URL<\/a>\u8def\u5f84\u3002<\/span><\/span><\/p> \n

\u3000\u3000\u4f5c\u4e3a\u4e00\u4e2a\u8f6f\u4ef6\u5305\u7ba1\u7406\u5de5\u5177\uff0cRPM\u7ba1\u7406\u7740\u7cfb\u7edf\u5df2\u5b89\u88c5\u7684\u6240\u6709RPM\u7a0b\u5e8f\u7ec4\u4ef6\u7684\u8d44\u6599\u3002\u6211\u4eec\u4e5f\u53ef\u4ee5\u4f7f\u7528RPM\u6765\u5378\u8f7d\u76f8\u5173\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/span><\/span><\/span><\/span><\/span><\/span><\/p> \n

\u3000\u3000rpm \uff0de xv<\/span><\/span><\/p> \n

\u3000\u3000RPM\u7684\u5e38\u7528\u53c2\u6570\u8fd8\u5305\u62ec\uff1a<\/span><\/p> \n

\u3000\u3000\u3000\u3000\uff0dvh\uff1a\u663e\u793a\u5b89\u88c5\u8fdb\u5ea6\uff1b<\/span><\/span><\/p> \n

\u3000\u3000\u3000\u3000\uff0dU\uff1a\u5347\u7ea7\u8f6f\u4ef6\u5305\uff1b<\/span><\/span><\/p> \n

\u3000\u3000\u3000\u3000\uff0dqpl\uff1a\u5217\u51faRPM\u8f6f\u4ef6\u5305\u5185\u7684\u6587\u4ef6\u4fe1\u606f\uff1b<\/span><\/span><\/span><\/span><\/p> \n

\u3000\u3000\u3000\u3000\uff0dqpi\uff1a\u5217\u51faRPM\u8f6f\u4ef6\u5305\u7684\u63cf\u8ff0\u4fe1\u606f\uff1b<\/span><\/span><\/span><\/span><\/p> \n

\u3000\u3000\u3000\u3000\uff0dqf\uff1a\u67e5\u627e\u6307\u5b9a\u6587\u4ef6\u5c5e\u4e8e\u54ea\u4e2aRPM\u8f6f\u4ef6\u5305\uff1b<\/span><\/span><\/span><\/span><\/p> \n

\u3000\u3000\u3000\u3000\uff0dVa\uff1a\u6821\u9a8c\u6240\u6709\u7684RPM\u8f6f\u4ef6\u5305\uff0c\u67e5\u627e\u4e22\u5931\u7684\u6587\u4ef6\uff1b<\/span><\/span><\/span><\/span><\/p> \n

\u3000\u3000\u3000\u3000\uff0dqa: \u67e5\u627e\u76f8\u5e94\u6587\u4ef6\uff0c\u5982 rpm -qa mysql<\/span><\/span><\/span><\/p> \n

2.YUM<\/strong>\uff1aYum\uff08\u5168\u79f0\u4e3a Yellow dog Updater, Modified\uff09\u662f\u4e00\u4e2a\u5728Fedora\u548cRedHat\u4ee5\u53caCentOS\u4e2d\u7684Shell<\/a>\u524d\u7aef\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u3002\u57fa\u4e8eRPM<\/a>\u5305\u7ba1\u7406\uff0c\u80fd\u591f\u4ece\u6307\u5b9a\u7684\u670d\u52a1\u5668\u81ea\u52a8\u4e0b\u8f7dRPM\u5305\u5e76\u4e14\u5b89\u88c5\uff0c\u53ef\u4ee5\u81ea\u52a8\u5904\u7406\u4f9d\u8d56\u6027\u5173\u7cfb\uff0c\u5e76\u4e14\u4e00\u6b21\u5b89\u88c5\u6240\u6709\u4f9d\u8d56\u7684\u8f6f\u4ef6\u5305\uff0c\u65e0\u987b\u7e41\u7410\u5730\u4e00\u6b21\u6b21\u4e0b\u8f7d\u3001\u5b89\u88c5\u3002<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p> \n

\u5bf9\u5e94\u547d\u4ee4\uff1a<\/span><\/strong><\/p> \n

 <\/p> \n

\u3000\u3000\u5b89\u88c5\u8f6f\u4ef6(\u4ee5foo-x.x.x.rpm\u4e3a\u4f8b\uff09<\/span><\/span><\/span><\/span><\/strong>\uff1ayum install foo-x.x.x.rpm<\/span><\/p> \n

\u3000\u3000\u5220\u9664\u8f6f\u4ef6<\/span><\/strong>\uff1ayum remove foo-x.x.x.rpm\u6216\u8005yum erase foo-x.x.x.rpm<\/span><\/span><\/span><\/p> \n

\u3000\u3000\u5347\u7ea7\u8f6f\u4ef6<\/span><\/strong>\uff1ayum upgrade foo\u6216\u8005yum update fo<\/span><\/span><\/span><\/p> \n

\u3000\u3000\u67e5\u8be2\u4fe1\u606f<\/span><\/strong>\uff1ayum info foo<\/span><\/p> \n

\u3000\u3000\u641c\u7d22\u8f6f\u4ef6\uff08\u4ee5\u5305\u542bfoo\u5b57\u6bb5\u4e3a\u4f8b\uff09<\/span><\/span><\/strong>\uff1ayum search foo<\/span><\/p> \n

\u3000\u3000\u663e\u793a\u8f6f\u4ef6\u5305\u4f9d\u8d56\u5173\u7cfb<\/span><\/strong>\uff1ayum deplist foo
\u3000\u3000\u3000\u3000-e \u9759\u9ed8\u6267\u884c 
\u3000\u3000\u3000\u3000-t \u5ffd\u7565\u9519\u8bef
\u3000\u3000\u3000\u3000-R[\u5206\u949f] \u8bbe\u7f6e\u7b49\u5f85\u65f6\u95f4
\u3000\u3000\u3000\u3000-y \u81ea\u52a8\u5e94\u7b54yes
\u3000\u3000\u3000\u3000--skip-broken \u5ffd\u7565\u4f9d\u8d56\u95ee\u9898
\u3000\u3000\u3000\u3000--nogpgcheck \u5ffd\u7565GPG\u9a8c\u8bc1<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p> \n

\u3000\u3000\u3000\u3000check-update \u68c0\u67e5\u53ef\u66f4\u65b0\u7684\u5305
\u3000\u3000\u3000\u3000clearn \u6e05\u9664\u5168\u90e8
\u3000\u3000\u3000\u3000clean packages \u6e05\u9664\u4e34\u65f6\u5305\u6587\u4ef6\uff08\/var\/cache\/yum \u4e0b\u6587\u4ef6\uff09
\u3000\u3000\u3000\u3000clearn headers \u6e05\u9664rpm\u5934\u6587\u4ef6
\u3000\u3000\u3000\u3000clean oldheaders \u6e05\u9664\u65e7\u7684rpm\u5934\u6587\u4ef6
\u3000\u3000\u3000\u3000deplist \u5217\u51fa\u5305\u7684\u4f9d\u8d56
\u3000\u3000\u3000\u3000list \u53ef\u5b89\u88c5\u548c\u53ef\u66f4\u65b0\u7684RPM\u5305
\u3000\u3000\u3000\u3000list installed \u5df2\u5b89\u88c5\u7684\u5305
\u3000\u3000\u3000\u3000list extras \u5df2\u5b89\u88c5\u4e14\u4e0d\u5728\u8d44\u6e90\u5e93\u7684\u5305
\u3000\u3000\u3000\u3000info \u53ef\u5b89\u88c5\u548c\u53ef\u66f4\u65b0\u7684RPM\u5305 \u4fe1\u606f
\u3000\u3000\u3000\u3000info installed \u5df2\u5b89\u88c5\u5305\u7684\u4fe1\u606f(-qa \u53c2\u6570\u76f8\u4f3c)
\u3000\u3000\u3000\u3000install[RPM\u5305] \u5b89\u88c5\u5305
\u3000\u3000\u3000\u3000localinstall \u5b89\u88c5\u672c\u5730\u7684 RPM\u5305
\u3000\u3000\u3000\u3000update[RPM\u5305] \u66f4\u65b0\u5305
\u3000\u3000\u3000\u3000upgrade \u5347\u7ea7\u7cfb\u7edf
\u3000\u3000\u3000\u3000search[\u5173\u952e\u8bcd] \u641c\u7d22\u5305
\u3000\u3000\u3000\u3000provides[\u5173\u952e\u8bcd] \u641c\u7d22\u7279\u5b9a\u5305\u6587\u4ef6\u540d
\u3000\u3000\u3000\u3000reinstall[RPM\u5305] \u91cd\u65b0\u5b89\u88c5\u5305
\u3000\u3000\u3000\u3000repolist \u663e\u793a\u8d44\u6e90\u5e93\u7684\u914d\u7f6e
\u3000\u3000\u3000\u3000resolvedep \u6307\u5b9a\u4f9d\u8d56
\u3000\u3000\u3000\u3000remove[RPM\u5305] \u5378\u8f7d\u5305<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p> \n

 <\/p> \n

3.WGET<\/strong>\uff1a<\/span><\/p> \n

 \u3000\u3000wget<\/strong> \u662f\u4e00\u4e2a\u4ece\u7f51\u7edc\u4e0a\u81ea\u52a8\u4e0b\u8f7d\u6587\u4ef6\u7684\u81ea\u7531\u5de5\u5177\uff0c\u652f\u6301\u901a\u8fc7 HTTP\u3001HTTPS\u3001FTP \u4e09\u4e2a\u6700\u5e38\u89c1\u7684 TCP\/IP\u534f\u8bae<\/span><\/a> \u4e0b\u8f7d\uff0c\u5e76\u53ef\u4ee5\u4f7f\u7528 HTTP \u4ee3\u7406\u3002"wget" \u8fd9\u4e2a\u540d\u79f0\u6765\u6e90\u4e8e \u201cWorld Wide Web\u201d \u4e0e \u201cget\u201d \u7684\u7ed3\u5408\u3002 <\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p> \n

\u3000\u3000\u6240\u8c13\u81ea\u52a8\u4e0b\u8f7d\uff0c\u662f\u6307 wget \u53ef\u4ee5\u5728\u7528\u6237\u9000\u51fa\u7cfb\u7edf\u7684\u4e4b\u540e\u5728\u7ee7\u7eed\u540e\u53f0\u6267\u884c\uff0c\u76f4\u5230\u4e0b\u8f7d\u4efb\u52a1\u5b8c\u6210\u3002<\/span><\/span><\/p> \n

 <\/p> \n

\u5982\u679c\u4ee5\u4e0a\u4e24\u884c\u547d\u4ee4\u90fd\u6267\u884c\u6210\u529f\uff0c\u663e\u793acomplete\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528Navicat \u4e4b\u7c7b\u7684\u6765\u7ba1\u7406Mysql\u6570\u636e\u5e93<\/span><\/span><\/strong><\/a><\/span><\/span><\/span><\/span><\/p> \n

\"\"<\/p> \n

 <\/p> \n

 <\/p> \n

3.\u5b89\u88c5php<\/strong><\/p> \n

 \u3000\u3000\u3000\u3000\u5206\u6b65\u5f0f\u5b89\u88c5\uff1a<\/strong><\/p> \n

\u3000\u3000\u3000\u3000\u4e0b\u8f7dphp\uff1awget http:\/\/cn2.php<\/strong>.NET<\/strong><\/a>\/get\/php-7.0.11.tar.gz\/from\/this\/mirror<\/strong>
<\/strong>\u3000\u3000\u3000\u3000\u89e3\u538b\uff1atar -zxvf mirror<\/strong>
<\/strong>\u3000\u3000\u3000\u3000\u5b89\u88c5gcc\uff1ayum install -y gcc gcc+ libxml2-devel
<\/strong>\u3000\u3000\u3000\u3000\u7f16\u8bd1\uff1a.\/configure --prefix=\/usr\/local\/php7 --enable-fpm<\/strong><\/p> \n

\u3000\u3000\u3000\u3000\u4e5f\u6709\u6bd4\u8f83\u7b80\u5355\u7684yum\u5b89\u88c5\u65b9\u5f0f<\/strong>\uff08\u5728\u7ebf\u5b89\u88c5\uff0c\u65b9\u4fbf\u7701\u4e8b\uff09<\/strong>\uff1a<\/p> \n

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000yum install -y php <\/strong>    \u7b49\u5f85\u5b89\u88c5\u5b8c\u6210<\/strong><\/p> \n

\u3000\u3000\u3000\u3000\u518d\u8f93\u5165\u5982\u4e0b\u547d\u4ee4\u8fdb\u884cphp\u7ec4\u4ef6\u5b89\u88c5\uff1a<\/strong><\/p> \n

\u3000\u3000\u3000\u3000yum install -y<\/strong> php-gd php-mysql libjpeg* php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-bcmath php-mhash libmcrypt<\/strong><\/p> \n

\u3000\u3000\u3000\u3000\u6d4b\u8bd5php\u662f\u5426\u6b63\u5e38\u5b89\u88c5\uff0c\u8f93\u5165php echo <\/strong>\u201c<\/strong>XXX<\/strong>\u201d<\/strong>,\u82e5\u663e\u793a could not open input file echo ,\u8bf4\u660e\u5df2\u7ecf\u5b89\u88c5\u6210\u529f\uff0c\u6216\u8005\u5199\u4e00\u4e2aphp\u6587\u4ef6\u6267\u884c\u4e00\u4e0b\u5373\u53ef;<\/strong><\/p> \n

\u3000\u3000\u5982\u679cphp","orderid":"0","title":"centos 7.0 \u642d\u5efaLAMP\u73af\u5883(\u4e00)","smalltitle":"","mid":"0","fname":"Linux","special_id":"0","bak_id":"0","info":"0","hits":"9145","pages":"2","comments":"0","posttime":"2017-10-16 18:20:43","list":"1508149243","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"http:\/\/images2017.cnblogs.com\/blog\/1147414\/201708\/1147414-20170804225954756-74983358.png","ispic":"1","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"centos<\/A> 7.0<\/A> \u642d\u5efa<\/A> LAMP<\/A> \u73af\u5883<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"head\";s:0:\"\";s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";}","target":"0","ip":"113.108.110.181","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":"centos 7.0 \u642d\u5efaLAMP\u73af\u5883","lastview":"1713547702","digg_num":"2643","digg_time":"0","forbidcomment":"0","ifvote":"0","heart":"","htmlname":"","city_id":"0"},"page":"1"}