随笔分类 - linux
摘要:1 Axel 通过打开多个 HTTP/FTP 连接来将一个文件进行分段下载,从而达到加速下载的目的。对于下载大文件,该工具将特别有用。2 3 安装:sudo apt-get install axel4 一般使用:axel url(下载文件地址)5 限速使用:加上 -s 参数,如 -s 10240,即每秒下载的字节数,这里是 10 Kb6 限制连接数:加上 -n 参数,如 -n 5,即打开 5 个连接7 8 win系统也有这个工具
阅读全文
摘要:原文地址:http://ijonas.com/software-development/nosql/412/ 1 Installing Redis 2.6.x on Ubuntu 12.04 and running with an ‘init’ script. 2 28 Replies 3 4 Documented here are steps to getting Redis 2.6.x running on Ubuntu 12.04 onwards using an init script (previous versions of Ubuntu should work too)...
阅读全文
摘要:原文地址:http://people.debian.org/~schultmc/locales.htmlThe Easy WayInstall debconf (i.e. runapt-get updatethenapt-get install debconf, as root)Rundpkg-reconfigure localesas rootThe Hard WayEdit/etc/locale.genas root. If/etc/locale.gendoes not exist, create it. An example/etc/locale.genis below.Run/usr/
阅读全文
摘要:原文地址:http://codewut.de/content/missing-locales-under-debianThis drives me crazy! Every time I debootstrap a debian or ubuntu machine the resulting root system will lack properly set up locales. dpkg-reconfigure locales & derivates won't help since the system does not know what locales it sho
阅读全文
摘要:原文地址 http://pobeta.com/ubuntu-sublime.html, 1 2 3 /* 4 sublime-imfix.c 5 Use LD_PRELOAD to interpose some function to fix sublime input method support for linux. 6 By Cjacker Huang 7 8 gcc -shared -o libsublime-imfix.so sublime_imfix.c `pkg-config --libs --cflags gtk+-2.0...
阅读全文
摘要:1 在 Ubuntu 12.04 安裝 Node.js 2 3 使用 nvm(Node Version Manage) 來安裝 node.js, 4 預先需要 curl, git, g++ : 5 6 $ sudo apt-get install git-core g++ curl 7 8 接著即可用以下指令安裝 : 9 10 $ git clone git://github.com/creationix/nvm.git ~/.nvm11 $ echo ". ~/.nvm/nvm.sh" >> ~/.bashrc12 13 14 重新開啟 terminal 或是
阅读全文
摘要:1 Git配置 2 3 git config --global user.name "robbin" 4 git config --global user.email "fankai@gmail.com" 5 git config --global color.ui true 6 git config --global alias.co checkout 7 git config --global alias.ci commit 8 git config --global alias.st status 9 git config --global ali
阅读全文
摘要:---恢复内容开始---一、SQL Relay是什么?SQL Relay是一个开源的数据库池连接代理服务器二、SQL Relay支持哪些数据库?* Oracle* MySQL* mSQL* PostgreSQL* Sybase* MS SQL Server* IBM DB2* Interbase* Sybase* SQLite* Lago* ODBC* MS Access三、安装和配置;不说废话了,开始安装SQL Relay,到 http://sqlrelay.sourceforge.net/ 去下载相应的软件安装SQL Relay需要先安装Rudiments, 在 http://sqlrel
阅读全文
摘要://让程序在后台运行,即使关闭终端 仍可运行nohup php shell/daemon/mobile_category.php(目录/文件) >>/tmp/wyg_category &>>是写日志的,可有可无,不过一般还是写上比较好>>/tmp/wyg_category
阅读全文
摘要:1,先cd到你想要安装的文件夹 cd /usr/local/soft2,curl - sS https :// getcomposer . org / installer | php 3,ls -l我没有发现composer.json文件,就导致了我的1 php composer.phar install这个是不能完成的,我就自己在soft文件夹下面写了一个composer.json文件:内容如下:{" name ": " acme / hello - world " ," require ": { " monolog /
阅读全文
摘要:1 apt-get install vim在服务器上我们总是用的,可能刚开始使用的时候感觉vim很麻烦,可是使用一段时间后就会发现真心很强大啊,这个链接地址,我认为是很好的一篇文章,大家可以看一下,我就不细说了http://blogread.cn/it/article/4542?f=qqt% : 匹配括号移动,包括 (, {, [.* 和 #: 匹配光标当前所在的单词,移动光标到下一个(或上一个)匹配单词(*是下一个,#是上一个)但是我经过实验这个在我的地方是错的:我的是这样的:% : 匹配括号移动,包括 (, {, [.* / #和$: 匹配光标当前所在的单词,移动光标到下一个(或上一个)匹
阅读全文
摘要:Ubuntu上安装sudoapt-getinstallphpunit验证PHPUnit安装成功,命令行输入phpunit$ phpunit安装成功打印:PHPUnit 3.6.11 by Sebastian Bergmann.Usage: phpunit [switches] UnitTest [UnitTest.php]phpunit [switches] <directory>如果出现如下的错误。PHP Warning: require_once(PHP/CodeCoverage/Filter.php): failed to open stream: No such file
阅读全文
摘要:1 1. 手动编译安装 Nginx 1.2.0 2 3 Nginx下载页面:http://nginx.org/en/download.html 4 5 sudo apt-get install -y libpcre3 libpcre3-dev zlib1g-dev 6 7 wget http://nginx.org/download/nginx-1.2.0.tar.gz//如果你没有指定目录,则代表文件下载到自己目前的文件夹 8 9 tar -zxvf nginx-1.2.0.tar.gz10 11 cd nginx-1.2.012 13 ...
阅读全文
摘要:1.apt-get install mysql-server mysql -client//安装数据库2.apt-get install nginx //安装nginxgedit /etc/nginx/sites-enabled/default //nginx配置文件server {root /home/angelmylove/download/zendphp/; //存放php文件的地址,等价与apache 的documentRoot index index.html index.htm index.php; # Make site accessible from http://localh
阅读全文
摘要:add-apt-repository ppa:webupd8team/sublime-text-2apt-get updateapt-get install sublime-text安装控制器:ctrl+`,调出控制台:输入:import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),'w
阅读全文
摘要:最近遇到了一个问题,用linux命令怎么链接ftp,现在写下来,希望对你们有帮助root@ubuntu:~# ftpftp> open 端口号Connected to 端口号220 http://www.aq817.cnName (172.165.0.6:angelmylove):名字331 Password required for 名字Password:输入密码其他的就是linux的命令了,cd ,ls在ftp上传文件是put|mput #文件或者文件夹下载文件是get|mget #文件或者文件夹
阅读全文
摘要:原地址:http://blogread.cn/it/article/6089?f=wb安全起见,直接用Root执行的:/root/mysql_backup.sh# everyday 3:00 AM execute database backup3 0 * * * /root/mysql_backup.sh以下是自动自动备份shell,运行代码查看代码打印关于#!/bin/sh # mysql_backup.sh: backup mysql databases and keep newest 5 days backup. # # db_user is mysql username # d...
阅读全文