随笔分类 -  centos

linux操作系统
摘要:https://github.com/docker-library/python/issues/21 例如编译安装python3.5.2,脚本如下: 其中 ./configure --prefix=/usr/local --enable-shared 中的 --enable-shared 很重要。 阅读全文
posted @ 2016-12-08 12:56 tommy.yu 阅读(6200) 评论(0) 推荐(0)
摘要:主机:win7 工具:vmare 11.0.0 系统:http://mirrors.163.com/centos/6.8/isos/x86_64/CentOS-6.8-x86_64-minimal.iso 原因比较简单: 默认的etho0没有启用,启用即可。 将 ONBOOT=no 改为 ONBOO 阅读全文
posted @ 2016-11-23 12:57 tommy.yu 阅读(310) 评论(0) 推荐(0)
摘要:此类文章一大堆,本文主要站在开发角度保证基本rabbitmq的基本访问。 系统:centos6 64bit 官方指引:https://www.rabbitmq.com/install-rpm.html 下载erlang并安装: 在这里https://www.rabbitmq.com/releases 阅读全文
posted @ 2016-08-15 10:47 tommy.yu 阅读(277) 评论(0) 推荐(0)
摘要:centos下面, awk '{...}' 和 awk "{...}" 差别是很大的: 简单来说,双引号无法正常工作, 一不小心敲错简直天壤之别。 阅读全文
posted @ 2016-08-05 11:53 tommy.yu 阅读(578) 评论(0) 推荐(0)
摘要:首先centos7很坑爹。 其次,在centos7上安装mysql更坑爹。 特此记录一次坑爹历程后的唯一出路。 安装mysql 配置 默认的/etc/my.cnf基本啥都没,参考版本:http://dev.mysql.com/doc/refman/5.6/en/server-configuratio 阅读全文
posted @ 2016-05-17 15:33 tommy.yu 阅读(257) 评论(0) 推荐(0)
摘要:换到7后出现莫名奇妙问题,ssh验证始终不起作用。 服务器 客户端 结果反复都需要输入密码,用 无法定位出原因,看了下官方资料。 注意到 试了下: 再试,通过! 特记录此坑爹细节(貌似在centos6不需要此步) 实际在拷贝公钥时建议使用指令 来源:http://www.cnblogs.com/To 阅读全文
posted @ 2016-05-16 10:34 tommy.yu 阅读(2615) 评论(0) 推荐(0)
摘要:菜单路径: applications(应用程序)/Graphics(图形图像)/KSnapshot 阅读全文
posted @ 2016-04-21 18:00 tommy.yu 阅读(354) 评论(0) 推荐(0)
摘要:peewee安装时随意了点。装了2.8.0的。 倒回到2.6.0就好了。 阅读全文
posted @ 2016-04-11 09:23 tommy.yu 阅读(505) 评论(0) 推荐(0)
摘要:awk , 很赞的教程:http://coolshell.cn/articles/9070.html xargs, http://blog.csdn.net/andy572633/article/details/7214534 简单说, awk就是一个脚本编译器,用于处理输入输出。 xargs输出重 阅读全文
posted @ 2016-04-06 15:43 tommy.yu 阅读(1981) 评论(0) 推荐(0)
摘要:有意无意写了一些shell脚本。 是时候做个小结了。 头标 循环 条件判断 函数定义&参数 xxx,具体函数名。 $1,$2,$3为具体的输入参数,测试如下: shell脚本的进程pid的保存 demo 阅读全文
posted @ 2016-04-05 17:32 tommy.yu 阅读(176) 评论(0) 推荐(0)
摘要:折腾了差不多两天,看了不少中文,英文文档。终于搞定,记录下心得。本文只讨论正向解析。 安装 全局配置 由于只是做本地dns解析,供application使用。因此将/etc/named.conf里面的监听ip端口,能够查询dns的ip都限制为本地,如下: 同时,将递归查询给开启,如果127.0.0. 阅读全文
posted @ 2015-12-16 18:21 tommy.yu 阅读(1599) 评论(0) 推荐(0)
摘要:最近在折腾一个问题。 由于服务器的带宽是联通5M, 不稳定。而且所处的网络的dns解析貌似老出问题,每隔一定周期解析时间特别长。 于是乎,想在本地做一个dns,这样可以减少dns解析时间,并做些静态配置,这样可以避免dns服务器拖后腿(不可控因素)。 直接修改本地的dns配置(/etc/resolv 阅读全文
posted @ 2015-12-15 17:18 tommy.yu 阅读(1047) 评论(0) 推荐(0)
摘要:目的:懒的敲一些重复的指令,比如登录后cd到某个目录。 咋办: ssh -t user@xxx.xxx.xxx.xxx "cd /directory_wanted ; bash" 注意,";bash"不要少。 阅读全文
posted @ 2015-11-24 15:30 tommy.yu 阅读(368) 评论(0) 推荐(0)
摘要:http://itekblog.com/centos-6-x-install-pil-python-imaging-library-tutorial/ 阅读全文
posted @ 2015-09-22 19:07 tommy.yu 阅读(244) 评论(0) 推荐(0)
摘要:首先,这个是坑 http://www.tecmint.com/install-google-chrome-on-redhat-centos-fedora-linux/ 安装会报错,按照错误找到以下资源,验证ok:https://www.centos.org/forums/viewtopic.php? 阅读全文
posted @ 2015-06-12 16:31 tommy.yu 阅读(267) 评论(0) 推荐(0)
摘要:sudo plink -D 127.0.0.1:8888 -l root -P 443 -pw xxx 104.xxx.xxx.xxx 阅读全文
posted @ 2015-06-12 15:45 tommy.yu 阅读(756) 评论(0) 推荐(0)
摘要:在这里找到合适的rpm包:http://pkgs.repoforge.org/rpmforge-release/ 下载 安装 即可。 这样就可一直接使用rpmforge的repo进行快捷安装rpm包了。比如centos安装putty 阅读全文
posted @ 2015-06-12 09:03 tommy.yu 阅读(426) 评论(0) 推荐(0)
摘要:http://stackoverflow.com/questions/3513773/change-mysql-default-character-set-to-utf-8-in-my-cnfhttps://dev.mysql.com/doc/refman/5.0/en/charset-configuration.html编辑 /etc/my.conf文件,增加以下内容 [client] def... 阅读全文
posted @ 2015-06-05 09:17 tommy.yu 阅读(309) 评论(0) 推荐(0)
摘要:默认情况下,没有颜色。 https://www.centos.org/docs/2/rhl-gsg-en-7.2/ls-color.html git也默认没有颜色,破解如下: https://git-scm.com/book/tr/v2/Customizing-Git-Git-Configurati 阅读全文
posted @ 2015-06-01 10:19 tommy.yu 阅读(1133) 评论(0) 推荐(0)
摘要:公司给陪了个一体机。 键盘很无语,fn的位置在左下角。反人类设计。 破解: 1. bios,不幸不支持。 2. 改建: http://www.bitscn.com/hardware/nb/437603.html 不知道fn的键码, sudo showkey 了一把,结果发现在单独按fn的时候,貌似键 阅读全文
posted @ 2015-05-28 11:19 tommy.yu 阅读(309) 评论(0) 推荐(0)