{"id":23934,"date":"2022-07-16T20:34:46","date_gmt":"2023-03-14T00:31:25","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%a7%8b%e5%bb%balamp%e7%92%b0%e5%a2%83\/"},"modified":"2025-08-11T00:43:33","modified_gmt":"2025-08-10T16:43:33","slug":"%e4%bd%bf%e7%94%a8ubuntu%e6%a7%8b%e5%bb%balamp%e7%92%b0%e5%a2%83","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%a7%8b%e5%bb%balamp%e7%92%b0%e5%a2%83\/","title":{"rendered":"\u4f7f\u7528Ubuntu\u69cb\u5efaLAMP\u74b0\u5883"},"content":{"rendered":"<h2>\u521b\u5efa\u7528\u6237<\/h2>\n<h3>\u521b\u5efa\u7528\u6237<\/h3>\n<pre class=\"post-pre\"><code># adduser nishide\r\nAdding user `nishide' ...\r\nAdding new group `nishide' (1001) ...\r\nAdding new user `nishide' (1001) with group `nishide' ...\r\nCreating home directory `\/home\/nishide' ...\r\nCopying files from `\/etc\/skel' ...\r\nEnter new UNIX password:\r\nRetype new UNIX password:\r\npasswd: password updated successfully\r\nChanging the user information for nishide\r\nEnter the new value, or press ENTER for the default\r\n    Full Name []:\r\n    Room Number []:\r\n    Work Phone []:\r\n    Home Phone []:\r\n    Other []:\r\nIs the information correct? [Y\/n]\r\n<\/code><\/pre>\n<h3>\u7ed9\u4e88\u521b\u5efa\u7684\u7528\u6237sudo\u6743\u9650\u3002<\/h3>\n<pre class=\"post-pre\"><code># usermod -G sudo nishide   \r\n<\/code><\/pre>\n<h2>\u69cb\u5efaLAMP\u73af\u5883<\/h2>\n<p>\u53ea\u9700\u8981\u63d0\u4f9b\u4e00\u79cd\u65b9\u5f0f\uff1a<br \/>\n\u203b \u4e0d\u662f\u4f7f\u7528apt-get\uff0c\u800c\u662f\u4f7f\u7528apptitude\u8fdb\u884c\u786e\u8ba4<\/p>\n<h3>\u5c06\u64cd\u4f5c\u7cfb\u7edf\u7684\u8f6f\u4ef6\u5305\u66f4\u65b0\u81f3\u6700\u65b0\u7248\u672c\u3002<\/h3>\n<pre class=\"post-pre\"><code># apt-get update -y\r\n<\/code><\/pre>\n<h3>\u5b89\u88c5\u76f8\u5173\u5f00\u53d1\u5305\u3002<\/h3>\n<pre class=\"post-pre\"><code># apt-get install openssl\r\n<\/code><\/pre>\n<h3>Apache\u7684\u5b89\u88c5<\/h3>\n<pre class=\"post-pre\"><code># apt-get install apache2 -y\r\n<\/code><\/pre>\n<h3>MySQL\u7684\u5b89\u88c5<\/h3>\n<pre class=\"post-pre\"><code># apt-get install -y mysql-server libapache2-mod-auth-mysql\r\n<\/code><\/pre>\n<h3>\u5b89\u88c5PHP<\/h3>\n<pre class=\"post-pre\"><code># apt-get install -y php5 php5-mysql libapache2-mod-php5 php5-mcrypt php5-json\r\n<\/code><\/pre>\n<h2>\u5176\u4ed6\u5907\u6ce8<\/h2>\n<h3>initctl\u547d\u4ee4<\/h3>\n<pre class=\"post-pre\"><code># initctl restart ssh       # \u91cd\u65b0\u542f\u52a8 ssh\u3002\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u521b\u5efa\u7528\u6237 \u521b\u5efa\u7528\u6237 # adduser nishide Adding user `nishide&#8217; &#8230; A [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[227],"class_list":["post-23934","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-227"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528Ubuntu\u69cb\u5efaLAMP\u74b0\u5883 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u5173\u4e8e\u4f7f\u7528Ubuntu\u69cb\u5efaLAMP\u74b0\u5883\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528ubuntu\u69cb\u5efalamp\u74b0\u5883\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528Ubuntu\u69cb\u5efaLAMP\u74b0\u5883\" \/>\n<meta property=\"og:description\" content=\"\u5173\u4e8e\u4f7f\u7528Ubuntu\u69cb\u5efaLAMP\u74b0\u5883\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528ubuntu\u69cb\u5efalamp\u74b0\u5883\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-14T00:31:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-10T16:43:33+00:00\" \/>\n<meta name=\"author\" content=\"\u79d1, \u96c5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u96c5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%a7%8b%e5%bb%balamp%e7%92%b0%e5%a2%83\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%a7%8b%e5%bb%balamp%e7%92%b0%e5%a2%83\/\",\"name\":\"\u4f7f\u7528Ubuntu\u69cb\u5efaLAMP\u74b0\u5883 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-03-14T00:31:25+00:00\",\"dateModified\":\"2025-08-10T16:43:33+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\"},\"description\":\"\u5173\u4e8e\u4f7f\u7528Ubuntu\u69cb\u5efaLAMP\u74b0\u5883\u7684\u6280\u672f\u6587\u7ae0\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%a7%8b%e5%bb%balamp%e7%92%b0%e5%a2%83\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%a7%8b%e5%bb%balamp%e7%92%b0%e5%a2%83\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%a7%8b%e5%bb%balamp%e7%92%b0%e5%a2%83\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528Ubuntu\u69cb\u5efaLAMP\u74b0\u5883\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\",\"name\":\"\u79d1, \u96c5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u96c5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%a7%8b%e5%bb%balamp%e7%92%b0%e5%a2%83\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528Ubuntu\u69cb\u5efaLAMP\u74b0\u5883 - Blog - Silicon Cloud","description":"\u5173\u4e8e\u4f7f\u7528Ubuntu\u69cb\u5efaLAMP\u74b0\u5883\u7684\u6280\u672f\u6587\u7ae0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528ubuntu\u69cb\u5efalamp\u74b0\u5883\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528Ubuntu\u69cb\u5efaLAMP\u74b0\u5883","og_description":"\u5173\u4e8e\u4f7f\u7528Ubuntu\u69cb\u5efaLAMP\u74b0\u5883\u7684\u6280\u672f\u6587\u7ae0","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528ubuntu\u69cb\u5efalamp\u74b0\u5883\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-03-14T00:31:25+00:00","article_modified_time":"2025-08-10T16:43:33+00:00","author":"\u79d1, \u96c5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u96c5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%a7%8b%e5%bb%balamp%e7%92%b0%e5%a2%83\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%a7%8b%e5%bb%balamp%e7%92%b0%e5%a2%83\/","name":"\u4f7f\u7528Ubuntu\u69cb\u5efaLAMP\u74b0\u5883 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-03-14T00:31:25+00:00","dateModified":"2025-08-10T16:43:33+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a"},"description":"\u5173\u4e8e\u4f7f\u7528Ubuntu\u69cb\u5efaLAMP\u74b0\u5883\u7684\u6280\u672f\u6587\u7ae0","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%a7%8b%e5%bb%balamp%e7%92%b0%e5%a2%83\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%a7%8b%e5%bb%balamp%e7%92%b0%e5%a2%83\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%a7%8b%e5%bb%balamp%e7%92%b0%e5%a2%83\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528Ubuntu\u69cb\u5efaLAMP\u74b0\u5883"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a","name":"\u79d1, \u96c5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","caption":"\u79d1, \u96c5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%a7%8b%e5%bb%balamp%e7%92%b0%e5%a2%83\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/23934","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=23934"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/23934\/revisions"}],"predecessor-version":[{"id":59961,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/23934\/revisions\/59961"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=23934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=23934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=23934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}