wget http://download.redis.io/releases/redis-4.0.9.tar.gz
tar -zxvf redis-4.0.9.tar.gz
cd redis-4.0.9/src
make
cd src
make install Continue reading “Redis-server installation”
Month: June 2018
DeepQ&A installation
cd ~/qa
git clone https://github.com/Conchylicultor/DeepQA.git
cd DeepQA
python3 -m nltk.downloader punkt
pip3 install django channels Redis asgi_redis
install redis-server
pip3 install tensorflow
pip3 install tqdm Continue reading “DeepQ&A installation”
Centos7 安装python3.5 并存python2.7,兼容yum及Gnome
前言
由于需要使用Python3,而Centos7中默认安装的是2.7版本,于是进行升级安装。本文汇总我再安装及安装后的问题解决,希望能给大家一点帮助。
Python3下载安装
CentOS7默认安装了python2.7.5,当需要使用python3的时候,可以手动下载Python源码后编译安装。 Continue reading “Centos7 安装python3.5 并存python2.7,兼容yum及Gnome”
Centos7 install Shadowsocks and KCPTUN
安装命令
sh -c “$(curl -fsSL https://bit.ly/2GppK6X)”
# 或者
sudo sh -c “$(curl -fsSL https://bit.ly/2GppK6X)”
安装完毕后查看ss配置
Gentoo upgrade kernel
emerge – -sync
ls -l /usr/portage/sys-kernel/gentoo-sources/ (check latest kernel version)
cd /etc/portage/package.mask -> nano gentoo-sources -> (>=sys-kernel/gentoo-sources-4.10)
nano /etc/portage/package.accept_keywords
emerge -v1 gentoo-sources
eselect kernel list
eselect kernel set * Continue reading “Gentoo upgrade kernel”
Gentoo tomcat
package.license:
dev-java/oracle-jdk-bin Oracle-BCLA-JavaSE
download jdk-8u144-linux-x64.tar.gz
copy jdk-8u144-linux-x64.tar.gz to /usr/portage/distfiles
chown portage:portage jdk-8u144-linux-x64.tar.gz
chmod -x jdk-8u144-linux-x64.tar.gz
emerge -v oracle-jdk-bin
emerge -v tomcat
Gentoo xfce
command (ps axu) (equery uses xorg-server) (which startxfce4)
make.conf (USE=” X -qt4 -qt5″ video_cards=”i965 intel”)
make.conf (XFCE_PLUGINS=”brightness clock trash”)
emerge -vp xorg-server
emerge -vp dbus
emerge -vp xfce4-meta xfce4-notifyd
startxfce4 (userlogon)
F1 (Xsession xfce4session)
#touchpad (emerge xf86-input-synaptics)
Slim => make.conf (use=”branding consolekit pam” XFCE_PLUGINS=”brightness clock trash”)
emerge -vp slim
Centos7 Kernel upgrade
rpm –import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
测试源是否启用成功,执行:
yum repolist enabled Continue reading “Centos7 Kernel upgrade”