Feb. 10, 2017
上篇文章介绍了Nextant插件,然而真正要让Nextant插件工作起来,需要Solr的支持。
安装java环境
1 检查Java是否已经安装在Ubuntu上
打开终端,使用下面的命令:
java -version
如果你看到像下面的输出,这就意味着你并没有安装过Java:
The program ‘java’ can be found in the following packages:
*default -jre
* gcj-4.6 -jre-headless
* openjdk-6 -jre-headless
* gcj- 4.5 -jre-headless
* openjdk- 7 -jre-headless
Try: sudo apt-get install
2 在Ubuntu安装Java
看了各种类型
Java
的不同之后, 让我们看如何安装他们.
在Ubuntu
上安装JRE
More...
Feb. 10, 2017
Nextcloud默认只能搜索文件名,但这个插件却可以实现全文检索(包括文件的描述等等)。
Nextant可执行快速和简洁的全文搜索
你自己的文件
共享文件
外置储存
书签
More...
Feb. 9, 2017
你是不是经常需要 SSH 或者 telent 远程登录到 Linux 服务器?你是不是经常为一些长时间运行的任务而头疼,比如系统备份、ftp 传输等等。通常情况下我们都是为每一个这样的任务开一个远程终端窗口,因为他们执行的时间太长了。必须等待它执行完毕,在此期间可不能关掉窗口或者断开连接,否则这个任务就会被杀掉,一切半途而废了。
More...
Feb. 9, 2017
对我来说,这个年过得不像年。
从小年到初三,我连家门都没出,之前无论如何,三十清晨总是要出门转转的,嗅一嗅夹在冷气中的年的气味。每次到街上,路边零散的爆竹的红纸散漫地铺在地上,我一边提醒自己,今年是腊月三十,一边打量着来往的行人,试着看出他们与平常时节的不同。
这次我没有出门,甚至连窗外也不曾瞧过。可能是因为实在没什么新奇的,我的兴趣已经从鞭炮烟花上转移开了,更何况今年市区还有禁放的规矩;可能是因为实在懒惰,懒得穿衣,懒得下楼;可能是因为实在有其他事拖着,不得不做出让步。
More...
Feb. 5, 2017
利用APCu作为本地缓存,同时使用Memcahed将缓存分布到多台服务器上,提高性能。

安装APCu
Hat/CentOS/Fedora:
yum install -y php-pecl-apcu
systemctl restart httpd
Debian/Ubuntu/Mint:
apt-get install php5-apcu/trusty-backports
systemctl restart httpd
安装Memcached和php-pecl-memcached
方法一:编译安装
安装编译器
yum -y install gcc gcc-c++
从官网中下载最新的 memcached
http://www.memcached.org/
tar -xvf memcached-1.4.15.tar.gz
cd memcached-1.4.15
./configure –prefix=/usr/local/memcache
出现了 configure: error: libevent is required. You can get it from
http://www.monkey.org/~provos/libevent/
就直接去,那个网站下载
tar zxvf libevent-1.2.tar.gz
cd libevent-1.2
./configure -prefix=/usr
make
make install
编译安装php模块的memcache模块 下载地址 http://pecl.php.net/package/memcache
tar -xvf memcache-2.2.7.tar.gz
cd memcache-2.2.7
#/usr/local/php/bin/phpize
#./configure --with-php-config=/usr/local/php/bin/php-config --enable-memcache
make & make install
#/usr/local/bin/memcached -d -m 10 -u root -l 192.168.12.201 -p 13001 -c 256 -P /tmp/memcached.pid #启动memcache
方法二:yum/apt-get安装
Hat/CentOS/Fedora:
yum install memcached php-pecl-memcached
systemctl start memcached
Debian/Ubuntu/Mint:
More...
Feb. 3, 2017
Résumé(简介)
L'histoire se déroule pendant la guerre de 1870, en plein hiver et débute par le repli des troupes françaises et l'envahissement de Rouen par les prussiens. C'est à bord d'une diligence tirée par six chevaux que l'héroïne, baptisée par l'auteur "Boule de suif" et neuf autres personnes s'enfuient vers Dieppe. Il y a là un couple de commerçants, deux couples de la bourgeoisie et de la noblesse, deux religieuses, un démocrate, et Boule de suif, une femme galante, dont la présence soulève la méfiance, l’indignation ou la curiosité.
More...
Feb. 3, 2017
The Gift Of The Magi
One dollar and eighty-seven cents. That was all. And sixty cents of it was in pennies. Pennies saved one and two at a time by bulldozing the grocer and the vegetable man and the butcher until one's cheeks burned with the silent imputation of parsimony that such close dealing implied. Three times Della counted it. One dollar and eighty- seven cents. And the next day would be Christmas.
There was clearly nothing to do but flop down on the shabby little couch and howl. So Della did it. Which instigates the moral reflection that life is made up of sobs, sniffles, and smiles, with sniffles predominating.
More...
Feb. 1, 2017
ownCloud/Nextcloud安装配置有些复杂,尤其对于新手来说,往往因为对每个步骤的不了解,导致实际安装时,明明一步一步按照视频或者教程做的,出现莫名其妙的错误。希望这篇Troubleshooting可以帮助你。
1.网络问题
网络是一台服务器的基本需求,网络配置得不到位,往往会导致无法访问。
一般来说,在安装服务器系统(CentOS、Ubuntu、Debian······)时,如果单独安装到一台电脑上,最主要的还是网卡驱动的问题。现在家用电脑得板载网卡几乎无需多做配置,插上网线就能用,安装Linux系统后(尤其比较成熟的发行版),一般不会有什么驱动问题。
More...
Jan. 30, 2017
Mysteries follow one another so closely in a great city that the reading public and the friends of Johnny Bellchambers have ceased to marvel at his sudden and unexplained disappearance nearly a year ago. This particular mystery has now been cleared up, but the solution is so strange and incredible to the mind of the average man that only a select few who were in close touch with Bellchambers will give it full credence.
Johnny Bellchambers, as is well known, belonged to the intrinsically inner circle of the elite. Without any of the ostentation of the fashionable ones who endeavor to attract notice by eccentric display of wealth and show he still was au fait in everything that gave deserved lustre to his high position in the ranks of society.
More...
Jan. 28, 2017
很久之前,央视上介绍过一种通过手机软件,劫持对方Cookie进而登录对方微博的的手段,演示时使用的软件时dsploit。
这种实质上就是一种网络渗透。
就我所了解的,在手机上(android)就能进行网络渗透的软件有2种,都是中间人通过ARP攻击方式截取篡改路由器的流量。
More...