最近在倒騰cn-deepdive,嘗試進行實體和關係的抽取,遇到的一些問題整理如下。
(1)cndeepdive安裝報錯問題(下載地址http://www.openkg.cn/dataset/cn-deepdive)
將install.sh腳本的193行修改爲tar xvf deepdive-v0.8-STABLE-Linux.tar.gz -C /root/local
(2)新裝的centOS7 無法ping通
1.設置網卡
vi /etc/sysconfig/network-scripts/ifcfg-ens33
ONBOOT=yes
2.重啓防火牆
service network restart
(3)centos7關於secureCRT不能通過ssh連接的問題
①重啓sshd服務
命令:service sshd restart
或者命令:systemctl restart sshd.service
②查看sshd服務相關信息
命令:service sshd status
或者命令:systemctl list-unit-files | grep ssh
(4)SSH異常“Failed to start OpenSSH Server daemon”問題排查
sshd服務成功起動需要/var/empty/sshd必須所有者是root
將權限改回來即可
chown -R root.root /var
(5)No module named yum
vi /usr/bin/yum
修改python爲python2.6
(6)centos7 安裝最新版postgresql10
https://blog.csdn.net/rudy5348/article/details/79299162
(7)postgresql連接時候會報錯:psql: FATAL: Peer authentication failed for user "postgres",
需要修改其配置文件,修改 /etc/postgresql/9.1/main/pg_hba.conf
(8)Linux安裝python 2.7.9
1、下載python
wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz
2、解壓、編譯安裝
tar -zxvf Python-2.7.9.tgz
cd Python-2.7.9
./configure --prefix=/usr/local/python-2.7.9
make
make install
3、系統自帶了python版本,我們需要爲新安裝的版本添加一個軟鏈
ln -s /usr/local/python-2.7.9/bin/python /usr/bin/python2.7.9
通過命令python2.7.9查看版本:
(9)解決 /lib64/libc.so.6: version `GLIBC_2.14' not found 的問題
http://blog.51cto.com/stuart/1840205