sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
在百度的最后一天
今天(2015-03-13)是办理离职流程的最后一天。归还公司的资产,到财务结清工资并拿离职证明。过程还比较顺利。感觉有些轻松又有些伤感。从2012年9月入职到现在离开,时间过的可真快。有成长,有郁闷,有辛酸,现在真有些不是滋味。或许以后还会再回来,不知道。人生有几个三年,来回折腾人生。有些老了,或许不够壮志,但路要走得稳。希望自己在新单位发展如意!
Kaldi站点更新
原网站地址是: http://kaldi.sourceforge.net/
后来更改为: http://kaldi-asr.org/ https://github.com/danpovey/kaldi-asr
sudo: luarocks: command not found
sudo: luarocks: command not found
solutition:
$ sudo -s
root@hq:~# luarocks install cutorch
luarocks安装–Failed loading manifest
使用luarocks安装lunit,出现下面报错:
jerry@ubuntu:~$ sudo luarocks install lunit
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/torc h/rocks/master – Failed downloading https://raw.githubusercontent.com/torch/rocks/master/manifest
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/rock s-moonscript-org/moonrocks-mirror/master – Failed downloading https://raw.githubusercontent.com/rocks-m oonscript-org/moonrocks-mirror/master/manifest
Error: No results matching query were found.
经查发现https://raw.githubusercontent.com/torch/rocks/master/manifest这个地址无法连接。只好切换另一个服务器了
方法1:
sudo luarocks install –verbose –only-server=http://rocks.moonscript.org lunit
方法2:
jerry@ubuntu:~$ mkdir ~/.cache/luarocks/https___rocks.moonscript.org
jerry@ubuntu:~$ sudo wget https://rocks.moonscript.org/manifest-5.1 -O ~/.cache/luarocks/https___rocks.moonscript.org/manifest-5.1
查看端口是否占用
环境 :CentOS
[root@sandbox ~]# lsof -i:80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
httpd 1118 root 4u IPv6 9178 0t0 TCP *:http (LISTEN)
httpd 1255 apache 4u IPv6 9178 0t0 TCP *:http (LISTEN)
httpd 1256 apache 4u IPv6 9178 0t0 TCP *:http (LISTEN)
httpd 1257 apache 4u IPv6 9178 0t0 TCP *:http (LISTEN)
httpd 1258 apache 4u IPv6 9178 0t0 TCP *:http (LISTEN)
httpd 1259 apache 4u IPv6 9178 0t0 TCP *:http (LISTEN)
httpd 1260 apache 4u IPv6 9178 0t0 TCP *:http (LISTEN)
httpd 1261 apache 4u IPv6 9178 0t0 TCP *:http (LISTEN)
httpd 1262 apache 4u IPv6 9178 0t0 TCP *:http (LISTEN)
Spark Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient memory
环境:spark 1.1
spark-shell启用的时候一直出现这个提示:
Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient memory
查了一下午才明白,需要在master结点上做如下修改:
vi /etc/spark/conf/spark-defaults.conf
添加一项
spark.driver.memory=10g
注:spark.driver.memory表示master的memory大小设置, 而spark.executor.memory代表worker结点内存大小。
pyspark socket.gaierror: [Errno -2] Name or service not known
环境:CDH 5.2, spark 1.1
使用pyspark启动时发现报错如下:
socket.gaierror: [Errno -2] Name or service not known
经查是由/etc/hosts中缺件少
127.0.0.1 localhost localhost.localdomain
这一行造成的。添加后问题解决。
员工卡戏剧性找回
今天是新年上班的第一天,刚坐到椅子上就发现之前丢失的员工卡。之前记得是在办公区丢的,没想到竟然在自己的座椅后面。(这是第二次丢了,又花了一百)已经重办了也没办法退了。下回可得多留心些!
Ubuntu升级慎重
环境:ubuntu 12.04, ubuntu 14.04, wordpress 4.0, opencart 1.5, postgresql 9.1, mysql 5
昨天升级ubuntu系统至14.04版本后,发现之前安装的wordpress和opencart全线瘫痪。(冒汗不止)。这两个主页都是空白的,无任务报错信息。只能到网上狂搜一把。解决方案如下
wordpress:
“无法选择数据库”(postgresql),试过各种方法,最后只能把wordpress降版本至3.4.2
wget https://cn.wordpress.org/wordpress-3.4.2-zh_CN.tar.gz
重新布置到/var/www目录下。 (注意ubuntu 14.04的apache2的DocumentRoot与之前不同位置。
sudo vi /etc/apache2/sites-enabled/000-default.conf
将DocumentRoot /var/www/html修改为DocumentRoot /var/www)
还是一个问题是wordpress默认主题需要更改,否则也是只能看到空白页面
opencart:
增加一行到index.php显示出错日志
<?php
ini_set(‘display_errors’, ‘on’);
?>
Fatal error: Call to undefined function mcrypt_create_iv()
is that mcrypt
重新安装mcrypt和php5-mcrypt
sudo apt-get install mcrypt
sudo apt-get install php5-mcrypt
php -m | grep mcrypt
加载模块
sudo php5enmod mcrypt
今天是几乎花费半天的时间来处理这两个应用的问题, 网上的解决方法也是只能给个思路。只能自己深入地了解问题才能定位并解决。还有一点,升级系统切记要慎重!