首页 > 代码库 > 新手玩个人服务器(阿里云)续一
新手玩个人服务器(阿里云)续一
依靠272的助攻374打进一球总比分1比0锁定了欧冠正赛一席,要知道我厂是连续17年进入欧冠正赛仅次于今年记录被终结的曼联18次和今年平了曼联18次的皇马。所以进入一档种子队妥妥的。
附32强档次划分 第一档:皇马、巴塞罗那、拜仁、切尔西、本菲卡、马竞、阿森纳、波尔图 第二档:沙尔克04、多特蒙德、尤文图斯、巴黎圣日耳曼、顿涅茨克矿工、巴塞尔、圣彼得堡泽尼特、曼城 第三档:勒沃库森、奥林匹亚科斯、莫斯科中央陆军、阿贾克斯、利物浦、里斯本竞技、加拉塔萨雷、毕尔巴鄂 第四档:安德莱赫特、罗马、希腊人竞技、鲍里索夫、卢多戈雷茨、马里博尔、摩纳哥、马尔默
刚刚结束的小组抽签,我厂分组波澜不惊,去年同组豪夺小组第一的大黄蜂,依旧是苦主。但是签位不存在不能出线的过多担心……
具体抽签结果如下: A组:马竞、尤文图斯、奥林匹亚科斯、马尔默 B组:皇马、巴塞尔、利物浦、卢多戈雷茨 C组:本菲卡、圣彼得堡泽尼特、勒沃库森、摩纳哥 D组:阿森纳、多特蒙德、加拉塔萨雷、安德莱赫特 E组:拜仁、曼城、莫斯科中央陆军、罗马 F组:巴塞罗那、巴黎圣日耳曼、阿贾克斯、希腊人竞技 G组:切尔西、沙尔克、里斯本竞技、马里博尔 H组:波尔图、顿涅茨克矿工、毕尔巴鄂、鲍里索夫
E组是死亡之组不解释;
昨天安装Python,只是下载了,今天继续安装
解压文件:tar xvf Python-2.7.5.tar.bz2
创建安装目录: <span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">mkdir /usr/local/python27</span>
<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"></span><p style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">安装python</p><p style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">cd Python-2.7.5 </p><p style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">./configure --prefix=/usr/local/python27</p><p style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">make</p><p style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">make install</p><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">修改老版本的ln指向</span>
<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">手贱不小心删了原来的版本(<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">rm -f /usr/bin/python</span>)!!!</span></span>
<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">其实备份就好<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">mv /usr/bin/python /usr/bin/python2.4.3,后悔不已,不知道怎么恢复,看了教程感觉太深奥,放弃了,不过至少目前不碍事……</span></span></span>
<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">修改指向:<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">ln -s /usr/local/python27/bin/python /usr/bin/python</span></span></span></span>
<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">查看版本</span></span></span></span>
<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">python --version </span></span></span></span>
<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">Python 2.7.5 </span></span></span></span>
<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">安装Python搞定</span></span></span></span>
<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">可是运行yum的时候出了问题,昨天才学会的指令,今天就不能用了,郁闷</span></span></span></span>
<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named yum Please install a package which provides this module, or verify that the module is installed correctly. It's possible that the above module doesn't match the current version of Python, which is: 2.7.5 (default, Aug 29 2014, 00:37:46) [GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] If you cannot solve this problem yourself, please go to the yum faq at: http://wiki.linux.duke.edu/YumFaq </span></span></span></span>
<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"> </span></span></span></span>
<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">后来一番搜索得:</span></span></span></span>
<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">先查找<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">which yum</span></span></span></span></span>
<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">/usr/bin/yum</span> </span></span></span></span></span>
<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">再查找<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">whereis python得到老版Python </span></span></span></span></span></span></span>
<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">/usr/bin/python2.4</span> </span></span></span></span></span></span></span>
<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">修改之:<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">vi /usr/bin/yum</span></span></span></span></span></span></span>
<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">将#!/usr/bin/python改为<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">#!/usr/bin/python2.4</span></span> </span></span></span></span></span></span></span>
<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);"><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22.399999618530273px; background-color: rgb(239, 239, 239);">保存搞定,这里附录vi一些命令链接:http://www.cnblogs.com/88999660/articles/1581524.html</span></span></span></span></span></span></span></span></span>
cd /usr/local/src/node-v0.10.31
执行命令
<pre style="white-space: pre-wrap; word-wrap: break-word; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; margin-top: 8px; margin-bottom: 10px; width: 683.515625px; padding: 9.5px; font-size: 13px; line-height: 1.428571429; word-break: break-all; color: rgb(51, 51, 51); background-color: rgb(245, 245, 245); border: 1px solid rgb(204, 204, 204);">./configure很幸福不再报错
<pre name="code" class="cpp">{ 'target_defaults': { 'cflags': [], 'default_configuration': 'Release', 'defines': [], 'include_dirs': [], 'libraries': []}, 'variables': { 'clang': 0, 'gcc_version': 41, 'host_arch': 'ia32', 'node_install_npm': 'true', 'node_prefix': '', 'node_shared_cares': 'false', 'node_shared_http_parser': 'false', 'node_shared_libuv': 'false', 'node_shared_openssl': 'false', 'node_shared_v8': 'false', 'node_shared_zlib': 'false', 'node_tag': '', 'node_unsafe_optimizations': 0, 'node_use_dtrace': 'false', 'node_use_etw': 'false', 'node_use_openssl': 'true', 'node_use_perfctr': 'false', 'node_use_systemtap': 'false', 'python': '/usr/bin/python', 'target_arch': 'ia32', 'v8_enable_gdbjit': 0, 'v8_no_strict_aliasing': 1, 'v8_use_snapshot': 'true', 'want_separate_host_toolset': 0}} creating ./config.gypi creating ./config.mk
接着执行
<pre style="font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; margin-top: 8px; margin-bottom: 10px; width: 683.515625px; white-space: pre-wrap; padding: 9.5px; font-size: 13px; line-height: 1.428571429; word-break: break-all; word-wrap: break-word; color: rgb(51, 51, 51); background-color: rgb(245, 245, 245); border: 1px solid rgb(204, 204, 204); border-top-left-radius: 2px; border-top-right-radius: 2px; border-bottom-right-radius: 2px; border-bottom-left-radius: 2px;">make
<pre style="font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; margin-top: 8px; margin-bottom: 10px; width: 683.515625px; white-space: pre-wrap; padding: 9.5px; font-size: 13px; line-height: 1.428571429; word-break: break-all; word-wrap: break-word; color: rgb(51, 51, 51); background-color: rgb(245, 245, 245); border: 1px solid rgb(204, 204, 204); border-top-left-radius: 2px; border-top-right-radius: 2px; border-bottom-right-radius: 2px; border-bottom-left-radius: 2px;">make install
make的时候报错 make[1]: *** [/usr/local/src/node-v0.10.24/out/Release/obj/gen/libraries.cc] Error 1 make[1]: Leaving directory `/usr/local/src/node-v0.10.24/out' make: *** [node] Error 2
查了一下原来是
则是缺少依赖环境包bzip2 安装Python缺少某个包,今天到此为止
新手玩个人服务器(阿里云)续一
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。