
Linux
_qqmm
这个作者很懒,什么都没留下…
展开
-
linux rails 环境安装
一. Ruby 安装1. 得到Ruby安装包 wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.gz 安装的1.8.7版本2. 解压安装 tar -xzvf ruby-1.8.7-p174.tar.gz cd ruby-1.8.7-p174 ./conf转载 2012-09-22 10:54:06 · 2484 阅读 · 0 评论 -
centos configure SSL
重启 nginx原创 2015-02-28 12:30:55 · 632 阅读 · 0 评论 -
install LNMP on centos by yum
# yum install epel-release# yum install nginx# yum install php-fpm# yum install php-cli# yum install php-xcache# yum install php-pecl-redis# yum install php-pecl-memcached# yum install php-pecl原创 2015-02-28 14:15:13 · 998 阅读 · 0 评论 -
redis 通过 shell 将一个键值对从一个DB移动到另外一个DB
语法如下redis-cli -h t.com -n 0 get "FEATUREDCATEGORYINFO" | xargs -0 -I % redis-cli -h t.com -n 2 set td_home_featured_category_data %其中 -0 选项是解决下面的问题xargs: unmatched double quote; by default原创 2015-06-19 11:29:29 · 3363 阅读 · 0 评论 -
CentOS - history 显示时间
CentOS 有时候默认的 history 命令是不显示时间明细的,可以通过修改 /etc/bashrc , 添加下面几行来显示时间HISTFILESIZE=2000HISTSIZE=2000HISTTIMEFORMAT="[%Y-%m-%d %H:%M:%S] "添加完成之后,可以relogin 或者 source 就可以看到效果了。原创 2015-07-01 09:45:42 · 2305 阅读 · 0 评论 -
Linux - Screen - .screenrc
touch a file : touch ~/.screenrcand add the content as belowtermcapinfo xterm|xterms|xs|rxvt ti@:te@term xtermdefutf8 ondefflow offvbell offstartup_message offdefscrollback 2048hard原创 2015-07-11 14:18:00 · 1971 阅读 · 0 评论 -
centos7 网络设置
今天在一台PC上安装了CentOS 7,当时选择了最小安装模式,安装完成后马上用ifconfig查看本机的ip地址(局域网已经有DHCP),发现报错,提示ifconfig命令没找到。[root@centos1 ~]# ifconfig-bash: ifconfig: command not found首先,习惯性的输入echo $PATH(查看当前PATH环境变量,跟DOS转载 2016-01-16 14:41:26 · 2966 阅读 · 0 评论 -
Use Squid+Stunnel+SwitchyOmega to Setup a Safe Proxy
====== Use Squid+Stunnel+SwitchyOmega to Setup a Safe Proxy =========1. install a. yum: yum install openssl openssl-devel squid b. or 编译安装 ./configure --enable-ssl --with-openssl && make && m原创 2016-04-03 11:59:30 · 1309 阅读 · 0 评论 -
cygwin - install crontab in widows as a service
$ apt-cyg install cronInstalling cron--2017-06-30 17:59:19-- http://mirrors.163.com/cygwin//x86_64/release/cron/cron-4.1-65.tar.xzResolving mirrors.163.com... 123.58.173.186, 123.58.173.185Connec原创 2017-06-30 18:09:26 · 1436 阅读 · 0 评论 -
cygwin - install packages in command lines by apt-cyg
https://github.com/transcode-open/apt-cygQuick startapt-cyg is a simple script. To install:lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyginstall apt-cyg /bi原创 2017-06-24 23:02:19 · 316 阅读 · 0 评论 -
cygwin - 163 镜像
转: http://mirrors.163.com/.help/cygwin.htmlCygwin镜像使用帮助收录架构x86x86_64收录版本所有版本更新时间每12小时更新一次使用说明选择从互联网安装, 在"User URL"处输入以下地址http://mirrors.163.com/cygwin/点击"Add"按钮转载 2017-06-24 23:28:46 · 1306 阅读 · 0 评论 -
执行 apt-get -f install 提示错误
1. 问题:E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).usloft1359:~# rvm install 2.2.0Searching for binary rubies, this might take some time.No binary rub原创 2015-01-24 21:26:26 · 10109 阅读 · 0 评论 -
centos php 拓展配置
[xcache-common]extension = /usr/local/php5/lib/php/extensions/no-debug-non-zts-20121212/xcache.so[xcache.admin]xcache.admin.enable_auth = Onxcache.admin.user = "xcache"xcache.admin.pass = "c8837b转载 2014-12-31 19:11:03 · 657 阅读 · 0 评论 -
shell 重命名文件
#!bash/shIFS=$'\n' # do with the space#for file in $(ls | grep "hua")for file in $(ls) do old_name=$(echo $file) if [ -f $old_name ];then new_name="$(echo $old_name | sed 's/www.piaohua.原创 2014-11-01 13:16:41 · 1370 阅读 · 0 评论 -
linux(ubuntu)下手动安装 firefox 6 并且添加快捷方式图标
2011-08-16正式发布了firefox6,你的电脑上还在用非常古老的版本么,赶紧过来更新下吧,由于官网上面只是提供了linux下的.bz2的压缩包,没有deb或者rmp格式,所以需要自己安装下。比如我的操作系统: Ubuntu 10.10, 原firefox 3.6. 进入正题,首先去官网下个最新版下来,附链接http://www.firefox.com.cn/download/转载 2012-09-22 10:26:15 · 470 阅读 · 0 评论 -
Ubuntu 解压缩 xxx.tar.bz2,.tar.gz
增加 rar 软件压缩和解压缩支持sudo apt-get install rar unrar解压缩 xxx.tar.gztar -zxvf xxx.tar.gz 解压缩 xxx.tar.bz2tar -jxvf xxx.tar.bz2 压缩aaa bbb目录为xxx.tar.gztar -zcvf xxx.tar.gz aaa bbb 压缩aaa原创 2012-09-22 11:24:01 · 9970 阅读 · 0 评论 -
ubuntu配置环境变量
在Ubuntu上用Android的adb工具发现环境变量有问题,就从网上看了会Linux下环境变量的配置,对其环境变量的配置文件有所了解,这里单说一下可以配置环境变量的文件:1. /etc/profile:首先是全局的,适用于所有的shell;在登录时,操作系统配置用户首选项使用的第一个文件,此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行用于设置shell,可以在这里配置转载 2013-01-29 23:20:25 · 534 阅读 · 0 评论 -
在ubuntu中站在ruby1.9.3
在ubuntu 10.10中默认安装的是1.8.7,但是1.9.3比较好,所以换了.如果要安装rails,执行6.7步.按以下步骤即可安装:安装 RVM: $curl -L get.rvm.io | bash -s stable将 rvm 加入 PATH : $source ~/.rvm/scripts/rvm查看需要安装的包: $rvm requirement转载 2013-01-29 23:22:52 · 568 阅读 · 0 评论 -
linux安装skype
1.首先解决依赖关系。打开终端,输入命令:sudo apt-get install libqt4-dbus libqt4-network libqt4-xml libasound22.下载Skype。32位的可通过:cd / tmp wget http://www.skype.com/go/getskype-linux-beta-ubuntu-3264位的:转载 2013-01-31 16:18:48 · 2791 阅读 · 0 评论 -
ubuntu添加windows字体
Ubuntu8.04中的中文字体太少,对平时使用惯了Windows的人来说非常不便。 用下面的方法可以很方便的在Ubuntu8.04中添加自己喜欢的字体。 1、从Vista的字体文件夹fonts中寻找自己喜欢的中文字体: 雅黑:msyh 黑体:SimHei 宋体:SimSun 华文细黑:STXihei 华文楷体:STKaiti转载 2013-02-27 17:31:36 · 473 阅读 · 0 评论 -
Sublime Text
一个不错的跨平台文本编辑器,推荐使用。。。官方地址http://www.sublimetext.com/原创 2013-04-28 14:31:17 · 710 阅读 · 0 评论 -
Centos 修改静态地址
EVICE=eth0HWADDR=08:00:27:93:09:DBTYPE=EthernetUUID=e0f0b27b-ae15-4a87-9fc3-a8185735ac7dONBOOT=yesNM_CONTROLLED=yesBOOTPROTO=static#BROADCAST=255.255.255.0 # 该值可以不用设置IPADDR=192.168.1.110NETMA原创 2014-10-29 01:12:52 · 774 阅读 · 0 评论 -
Cygwin的ssh服务使用公钥登录
333 ssh-keygen -t rsa 334 cd .ssh/ 335 ls 336 ssh-copy-id -i id_rsa.pub root@c.os 337 ssh root@c.os转载 2014-10-25 23:22:36 · 2800 阅读 · 0 评论 -
linux 设置SSH验证后还是无法连接上
最近在设置本机与远程服务器之间的 SSH 验证连接,一切准备就绪,sh原创 2014-11-15 11:55:50 · 879 阅读 · 0 评论 -
CENTOS 配置好SVN服务环境后,其他服务器无法访问
根据 下面的步骤配置好服务后,使用本机可以正常 c===========================转自 http://www.blogjava.net/nkjava/archive/2011/08/29/357502.htmlCentos搭建SVN服务器三步曲搭建SVN服务,有效的管理代码,以下三步可以快速搞定。1、安装原创 2014-11-15 15:52:12 · 11032 阅读 · 1 评论 -
cygwin - isntall python3 and pip
Since OP specifically talks about Python3, I think we need to specify that just in case the user already have Python2 installed, which is very likely.# If you don't have Python3 already, use apt-cyg转载 2017-06-27 23:34:18 · 3316 阅读 · 0 评论