常用命令

wget http://yun.diandaxia.com/other/jdk-8u92-linux-x64.rpm
vi /usr/lib/systemd/system/vncserver@.service


mv /usr/lib/systemd/system/vncserver@.service /usr/lib/systemd/system/vncserver@:1.service

systemctl enable  vncserver@:1.service

systemctl start vncserver@:1.service


rpm -ivh jdk-8u92-linux-x64.rpm

wget http://yun.diandaxia.com/other/jdk-8u92-linux-x64.rpm

wget http://yun.diandaxia.com/other/ideaIU-2016.1.3.tar.gz

wget http://oss.aliyuncs.com/aliyunecs/update_source.tgz

tar -zxvf update_source.tgz

bash update_source.sh

tar -zxvf ideaIU-2016.1.3.tar.gz

apt-get remove openjdk*


vi /etc/apt/sources.list

apt-get update


deb http://mirrors.aliyun.com/centos/ trusty main restricted universe multiverse

deb http://mirrors.aliyun.com/centos/ trusty-security main restricted universe multiverse

deb http://mirrors.aliyun.com/centos/ trusty-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/centos/ trusty-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/centos/ trusty-backports main restricted universe multiverse

deb-src http://mirrors.aliyun.com/centos/ trusty main restricted universe multiverse

deb-src http://mirrors.aliyun.com/centos/ trusty-security main restricted universe multiverse

deb-src http://mirrors.aliyun.com/centos/ trusty-updates main restricted universe multiverse

deb-src http://mirrors.aliyun.com/centos/ trusty-proposed main restricted universe multiverse

deb-src http://mirrors.aliyun.com/centos/ trusty-backports main restricted universe multiverse

原文地址:https://www.cnblogs.com/del88/p/5647080.html