{"id":13025,"date":"2021-03-10T02:45:52","date_gmt":"2021-03-09T18:45:52","guid":{"rendered":"http:\/\/blog.idc.net\/13025\/"},"modified":"2021-03-10T02:45:52","modified_gmt":"2021-03-09T18:45:52","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8linuxubuntu%e4%b8%8a%e5%ae%89%e8%a3%85redmine","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/13025\/","title":{"rendered":"\u5982\u4f55\u5728Linux(Ubuntu)\u4e0a\u5b89\u88c5Redmine"},"content":{"rendered":"<div class=\"idc_table\">\n<p>\u672c\u6587\u4e3b\u8981\u63cf\u8ff0\u5982\u4f55\u5728\u5982\u4f55\u5728Linux(Ubuntu)\u4e0a\u5b89\u88c5Redmine\u3002\u901a\u8fc7\u8fd9\u7bc7\u6587\u7ae0\u4f60\u5c06\u4e86\u89e3\u5982\u4e0b\u5185\u5bb9\u3002<\/p>\n<p><strong>TL;DR<\/strong><\/p>\n<ul>\n<li>\u5728Linux(Ubuntu)\u4e0a\u5b89\u88c5Redmine\u7684\u57fa\u672c\u6d41\u7a0b<\/li>\n<li>\u914d\u7f6ephpMyAdmin\u7684\u8fdc\u7a0b\u767b\u5f55\u6743\u9650<\/li>\n<li>\u914d\u7f6eRedmine\u9ed8\u8ba4\u8bbf\u95ee\u7aef\u53e3<\/li>\n<li>Linux\u5e38\u7528\u64cd\u4f5c\u547d\u4ee4<\/li>\n<\/ul>\n<h2>\u5728Linux(Ubuntu)\u4e0a\u5b89\u88c5Redmine\u7684\u6d41\u7a0b<\/h2>\n<ul>\n<li>\n<p>\u9996\u5148\u4e0b\u8f7d\u6700\u65b0\u7248\u7684Redmine\u5b89\u88c5\u5305\u3002<\/p>\n<\/li>\n<li>\n<p>\u901a\u8fc7<strong>scp<\/strong>\u547d\u4ee4\u62f7\u8d1d\u672c\u5730\u6587\u4ef6\u5230\u8fdc\u7a0b\u670d\u52a1\u5668<\/p>\n<\/li>\n<\/ul>\n<pre><code>scp \/Users\/CharlieChu\/Desktop\/bitnami-redmine-3.3.2-2-linux-x64-installer.run root@&lt;remote-ip&gt;:\/home\r\n\r\nbitnami-redmine-3.3.2-2-linux-x64-installer.run 100%  151MB   1.2MB\/s   02:07\r\n<\/code><\/pre>\n<blockquote>\n<p>scp\u547d\u4ee4<\/p>\n<\/blockquote>\n<ul>\n<li>\u901a\u8fc7<strong>ssh<\/strong>\u8fde\u63a5\u5230\u8fdc\u7a0bLinux\u670d\u52a1\u5668<\/li>\n<\/ul>\n<pre><code>ssh root@&lt;remote-ip&gt;\r\n\r\nWelcome to Ubuntu 16.04.2 LTS <span>(<\/span>GNU\/Linux 4.4.0-63-generic x86_64<span>)<\/span>\r\n\r\n <span>*<\/span> Documentation:  https:\/\/help.ubuntu.com\r\n <span>*<\/span> Management:     https:\/\/landscape.canonical.com\r\n <span>*<\/span> Support:        https:\/\/ubuntu.com\/advantage\r\n<\/code><\/pre>\n<blockquote>\n<p>ssh\u547d\u4ee4<\/p>\n<\/blockquote>\n<ul>\n<li>\u901a\u8fc7<strong>cd<\/strong>\u547d\u4ee4\u8fdb\u5165\u5230.run\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55<\/li>\n<\/ul>\n<pre><code><span>cd<\/span> \/home\r\n<span>\/home# <\/span>ls\r\nbitnami-redmine-3.3.2-2-linux-x64-installer.run\r\n<\/code><\/pre>\n<ul>\n<li>\u8f93\u5165\u201dchmod +x *.run\u201d<\/li>\n<\/ul>\n<pre><code>chmod +x <span>*<\/span>.run\r\n<\/code><\/pre>\n<blockquote>\n<p>chmod\u547d\u4ee4<\/p>\n<\/blockquote>\n<ul>\n<li>\u8f93\u5165\u201d.\/*.run\u201d,.run\u6587\u4ef6\u5c31\u5f00\u59cb\u8fd0\u884c\u4e86\uff0c\u51fa\u73b0\u5982\u4e0b\u754c\u9762<\/li>\n<\/ul>\n<pre><code><span>root@xxxxxx:\/home# <\/span>.\/<span>*<\/span>.run\r\n<\/code><\/pre>\n<p>\u8fd9\u6837Redmine\u5c31\u5b89\u88c5\u6210\u529f\u4e86\u3002<\/p>\n<ul>\n<li>\u5220\u9664\u5b89\u88c5\u5305<\/li>\n<\/ul>\n<p>\u901a\u8fc7<strong>rm<\/strong>\u547d\u4ee4\u5220\u9664Redmine\u5b89\u88c5\u5305<\/p>\n<pre><code>rm -rf bitnami-redmine-3.3.2-2-linux-x64-installer.run\r\n<\/code><\/pre>\n<blockquote>\n<p>rm\u547d\u4ee4 rm -rf file (-r \u5c31\u662f\u5411\u4e0b\u9012\u5f52\uff0c\u4e0d\u7ba1\u6709\u591a\u5c11\u7ea7\u76ee\u5f55\u4e00\u5e76\u5220\u9664. -f \u5c31\u662f\u76f4\u63a5\u5f3a\u884c\u5220\u9664\uff09<\/p>\n<\/blockquote>\n<h2>\u914d\u7f6eRedmine\u9ed8\u8ba4\u8bbf\u95ee\u7aef\u53e3<\/h2>\n<p>Redmine\u4f5c\u4e3a\u5185\u90e8\u4f7f\u7528\u7684\u9879\u76ee\u7ba1\u7406\u7cfb\u7edf\uff0c\u9ed8\u8ba4\u5360\u752880\u7aef\u53e3\u592a\u8fc7\u4e8e\u6d6a\u8d39\u4e86\uff0c\u8fd9\u91cc\u628aRedmine\u8bbf\u95ee\u7aef\u53e3\u6539\u62108082\u3002\u9700\u8981\u4fee\u6539\u5982\u4e0b5\u5904\u914d\u7f6e\u3002<\/p>\n<ul>\n<li>\u6253\u5f00 <em>httpd-app.conf<\/em> \u4fee\u6539<code>PassengerPreStart http:\/\/127.0.0.1:80\/redmine<\/code>\u8be5\u884c\uff0c\u7136\u540e\u4fdd\u5b58\u9000\u51fa\u3002<\/li>\n<\/ul>\n<pre><code><span>cd<\/span> \/opt\/redmine-3.3.2-2\/apps\/redmine\/conf\r\nvim httpd-app.conf\r\n<\/code><\/pre>\n<blockquote>\n<p>vim\u547d\u4ee4\uff1a\u6253\u5f00\u3001\u4fdd\u5b58\u9000\u51fa\u7b49\u547d\u4ee4\u3002<\/p>\n<\/blockquote>\n<p>\u53ef\u4ee5\u901a\u8fc7<strong>cat<\/strong>\u547d\u4ee4\u67e5\u770b\u8be5\u6587\u4ef6\u662f\u5426\u4fee\u6539\u6210\u529f\u3002<\/p>\n<pre><code>cat httpd-app.conf\r\n<\/code><\/pre>\n<blockquote>\n<p>cat\u547d\u4ee4<\/p>\n<\/blockquote>\n<ul>\n<li>\u6253\u5f00 <em>httpd-vhosts.conf<\/em> \u4fee\u6539<code>&lt;VirtualHost *:80&gt;<\/code>\u8be5\u884c\u3002<\/li>\n<\/ul>\n<pre><code>vim httpd-vhosts.conf\r\n<\/code><\/pre>\n<ul>\n<li>\u6253\u5f00<code>\/opt\/redmine-3.3.2-2\/apache2\/scripts\/ctl.sh<\/code>\uff0c\u4fee\u6539\u8fd9\u4e00\u6bb5<code>httpd started at port 80<\/code>\u3002<\/li>\n<\/ul>\n<pre><code><span>cd<\/span> ~\r\nvim \/opt\/redmine-3.3.2-2\/apache2\/scripts\/ctl.sh\r\n<\/code><\/pre>\n<ul>\n<li>\u6253\u5f00<code>\/opt\/redmine-3.3.2-2\/apache2\/conf\/bitnami\/bitnami.conf<\/code>\uff0c\u4fee\u6539\u8fd9\u4e00\u6bb5<code>&lt;VirtualHost _default_:80&gt;<\/code>\u3002<\/li>\n<\/ul>\n<pre><code><span>cd<\/span> \/opt\/redmine-3.3.2-2\/apache2\/conf\/bitnami\/\r\nvim bitnami.conf\r\n<\/code><\/pre>\n<ul>\n<li>\u6253\u5f00<code>\/opt\/redmine-3.3.2-2\/apache2\/conf\/httpd.conf<\/code>\uff0c\u4fee\u6539\u7b2c52\u548c212\u884c-<code>Listen 8082<\/code>\u548c<code>ServerName localhost:80<\/code>\u7684\u7aef\u53e3\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<pre><code>vim \/opt\/redmine-3.3.2-2\/apache2\/conf\/httpd.conf\r\n:set number\r\n<\/code><\/pre>\n<blockquote>\n<p><strong>:set number<\/strong> \u8df3\u8f6c\u5230\u6307\u5b9a\u884c<\/p>\n<\/blockquote>\n<ul>\n<li>\u91cd\u542fRedmine\u5373\u53ef\u3002<\/li>\n<\/ul>\n<pre><code>\/opt\/redmine-3.3.1-0\/ctlscript.sh restart\r\n\r\nSyntax OK\r\n\/opt\/redmine-3.3.2-2\/apache2\/scripts\/ctl.sh : httpd stopped\r\n\/opt\/redmine-3.3.2-2\/mysql\/scripts\/ctl.sh : mysql stopped\r\n170324 11:33:36 mysqld_safe Logging to <span>'\/opt\/redmine-3.3.2-2\/mysql\/data\/mysqld.log'<\/span>.\r\n170324 11:33:36 mysqld_safe Starting mysqld.bin daemon with databases from \/opt\/redmine-3.3.2-2\/mysql\/data\r\n\/opt\/redmine-3.3.2-2\/mysql\/scripts\/ctl.sh : mysql  started at port 3306\r\nSyntax OK\r\n\/opt\/redmine-3.3.2-2\/apache2\/scripts\/ctl.sh : httpd started at port 8082\r\n<\/code><\/pre>\n<h2>\u914d\u7f6ephpMyAdmin\u7684\u8fdc\u7a0b\u767b\u5f55\u6743\u9650<\/h2>\n<p>\u5229\u7528\u5229\u7528\u5982\u4e0b\u547d\u4ee4\u6253\u5f00<em>httpd-app.conf<\/em>\uff1a<\/p>\n<pre><code>vim \/opt\/redmine-3.3.2-2\/apps\/phpmyadmin\/conf\/httpd-app.conf\r\n<\/code><\/pre>\n<p>\u67e5\u627e\u5230\u5982\u4e0b\u5185\u5bb9\uff1a<\/p>\n<pre><code><span>&lt;IfVersion<\/span> <span>&gt;<\/span>= 2.3&gt;\r\nRequire local\r\n<\/code><\/pre>\n<p>\u5c06\u5176\u4fee\u6539\u4e3a\uff1a<\/p>\n<pre><code><span>&lt;IfVersion<\/span> <span>&gt;<\/span>= 2.3&gt;\r\nRequire all granted\r\n<\/code><\/pre>\n<h2>\u627e\u56de\u7528\u6237\u540d\u548c\u5bc6\u7801\u4fe1\u606f<\/h2>\n<p>\u8fdc\u7a0b\u767b\u5f55phpMyAdmin\u65f6\uff0c\u5982\u679c\u5fd8\u8bb0\u4e86\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u5219\u53ef\u4ee5\u767b\u5f55\u5230\u670d\u52a1\u5668\u53bb\u67e5\u770b\u5bc6\u7801\u4e86\uff1a<\/p>\n<pre><code>vim \/opt\/redmine-3.3.2-2\/apps\/redmine\/htdocs\/config\/database.yml\r\n<\/code><\/pre>\n<p>\u8fd9\u6837\u4f60\u5c31\u53ef\u4ee5\u770b\u5230\u5bf9\u5e94\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u7b49\u4fe1\u606f\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u4e3b\u8981\u63cf\u8ff0\u5982\u4f55\u5728\u5982\u4f55\u5728Linux(Ubuntu)\u4e0a\u5b89\u88c5Redmine\u3002\u901a\u8fc7\u8fd9\u7bc7\u6587\u7ae0\u4f60\u5c06\u4e86\u89e3\u5982\u4e0b\u5185\u5bb9\u3002 TL; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[],"class_list":["post-13025","post","type-post","status-publish","format-standard","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/13025","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=13025"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/13025\/revisions"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=13025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=13025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=13025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}