{"id":599,"date":"2014-11-02T03:21:53","date_gmt":"2014-11-01T19:21:53","guid":{"rendered":"http:\/\/fineyi.com\/?p=599"},"modified":"2014-11-02T03:21:53","modified_gmt":"2014-11-01T19:21:53","slug":"linuxcentosnginxapachemysqlphptomcat%e7%9a%84%e9%85%8d%e7%bd%ae%e6%95%99%e7%a8%8b%ef%bc%8c%e5%90%8c%e6%97%b6%e6%94%af%e6%8c%81php%e3%80%81java","status":"publish","type":"post","link":"http:\/\/www.fineyi.com\/?p=599","title":{"rendered":"Linux|CentOS+Nginx+Apache+MySQL+PHP+Tomcat\u7684\u914d\u7f6e\u6559\u7a0b\uff0c\u5b8c\u7f8e\u652f\u6301PHP\u3001JAVA"},"content":{"rendered":"<div><span style=\"font-family: 'Microsoft Yahei';\">\u7f51\u4e0a\u6709\u5f88\u591a\u5173\u4e8eLNAMP\u6216LAMP\u7ec4\u5408\u5b89\u88c5\u7684\u6559\u7a0b(\u6211\u5199\u8fc7\u7684\u53e6\u4e00\u7bc7\u535a\u6587,\u6709\u9700\u8981\u7684\u8bf7\u79fb\u6b65-&gt;:<\/span><a title=\"LAMP\u5b89\u88c5\u624b\u8bb0(CentOS6.4+Apache-2.2.22+Mysql-5.1.63+PHP-5.2.17+phpmyadmin-3.4.10.2+ZendDebug)\" href=\"http:\/\/fineyi.com\/archives\/483.html\" target=\"_blank\" rel=\"noopener\">LAMP\u5b89\u88c5\u624b\u8bb0(CentOS6.4+Apache-2.2.22+Mysql-5.1.63+PHP-5.2.17+phpmyadmin-3.4.10.2+ZendDebug<\/a>),\u5b89\u88c5\u8fc7\u7a0b\u4e0d\u518d\u8d58\u8ff0\uff0c\u672c\u6587\u4e3b\u8981\u8bb2\u5982\u4f55\u5728LNAMP\u73af\u5883\u4e0b\u5b89\u88c5JDK+Tomcat6\u4f7f\u540c\u4e00\u53f0\u670d\u52a1\u5668\u540c\u65f6\u652f\u6301PHP\u548cJAVA\u8bed\u8a00\u3002<\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\">\u670d\u52a1\u5668\u7cfb\u7edf\u548c\u5404\u8f6f\u4ef6\u7248\u672c\u5982\u4e0b\u6240\u793a\uff1a<\/span><\/div>\n<div>\n<pre class=\"lang:default decode:true\">[root@E ~]# uname -a \nLinux E.CentOS6.4 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU\/Linux \n[root@E ~]# \/www\/wdlinux\/nginx\/sbin\/nginx -v \nnginx version: nginx\/1.2.9 \n[root@E ~]# \/www\/wdlinux\/httpd-2.2.24\/bin\/httpd -v \nServer version: Apache\/2.2.24 (Unix) \nServer built: Oct 30 2014 00:17:07 \n[root@E ~]# rpm -qa |grep mysql \nmysql-libs-5.1.66-2.el6_3.x86_64 \n[root@E ~]# \/www\/wdlinux\/php\/bin\/php -v \nCannot load Zend Extension Manager - it was built with configuration 1.2.0, whereas running engine is API220090626,NTS \nPHP 5.3.27 (cli) (built: Oct 30 2014 00:30:02) \nCopyright (c) 1997-2013 The PHP Group \nZend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies<\/pre>\n<div><a href=\"http:\/\/v3.fineyi.com\/wp-content\/uploads\/2014\/11\/1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-600\" src=\"http:\/\/v3.fineyi.com\/wp-content\/uploads\/2014\/11\/1.png\" alt=\"1\" width=\"951\" height=\"174\" srcset=\"http:\/\/www.fineyi.com\/wp-content\/uploads\/2014\/11\/1.png 951w, http:\/\/www.fineyi.com\/wp-content\/uploads\/2014\/11\/1-300x55.png 300w, http:\/\/www.fineyi.com\/wp-content\/uploads\/2014\/11\/1-768x141.png 768w\" sizes=\"auto, (max-width: 951px) 100vw, 951px\" \/><\/a><\/div>\n<div><span style=\"color: #993300;\"><strong><span style=\"font-family: 'Microsoft Yahei';\">\u5f00\u59cb\u5b89\u88c5jdk:<\/span><\/strong><\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\">\u5217\u51fayum\u5e93\u53ef\u7528\u7684jdk\u5b89\u88c5\u5305<\/span><\/div>\n<div>\n<pre class=\"lang:default decode:true\">[root@E ~]# yum -y list java* \nLoaded plugins: fastestmirror \nLoading mirror speeds from cached hostfile \n* base: mirror.bit.edu.cn \n* extras: mirror.bit.edu.cn \n* rpmforge: mirrors.neusoft.edu.cn \n* updates: mirrors.neusoft.edu.cn \nbase | 3.7 kB 00:00 \nextras | 3.3 kB 00:00 \nrpmforge | 1.9 kB 00:00 \nupdates | 3.4 kB 00:00 \nupdates\/primary_db | 171 kB 00:00 \nAvailable Packages \njava-1.5.0-gcj.x86_64 1.5.0.0-29.1.el6 base \njava-1.5.0-gcj-devel.x86_64 1.5.0.0-29.1.el6 base \njava-1.5.0-gcj-javadoc.x86_64 1.5.0.0-29.1.el6 base \njava-1.5.0-gcj-src.x86_64 1.5.0.0-29.1.el6 base \njava-1.6.0-openjdk.x86_64 1:1.6.0.33-1.13.5.0.el6_6 updates \njava-1.6.0-openjdk-demo.x86_64 1:1.6.0.33-1.13.5.0.el6_6 updates \njava-1.6.0-openjdk-devel.x86_64 1:1.6.0.33-1.13.5.0.el6_6 updates \njava-1.6.0-openjdk-javadoc.x86_64 1:1.6.0.33-1.13.5.0.el6_6 updates \njava-1.6.0-openjdk-src.x86_64 1:1.6.0.33-1.13.5.0.el6_6 updates \njava-1.7.0-openjdk.x86_64 1:1.7.0.71-2.5.3.1.el6 updates \njava-1.7.0-openjdk-demo.x86_64 1:1.7.0.71-2.5.3.1.el6 updates \njava-1.7.0-openjdk-devel.x86_64 1:1.7.0.71-2.5.3.1.el6 updates \njava-1.7.0-openjdk-javadoc.noarch 1:1.7.0.71-2.5.3.1.el6 updates \njava-1.7.0-openjdk-src.x86_64 1:1.7.0.71-2.5.3.1.el6 updates \njava-1.8.0-openjdk.x86_64 1.8.0.25-1.b17.el6 updates \njava-1.8.0-openjdk-demo.x86_64 1.8.0.25-1.b17.el6 updates \njava-1.8.0-openjdk-devel.x86_64 1.8.0.25-1.b17.el6 updates \njava-1.8.0-openjdk-headless.x86_64 1.8.0.25-1.b17.el6 updates \njava-1.8.0-openjdk-javadoc.noarch 1.8.0.25-1.b17.el6 updates \njava-1.8.0-openjdk-src.x86_64 1.8.0.25-1.b17.el6 updates \njava_cup.x86_64 1:0.10k-5.el6 base \njava_cup-javadoc.x86_64 1:0.10k-5.el6 base \njava_cup-manual.x86_64 1:0.10k-5.el6 base \njavacc.x86_64 4.1-0.5.el6 base \njavacc-demo.x86_64 4.1-0.5.el6 base \njavacc-manual.x86_64 4.1-0.5.el6 base \njavassist.noarch 3.9.0-6.el6 base \njavassist-javadoc.noarch 3.9.0-6.el6 base<\/pre>\n<\/div>\n<div><a href=\"http:\/\/v3.fineyi.com\/wp-content\/uploads\/2014\/11\/2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-601\" src=\"http:\/\/v3.fineyi.com\/wp-content\/uploads\/2014\/11\/2.png\" alt=\"2\" width=\"422\" height=\"538\" srcset=\"http:\/\/www.fineyi.com\/wp-content\/uploads\/2014\/11\/2.png 422w, http:\/\/www.fineyi.com\/wp-content\/uploads\/2014\/11\/2-235x300.png 235w\" sizes=\"auto, (max-width: 422px) 100vw, 422px\" \/><\/a><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\">\u9009\u62e9jdk1.6\u5b89\u88c5<\/span><\/div>\n<div>\n<pre class=\"lang:default decode:true\">[root@E ~]# yum -y install java-1.6.0-openjdk*<\/pre>\n<\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\">\u5176\u5b83\u7248\u672c\u8bf7\u81ea\u5df1\u4fee\u6539\u5bf9\u5e94\u7684\u7248\u672c\u53f7\u5b89\u88c5<\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\">\u68c0\u6d4b\u662f\u5426\u5b89\u88c5\u6210\u529f<\/span><\/div>\n<div>\n<pre class=\"lang:default decode:true\">[root@E ~]# java -version \njava version \"1.6.0_33\" \nOpenJDK Runtime Environment (IcedTea6 1.13.5) (rhel-1.13.5.0.el6_6-x86_64) \nOpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)<\/pre>\n<\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\"><img decoding=\"async\" src=\"file:\/\/\/C:\/Users\/yonyea\/AppData\/Local\/YNote\/Data\/yonyea@126.com\/9bc9ae80950f4ca68e724496adbf5e91\/clipboard.png\" alt=\"\" data-media-type=\"image\" data-inited=\"true\" \/><a href=\"http:\/\/v3.fineyi.com\/wp-content\/uploads\/2014\/11\/3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-602\" src=\"http:\/\/v3.fineyi.com\/wp-content\/uploads\/2014\/11\/3.png\" alt=\"3\" width=\"603\" height=\"55\" srcset=\"http:\/\/www.fineyi.com\/wp-content\/uploads\/2014\/11\/3.png 603w, http:\/\/www.fineyi.com\/wp-content\/uploads\/2014\/11\/3-300x27.png 300w\" sizes=\"auto, (max-width: 603px) 100vw, 603px\" \/><\/a><\/span><\/div>\n<div><span style=\"color: #993300;\"><strong><span style=\"font-family: 'Microsoft Yahei';\">\u5b89\u88c5tomcat6<\/span><\/strong><\/span><\/div>\n<div>\n<pre class=\"lang:default decode:true\">[root@E ~]# yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps\n\u5b89\u88c5\u6210\u529f \u542f\u52a8\n[root@E ~]# service tomcat6 start\n\u5176\u5b83\u547d\u4ee4\uff1aservice tomcat6 {start|stop|restart|condrestart|try-restart|reload|force-reload|status|version}<\/pre>\n<\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\">\u542f\u52a8\u6210\u529f\uff0c\u8bbf\u95ee\u6d4b\u8bd5\uff1ahttp:\/\/ip:8080<\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\">\u5982\u4e0b\u56fe\u6240\u793a\u5373\u4e3a\u5b89\u88c5\u6210\u529f\uff1a<\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\"><img decoding=\"async\" src=\"file:\/\/\/C:\/Users\/yonyea\/AppData\/Local\/YNote\/Data\/yonyea@126.com\/017826e500ff4bf8bb5c291055b6a717\/clipboard.png\" alt=\"\" data-media-type=\"image\" data-inited=\"true\" \/><a href=\"http:\/\/v3.fineyi.com\/wp-content\/uploads\/2014\/11\/5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-604\" src=\"http:\/\/v3.fineyi.com\/wp-content\/uploads\/2014\/11\/5.png\" alt=\"5\" width=\"542\" height=\"643\" srcset=\"http:\/\/www.fineyi.com\/wp-content\/uploads\/2014\/11\/5.png 542w, http:\/\/www.fineyi.com\/wp-content\/uploads\/2014\/11\/5-253x300.png 253w\" sizes=\"auto, (max-width: 542px) 100vw, 542px\" \/><\/a><\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\">\u00a0<\/span><\/div>\n<div><span style=\"color: #993300;\"><strong><span style=\"font-family: 'Microsoft Yahei';\">\u914d\u7f6enginx\u548ctomcat\uff0c\u4f7f\u5176\u4e0d\u52a0\u7aef\u53e3\u53f7\uff0c\u76f4\u63a5\u901a\u8fc7\u57df\u540d\u4e5f\u80fd\u8bbf\u95ee<\/span><\/strong><\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\">\u9996\u5148\u589e\u52a0\u89e3\u6790\uff0c\u4f7f\u57df\u540d\u6307\u5411\u5230\u4e3b\u673aIP,\u672c\u5730\u53ef\u4ee5\u76f4\u63a5\u6539host\u5b9e\u73b0<\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\"><img decoding=\"async\" src=\"file:\/\/\/C:\/Users\/yonyea\/AppData\/Local\/YNote\/Data\/yonyea@126.com\/f4e520e9480c43499000aa1677cd6ade\/clipboard.png\" alt=\"\" data-media-type=\"image\" data-inited=\"true\" \/><a href=\"http:\/\/v3.fineyi.com\/wp-content\/uploads\/2014\/11\/6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-605\" src=\"http:\/\/v3.fineyi.com\/wp-content\/uploads\/2014\/11\/6.png\" alt=\"6\" width=\"457\" height=\"207\" srcset=\"http:\/\/www.fineyi.com\/wp-content\/uploads\/2014\/11\/6.png 457w, http:\/\/www.fineyi.com\/wp-content\/uploads\/2014\/11\/6-300x136.png 300w\" sizes=\"auto, (max-width: 457px) 100vw, 457px\" \/><\/a><\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\">\u89e3\u6790\u6b63\u5e38<\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\">\u4e0d\u52a08080\u7aef\u53e3\u8bbf\u95ee<\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\"><img decoding=\"async\" src=\"file:\/\/\/C:\/Users\/yonyea\/AppData\/Local\/YNote\/Data\/yonyea@126.com\/1e31b09bc38047beb01ca3acc7137d53\/clipboard.png\" alt=\"\" data-media-type=\"image\" data-inited=\"true\" \/><a href=\"http:\/\/v3.fineyi.com\/wp-content\/uploads\/2014\/11\/7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-606\" src=\"http:\/\/v3.fineyi.com\/wp-content\/uploads\/2014\/11\/7.png\" alt=\"7\" width=\"275\" height=\"91\" \/><\/a><\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\">\u6dfb\u52a08080\u7aef\u53e3\u8bbf\u95ee<\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\"><img decoding=\"async\" src=\"file:\/\/\/C:\/Users\/yonyea\/AppData\/Local\/YNote\/Data\/yonyea@126.com\/e093722f19e2406a9a3f2ed189453b2a\/clipboard.png\" alt=\"\" data-media-type=\"image\" data-inited=\"true\" \/><a href=\"http:\/\/v3.fineyi.com\/wp-content\/uploads\/2014\/11\/8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-607\" src=\"http:\/\/v3.fineyi.com\/wp-content\/uploads\/2014\/11\/8.png\" alt=\"8\" width=\"379\" height=\"266\" srcset=\"http:\/\/www.fineyi.com\/wp-content\/uploads\/2014\/11\/8.png 379w, http:\/\/www.fineyi.com\/wp-content\/uploads\/2014\/11\/8-300x211.png 300w\" sizes=\"auto, (max-width: 379px) 100vw, 379px\" \/><\/a><\/span><\/div>\n<div><span style=\"color: #993300;\"><strong><span style=\"font-family: 'Microsoft Yahei';\">\u63a5\u4e0b\u6765\u4fee\u6539nginx\u548ctomcat\u7684\u914d\u7f6e\u4f7f\u5176\u4e0d\u52a0\u7aef\u53e3\u53f7\u4e5f\u80fd\u8bbf\u95ee\u5230tomcat\u7684webservice<\/span><\/strong><\/span><\/div>\n<div>\n<pre class=\"lang:default decode:true\">[root@E\u00a0~]#\u00a0cd \/www\/wdlinux\/nginx\/conf\/vhost\/\n[root@E\u00a0~]#\u00a0vi myweb.com.conf\n\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9\nserver { \nlisten 80;\nserver_name www.myweb.com myweb.com;\n#root \/www\/web\/master_myweb_com\/public_html;\nindex index.html index.jsp index.htm;\nerror_page 400 \/errpage\/400.html;\nerror_page 403 \/errpage\/403.html;\nerror_page 404 \/errpage\/404.html;\nerror_page 405 \/errpage\/405.html;\nlocation ~ \\.jsp$ {\nproxy_pass http:\/\/127.0.0.1:8080;\ninclude naproxy.conf;\n}\nlocation \/ {\ntry_files $uri @tomcat;\n}\nlocation @tomcat {\nproxy_pass http:\/\/127.0.0.1:8080;\ninclude naproxy.conf;\n\u00a0 \u00a0 }\n\u00a0 \u00a0 access_log \/www\/web_logs\/myweb_com_access.log wwwlogs;\n\u00a0 \u00a0 error_log \/www\/web_logs\/myweb_com_error.log;\n}\n\u91cd\u65b0\u52a0\u8f7dnginx\u914d\u7f6e\u6587\u4ef6\u6216\u91cd\u542fnginx\n[root@E vhost]# service nginxd reload \nnginx: the configuration file \/www\/wdlinux\/nginx\/conf\/nginx.conf syntax is ok \nnginx: configuration file \/www\/wdlinux\/nginx\/conf\/nginx.conf test is successful<\/pre>\n<\/div>\n<\/div>\n<div>\n<div><span style=\"font-family: 'Microsoft Yahei';\">\u4e0d\u52a0\u7aef\u53e3\u53f7\u8bbf\u95ee\u6d4b\u8bd5\uff1a<\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\"><img decoding=\"async\" src=\"file:\/\/\/C:\/Users\/yonyea\/AppData\/Local\/YNote\/Data\/yonyea@126.com\/03dc76b3d50245959c0ea6327461ce43\/clipboard.png\" alt=\"\" data-media-type=\"image\" data-inited=\"true\" \/><a href=\"http:\/\/v3.fineyi.com\/wp-content\/uploads\/2014\/11\/9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-608\" src=\"http:\/\/v3.fineyi.com\/wp-content\/uploads\/2014\/11\/9.png\" alt=\"9\" width=\"444\" height=\"368\" srcset=\"http:\/\/www.fineyi.com\/wp-content\/uploads\/2014\/11\/9.png 444w, http:\/\/www.fineyi.com\/wp-content\/uploads\/2014\/11\/9-300x249.png 300w\" sizes=\"auto, (max-width: 444px) 100vw, 444px\" \/><\/a><\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\">\u81f3\u6b64nginx\u5df2\u7ecf\u6210\u529f\u5c06\u6765\u81eamyweb.com\u57df\u540d\u7684\u8bf7\u6c42\u4ee3\u7406\u52308080\u7aef\u53e3<\/span><\/div>\n<div><span style=\"color: #993300;\"><strong><span style=\"font-family: 'Microsoft Yahei';\">\u5982\u679c\u9700\u8981\u914d\u7f6e\u591a\u57df\u540d\u7684\u8bdd\uff0c\u8fd8\u9700\u8981\u4fee\u6539tomcat\u865a\u62df\u4e3b\u673a\u914d\u7f6e\u6587\u4ef6<\/span><\/strong><\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\">\u9ed8\u8ba4\u914d\u7f6e\u6587\u4ef6\u8def\u5f84\uff1a\/etc\/tomcat6\/<\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\">\u9ed8\u8ba4\u9879\u76ee\u8def\u5f84\uff1a\/var\/lib\/tomcat6\/webapps\/<\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\">tomcat\u9ed8\u8ba4\u6307\u5411\/var\/lib\/tomcat6\/webapps\/ROOT\u76ee\u5f55<\/span><\/div>\n<div><span style=\"color: #993300;\"><strong><span style=\"font-family: 'Microsoft Yahei';\">\u521b\u5efa\u65b0\u9879\u76ee\u76ee\u5f55\uff0c\u8fd9\u91cc\u76f4\u63a5\u590d\u5236ROOT\u9879\u76ee\uff0c\u8fdb\u884c\u4fee\u6539<\/span><\/strong><\/span><\/div>\n<div>\n<pre class=\"lang:default decode:true\">[root@E webapps]# pwd \n\/var\/lib\/tomcat6\/webapps\n[root@E webapps]# chown -R root myweb.com\n\u4fee\u6539\u6743\u9650\uff0c\u4f7f\u65b0\u9879\u76ee\u6743\u9650\u548c\u9ed8\u8ba4\u9879\u76ee\u6743\u9650\u4e00\u81f4\n[root@E webapps]# chgrp -R tomcat myweb.com\n[root@E webapps]# ll \n\u603b\u7528\u91cf 24 \ndrwxrwxr-x 5 root tomcat 4096 10\u6708 30 22:06 examples \ndrwxrwxr-x 5 root tomcat 4096 10\u6708 30 22:06 host-manager \ndrwxrwxr-x 5 root tomcat 4096 10\u6708 30 22:06 manager \ndrwxr-xr-x 3 root tomcat 4096 10\u6708 30 22:48 myweb.com \ndrwxrwxr-x 3 root tomcat 4096 10\u6708 30 22:06 ROOT \ndrwxrwxr-x 5 root tomcat 4096 10\u6708 30 22:06 sample\n[root@E myweb.com]# cd myweb.com\/\n[root@E myweb.com]# rm -f index.html\n[root@E myweb.com]# vi index.jsp\n\u5199\u5165\uff1aWebService is Tomcat<\/pre>\n<\/div>\n<div>\n<div><span style=\"color: #ff0000;\"><strong><span style=\"font-family: 'Microsoft Yahei';\">\u4e0d\u8981\u5fd8\u8bb0\u5220\u9664ROOT\u9879\u76ee\u6216\u8005\u5bf9\u5b83\u91cd\u547d\uff0c\u5426\u5219\u65b0\u9879\u76ee\u4e0d\u751f\u6548<\/span><\/strong><\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\">[root@E\u00a0webapps]# mv ROOT\/ ROOT.BAK<\/span><\/div>\n<p><span style=\"font-family: 'Microsoft Yahei';\"><br \/>\n<\/span><\/p>\n<\/div>\n<div><span style=\"color: #993300;\"><strong><span style=\"font-family: 'Microsoft Yahei';\">\u4fee\u6539tomcat\u865a\u62df\u4e3b\u673a\u914d\u7f6e<\/span><\/strong><\/span><\/div>\n<div>\n<pre class=\"lang:default decode:true\">[root@E myweb.com]# vi \/etc\/tomcat6\/server.xml\n\u5728\u6700\u4e0b\u9762&lt;Host&gt;&lt;\/Host&gt;\u6807\u7b7e\u540e\u9762\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9\n&lt;!--myweb.com host config--&gt; \n&lt;Host name=\"www.myweb.com\" appBase=\"webapps\" \nunpackWARs=\"true\" autoDeploy=\"true\"\nxmlValidation=\"false\" xmlNamespaceAware=\"false\"&gt;\n&lt;Context path=\"\/\" reloadable=\"true\" docBase=\"myweb.com\"\/&gt;\n&lt;Alias&gt;myweb.com&lt;\/Alias&gt;\n&lt;!-- SingleSignOn valve, share authentication between web applications\nDocumentation at: \/docs\/config\/valve.html --&gt;\n&lt;!--\n&lt;Valve className=\"org.apache.catalina.authenticator.SingleSignOn\" \/&gt;\n--&gt;\n&lt;!-- Access log processes all example.\nDocumentation at: \/docs\/config\/valve.html --&gt;\n&lt;!--\n&lt;Valve className=\"org.apache.catalina.valves.AccessLogValve\" directory=\"logs\"\nprefix=\"localhost_access_log.\" suffix=\".txt\" pattern=\"common\" resolveHosts=\"false\"\/&gt;\n--&gt;\n&lt;\/Host&gt;<\/pre>\n<\/div>\n<\/div>\n<div>\n<div><span style=\"font-family: 'Microsoft Yahei';\">\u5982\u4e0b\u56fe\u6240\u793a<\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\"><img decoding=\"async\" src=\"file:\/\/\/C:\/Users\/yonyea\/AppData\/Local\/YNote\/Data\/yonyea@126.com\/998fd13506b44940a2cc7fea13afe1a3\/clipboard.png\" alt=\"\" data-media-type=\"image\" data-inited=\"true\" \/><a href=\"http:\/\/v3.fineyi.com\/wp-content\/uploads\/2014\/11\/10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-609\" src=\"http:\/\/v3.fineyi.com\/wp-content\/uploads\/2014\/11\/10.png\" alt=\"10\" width=\"767\" height=\"510\" srcset=\"http:\/\/www.fineyi.com\/wp-content\/uploads\/2014\/11\/10.png 767w, http:\/\/www.fineyi.com\/wp-content\/uploads\/2014\/11\/10-300x199.png 300w\" sizes=\"auto, (max-width: 767px) 100vw, 767px\" \/><\/a><\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\">\u91cd\u542ftomcat\uff0c\u6d4b\u8bd5http:\/\/myweb.com<\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\">[root@E myweb.com]# service tomcat6 restart<\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\"><img decoding=\"async\" src=\"file:\/\/\/C:\/Users\/yonyea\/AppData\/Local\/YNote\/Data\/yonyea@126.com\/3e2360f8c3ea42a9be12178bf64581cb\/clipboard.png\" alt=\"\" data-media-type=\"image\" data-inited=\"true\" \/><a href=\"http:\/\/v3.fineyi.com\/wp-content\/uploads\/2014\/11\/11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-610\" src=\"http:\/\/v3.fineyi.com\/wp-content\/uploads\/2014\/11\/11.png\" alt=\"11\" width=\"301\" height=\"97\" \/><\/a><\/span><\/div>\n<div><span style=\"font-family: 'Microsoft Yahei';\">success\uff01<\/span><\/div>\n<div>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904\uff1a<a href=\"http:\/\/fineyi.com\/\">\u6021\u7136\u4e4b\u4e50 \u2013 FineYi<\/a><\/div>\n<\/div>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u7f51\u4e0a\u6709\u5f88\u591a\u5173\u4e8eLNAMP\u6216LAMP\u7ec4\u5408\u5b89\u88c5\u7684\u6559\u7a0b(\u6211\u5199\u8fc7\u7684\u53e6\u4e00\u7bc7\u535a\u6587,\u6709\u9700\u8981\u7684\u8bf7 &hellip; <a href=\"http:\/\/www.fineyi.com\/?p=599\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a> <a href=\"http:\/\/www.fineyi.com\/?p=599\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false,"footnotes":""},"categories":[3,5,6,8],"tags":[13,19,23,24,25,29,30,35,37,38,47,48,70,76],"class_list":["post-599","post","type-post","status-publish","format-standard","hentry","category-development-tools","category-linux","category-mysql","category-php","tag-apache","tag-centos","tag-java","tag-jdk","tag-jdk1-6","tag-lamp","tag-linux","tag-mysql-2","tag-nginx","tag-php","tag-tomcat","tag-tomcat6","tag-70","tag-76"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.fineyi.com\/index.php?rest_route=\/wp\/v2\/posts\/599","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.fineyi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.fineyi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.fineyi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.fineyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=599"}],"version-history":[{"count":0,"href":"http:\/\/www.fineyi.com\/index.php?rest_route=\/wp\/v2\/posts\/599\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.fineyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.fineyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=599"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.fineyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}