{"id":1064,"date":"2015-06-11T10:32:40","date_gmt":"2015-06-11T02:32:40","guid":{"rendered":"http:\/\/www.myvoipapp.com\/blogs\/yxh\/?p=1064"},"modified":"2019-03-25T21:50:54","modified_gmt":"2019-03-25T13:50:54","slug":"debian7%e5%8d%87%e7%ba%a7%e5%88%b0debian8","status":"publish","type":"post","link":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/2015\/06\/11\/debian7%e5%8d%87%e7%ba%a7%e5%88%b0debian8\/","title":{"rendered":"Debian7\u5347\u7ea7\u5230Debian8"},"content":{"rendered":"<p>\u6700\u8fd1Debian\u53d1\u5e03\u4e86Debian8.1\u7248\u672c\uff0c\u53ef\u4ee5\u6bd4\u8f83\u6b63\u5f0f\u5730\u5546\u7528\u4e86\uff0c\u56e0\u6b64\u6253\u7b97\u5c06\u4e00\u5957\u751f\u4ea7\u73af\u5883\u7684debian7\u5347\u7ea7\u5230debian8\u3002<\/p>\n<p>Debian\u4e0d\u50cfUbuntu\uff0c\u540e\u8005\u4f7f\u7528\u4e0a\u786e\u5b9e\u65b9\u4fbf\uff0c\u57fa\u672c\u4e0a\u4e00\u952e\u5c31\u53ef\u4ee5\u641e\u5b9a\u3002\u4e0d\u8fc7Debian\u4e5f\u4e0d\u9ebb\u70e6\uff0c\u4e8b\u5b9e\u8bc1\u660e\u4e5f\u5f88\u7b80\u5355\u3002<\/p>\n<p><strong>step1\uff1a<\/strong>\u5173\u95ed\u5df2\u7ecf\u8fd0\u884c\u7684\u4e00\u4e9b\u670d\u52a1\u5668\u7a0b\u5e8f\uff0c\u4f8b\u5982apache, mysql, fail2ban\u7b49\u3002<\/p>\n<p><strong>step2\uff1a<\/strong>\u66f4\u65b0\u5f53\u524d\u7248\u672c\uff0c\u4e5f\u5c31\u662fsudo apt-get update\u4ee5\u53casudo apt-get upgrade\u5373\u53ef\u3002<\/p>\n<p><strong>step3\uff1a<\/strong>\u4fee\u6539\/etc\/apt\/sources.list\u6587\u4ef6\uff0c\u5c06wheezy\u66ff\u6362\u6210jessie\uff0c\u4f8b\u5982\u4e0b\u9762\u5c31\u662f\u76ee\u524d\u751f\u4ea7\u73af\u5883\u4e0a\u7684\u914d\u7f6e\uff1a<\/p>\n<pre>deb http:\/\/mirrors.aliyun.com\/debian\/ jessie main non-free contrib\r\ndeb http:\/\/mirrors.aliyun.com\/debian\/ jessie-proposed-updates main non-free contrib\r\ndeb-src http:\/\/mirrors.aliyun.com\/debian\/ jessie main non-free contrib\r\ndeb-src http:\/\/mirrors.aliyun.com\/debian\/ jessie-proposed-updates main non-free contrib\r\n\r\ndeb http:\/\/mirrors.aliyun.com\/debian-security\/ jessie\/updates main non-free contrib\r\ndeb-src http:\/\/mirrors.aliyun.com\/debian-security\/ jessie\/updates main non-free contrib\r\n\r\ndeb http:\/\/http.us.debian.org\/debian\/ jessie main contrib non-free\r\ndeb http:\/\/security.debian.org\/ jessie\/updates main contrib non-free<\/pre>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<p>\uff081\uff09\u5c3d\u91cf\u914d\u7f6e\u56fd\u5185\u7684\u955c\u50cf\u6e90\u3002debian\u5b98\u65b9\u6e90\u5728\u56fd\u5185\u5927\u90e8\u5206\u533a\u57df\u90fd\u6bd4\u8f83\u6162\uff0c\u91c7\u7528\u56fd\u5185\u6e90\u80fd\u8282\u7701\u5927\u91cf\u65f6\u95f4\u3002<\/p>\n<p>\uff082\uff09\u63a8\u8350\u4f7f\u7528\u963f\u91cc\u955c\u50cf\u6e90\u3002\u963f\u91cc\u5df4\u5df4\u867d\u7136\u662f\u4e2a\u9017\u6bd4\u516c\u53f8\uff0c\u4e0d\u8fc7\u963f\u91cc\u955c\u50cf\u8fd8\u662f\u505a\u5f97\u76f8\u5f53\u4e0d\u9519\uff0c\u901f\u5ea6\u5feb\u3001\u7f51\u7edc\u7a33\u5b9a\uff0c\u6211\u4eec\u4e00\u76f4\u90fd\u7528\u5b83\u3002<\/p>\n<p><strong>step4\uff1a<\/strong>\u66f4\u65b0\u7cfb\u7edf\u3002\u4f9d\u6b21\u6267\u884c\u4e0b\u8ff0\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n<pre>sudo apt-get update\r\nsudo apt-get upgrade\r\nsudo apt-get dist-upgrade<\/pre>\n<p>\u6267\u884c\u8fc7\u7a0b\u4e2d\uff0c\u6d89\u53ca\u5230\u4e00\u4e9b\u8f6f\u4ef6\u66f4\u65b0\u540e\u914d\u7f6e\u6587\u4ef6\u6709\u6539\u53d8\uff0c\u9ed8\u8ba4\u91c7\u7528\u539f\u6709\u914d\u7f6e\u3002<\/p>\n<p><strong>\u5bf9apache\u7684\u5f71\u54cd<\/strong><\/p>\n<p>apache2\u5347\u7ea7\u540e\uff0c\u914d\u7f6e\u6587\u4ef6\u6709\u6539\u52a8\uff0c\u5bfc\u81f4\u51fa\u73b0\u201c403 forbidden\u201d\u7684\u60c5\u51b5\u3002\u95ee\u9898\u539f\u56e0\u662fapache2\u7684\u90e8\u5206\u914d\u7f6e\u53c2\u6570\u53d6\u6d88\u4e86\uff0c\u9700\u8981\u7528\u65b0\u7684\u53c2\u6570\u66ff\u4ee3\u3002\u4fee\u6539\/etc\/apache2\/sites-enabled\/000-default(-ssl)\u6587\u4ef6\uff1a<\/p>\n<pre> Order allow,deny\r\n allow from all<\/pre>\n<p>\u4fee\u6539\u4e3a\uff1a<\/p>\n<pre>require all granted<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1Debian\u53d1\u5e03\u4e86Debian8.1\u7248\u672c\uff0c\u53ef\u4ee5\u6bd4\u8f83\u6b63\u5f0f\u5730\u5546\u7528\u4e86\uff0c\u56e0\u6b64\u6253\u7b97\u5c06\u4e00\u5957\u751f\u4ea7\u73af\u5883\u7684debian7\u5347\u7ea7\u5230debian8\u3002 Debian\u4e0d\u50cfUbuntu\uff0c&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/www.myvoipapp.com\/blogs\/yxh\/2015\/06\/11\/debian7%e5%8d%87%e7%ba%a7%e5%88%b0debian8\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[89,78,11,443],"class_list":["post-1064","post","type-post","status-publish","format-standard","hentry","category-6","tag-apache","tag-debian","tag-linux","tag-443"],"_links":{"self":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts\/1064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/comments?post=1064"}],"version-history":[{"count":3,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts\/1064\/revisions"}],"predecessor-version":[{"id":1995,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts\/1064\/revisions\/1995"}],"wp:attachment":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/media?parent=1064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/categories?post=1064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/tags?post=1064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}