Loading... <span style="word-wrap:break-word;color:#3E3E3E;font-size:14px;white-space:normal;background-color:#F7F7F7;font-family:宋体;">1. 首先ssh連接上遠程主機,進入命令行<br style="word-wrap:break-word;" /> 2. 安裝mono(</span><span style="word-wrap:break-word;color:#3E3E3E;font-size:14px;white-space:normal;background-color:#F7F7F7;font-family:宋体;">參考了</span><span style="word-wrap:break-word;color:#3E3E3E;font-size:14px;white-space:normal;background-color:#F7F7F7;font-family:宋体;"><a href="http://www.cnblogs.com/shanyou/p/4509980.html" target="_blank" style="word-wrap:break-word;color:#57BAE8;">http://www.cnblogs.com/shanyou/p/4509980.html</a></span><span style="word-wrap:break-word;color:#3E3E3E;font-size:14px;white-space:normal;background-color:#F7F7F7;font-family:宋体;">),</span><span style="word-wrap:break-word;color:#3E3E3E;font-size:14px;white-space:normal;background-color:#F7F7F7;font-family:宋体;">先添加yum源 <div class="blockcode" style="overflow:hidden;margin:10px 0px;padding:10px 0px 5px 10px;background-image:url("https://steamcn.com/static/image/common/codebg.gif"background-position:0px 0px;background-size:initial;background-repeat:repeat-y;background-attachment:initial;background-origin:initial;background-clip:initial;color:#666666;zoom:1;border:1px solid #F7F7F7;"> <div id="code_VPU"> <ol style="word-wrap:break-word;margin:0px 0px 0px 10px !important;padding:0px !important;"> <li style="word-wrap:break-word;margin:0px 0px 0px 2em;padding:0px 0px 0px 10px;list-style-type:decimal-leading-zero;font-family:Monaco, Consolas, "font-size:12px;line-height:1.8em;"> rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" <br style="word-wrap:break-word;" /> </li> <li style="word-wrap:break-word;margin:0px 0px 0px 2em;padding:0px 0px 0px 10px;list-style-type:decimal-leading-zero;font-family:Monaco, Consolas, "font-size:12px;line-height:1.8em;"> yum-config-manager --add-repo http://download.mono-project.com/repo/centos/ </li> </ol> </div> <span style="word-wrap:break-word;margin-left:43px;font-size:12px;cursor:pointer;color:#57BAE8 !important;">複製代碼</span> </div> 有可能提示找不到yum-config-manager ,這個是因為系統默認沒有安裝這個命令,這個命令在yum-utils 包裡,可以通過命令</span><span style="word-wrap:break-word;color:#3E3E3E;font-family:"font-size:14px;white-space:normal;background-color:#F7F7F7;"><span style="word-wrap:break-word;font-family:宋体;">yum -y install yum-utils</span></span><span style="word-wrap:break-word;color:#3E3E3E;font-size:14px;white-space:normal;background-color:#F7F7F7;font-family:宋体;"><br style="word-wrap:break-word;" /> 安裝。<br style="word-wrap:break-word;" /> 然後</span> <div class="blockcode" style="overflow:hidden;margin:10px 0px;padding:10px 0px 5px 10px;background:url("https://steamcn.com/static/image/common/codebg.gif"color:#666666;zoom:1;border:1px solid #F7F7F7;font-family:"font-size:14px;white-space:normal;"> <div id="code_rBa"> <ol style="word-wrap:break-word;margin:0px 0px 0px 10px !important;padding:0px !important;"> <li style="word-wrap:break-word;margin:0px 0px 0px 2em;padding:0px 0px 0px 10px;list-style-type:decimal-leading-zero;font-family:Monaco, Consolas, "font-size:12px;line-height:1.8em;"> yum -y install mono-complete </li> </ol> </div> <span style="word-wrap:break-word;margin-left:43px;font-size:12px;cursor:pointer;color:#57BAE8 !important;">複製代碼</span> </div> <span style="color:#3E3E3E;font-family:"font-size:14px;white-space:normal;background-color:#F7F7F7;">這裡和那篇文章裡不太一樣,我的主機執行他說的yum –y install mono-complete.x86_64會提示找不到包</span><br style="word-wrap:break-word;color:#3E3E3E;font-family:"font-size:14px;white-space:normal;background-color:#F7F7F7;" /> <span style="color:#3E3E3E;font-family:"font-size:14px;white-space:normal;background-color:#F7F7F7;">最後執行</span> <div class="blockcode" style="overflow:hidden;margin:10px 0px;padding:10px 0px 5px 10px;background:url("https://steamcn.com/static/image/common/codebg.gif"color:#666666;zoom:1;border:1px solid #F7F7F7;font-family:"font-size:14px;white-space:normal;"> <div id="code_Ss4"> <ol style="word-wrap:break-word;margin:0px 0px 0px 10px !important;padding:0px !important;"> <li style="word-wrap:break-word;margin:0px 0px 0px 2em;padding:0px 0px 0px 10px;list-style-type:decimal-leading-zero;font-family:Monaco, Consolas, "font-size:12px;line-height:1.8em;"> mono -V </li> </ol> </div> <span style="word-wrap:break-word;margin-left:43px;font-size:12px;cursor:pointer;color:#57BAE8 !important;">複製代碼</span> </div> 最后修改:1970 年 01 月 01 日 © 允许规范转载 打赏 赞赏作者 赞 如果觉得我的文章对你有用,请随意赞赏