Posts


Feb. 10, 2017

Nextcloud企业搜索插件Nextant

Nextcloud默认只能搜索文件名,但这个插件却可以实现全文检索(包括文件的描述等等)。

你自己的文件

共享文件

外置储存

书签

More...

Feb. 9, 2017

linux 技巧:使用 screen 管理你的远程会话

你是不是经常需要 SSH 或者 telent 远程登录到 Linux 服务器?你是不是经常为一些长时间运行的任务而头疼,比如系统备份、ftp 传输等等。通常情况下我们都是为每一个这样的任务开一个远程终端窗口,因为他们执行的时间太长了。必须等待它执行完毕,在此期间可不能关掉窗口或者断开连接,否则这个任务就会被杀掉,一切半途而废了。

More...

Feb. 9, 2017

新年将末,烦躁和不安

对我来说,这个年过得不像年。

从小年到初三,我连家门都没出,之前无论如何,三十清晨总是要出门转转的,嗅一嗅夹在冷气中的年的气味。每次到街上,路边零散的爆竹的红纸散漫地铺在地上,我一边提醒自己,今年是腊月三十,一边打量着来往的行人,试着看出他们与平常时节的不同。

这次我没有出门,甚至连窗外也不曾瞧过。可能是因为实在没什么新奇的,我的兴趣已经从鞭炮烟花上转移开了,更何况今年市区还有禁放的规矩;可能是因为实在懒惰,懒得穿衣,懒得下楼;可能是因为实在有其他事拖着,不得不做出让步。

More...

Feb. 5, 2017

Nextcloud/ownCloud配置APCu本地缓存+Memcached分布式缓存

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

方法一:编译安装

安装编译器
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

羊脂球·Boule de Suif (de Guy de Maupassant莫泊桑) 汉法双语

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-O Henry 汉英双语

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

Linux中安装ownCloud时遇见的各种各样的错误

ownCloud/Nextcloud安装配置有些复杂,尤其对于新手来说,往往因为对每个步骤的不了解,导致实际安装时,明明一步一步按照视频或者教程做的,出现莫名其妙的错误。希望这篇Troubleshooting可以帮助你。
网络是一台服务器的基本需求,网络配置得不到位,往往会导致无法访问。

一般来说,在安装服务器系统(CentOS、Ubuntu、Debian······)时,如果单独安装到一台电脑上,最主要的还是网卡驱动的问题。现在家用电脑得板载网卡几乎无需多做配置,插上网线就能用,安装Linux系统后(尤其比较成熟的发行版),一般不会有什么驱动问题。

More...

Jan. 30, 2017

安宁的长袍·The Robe Of Peace-O.Henry 英文原文

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...

Jan. 27, 2017

Docker快速部署ownCloud

如前(Owncloud安装过程)所述,ownCloud安装涉及LAMP环境的搭建与调试,耗时比较长,本文介绍通过Docker快速部署ownCloud

安装Docker

Ubuntu:
sudo apt-get install docker.io
CentOS:
yum install docker.io
systemctl start docker
docker安装好后,基本上就可以直接开启下一步了,但是从Docker Hub拉取镜像非常慢,建议到Daocloud.io用个加速器。

部署

拉取ownCloud官方镜像

ownCloud的官方镜像页面:https://hub.docker.com/_/owncloud/

这个镜像已经集成了Apache+PHP环境

More...