of sun?
Google found that the original RedHat is far less troublesome than the win system. There is an alternative system (Alternatives System) mechanism in RedHat to abstract the locations and trademarks of different software or different versions of the same software, so as to eliminate the need to replace the environment. Update-alternatives is the implementation of this mechanism. Therefore, you can us
Finally, the complete implementation of C ++ 11 GCC 4.8.1.
Upgrade your system.
The following steps install gcc4.8.1 with content from: http://askubuntu.com/questions/312620/how-do-i-install-gcc-4-8-1-on-ubuntu-13-04
First install a software
apt-get install python-software-properties
Then
sudo add-apt-repository ppa:ubuntu-toolchain-r/testsudo apt-get updatesudo update-alternatives --remove-all gcc sudo update-al
the operation. Then download the tar.gz package for the corresponding JDK, and put it in:/var/cache/oracle-jdk7-installer (JDK7)/var/cache/oracle-jdk8-installer (JDK8)Below, and then install the installer once. Installer will use the TAR.GZ package you downloaded by default3. Set the system default JDKJDk7sudo update-java-alternatives-s java-7-oracleJDK8sudo update-java-alternatives-s java-8-oracleIf the J
corresponding JDK, and put it in:/var/cache/oracle-jdk7-installer (JDK7)/var/cache/oracle-jdk8-installer (JDK8)Below, and then install the installer once. Installer will use the TAR.GZ package you downloaded by default3. Set the system default JDKJDk7sudo update-java-alternatives-s java-7-oracleJDK8sudo update-java-alternatives-s java-8-oracleIf the JDK7 is installed and the JDK8 is installed, to switch be
installer because of a firewall or some other reason, you can interrupt the operation. then download the corresponding JDK tar.gz package, put in:
/var/cache/oracle-jdk7-installer (JDK7)
/var/cache/oracle-jdk8-installer (JDK8)
Below, and then install the installer once. Installer will default to use the tar.gz package you downloaded 3. Set system default JDK
JDk7
sudo update-java-alternatives-s java-7-oracle
JDK8
sudo update-java-
1: Installed through the PPA (source) mode.
2: Download the installation package through the official website.
1th is recommended here because the JDK upgrade can be easily obtained by Apt-get upgrade method. install using the ppa/source method Add PPA
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
Install Oracle-java-installer
Jdk7:
sudo apt-get install oracle-java7-installer
jdk8:
sudo apt-get install Oracle-java8-installer
The installer will prompt you to agree to Oracle
individual)If you cause installer to download slowly due to firewalls or other reasons, you can interrupt the operation. Then download the tar.gz package for the corresponding JDK, and put it in:/var/cache/oracle-jdk7-installer (JDK7)/var/cache/oracle-jdk8-installer (JDK8)Below, and then install the installer once. Installer will use the TAR.GZ package you downloaded by default3. Set the system default JDKJDk7sudo update-java-alternatives-s java-7-or
addition, btrfs is better than ext in terms of data storage. It includes some logic volume management and raid hardware functions, which can be used to inspect internal metadata and user data, and built-in snapshot functions. Ext4 can also implement the above functions, but it needs to communicate with the file system and the logical volume manager.
It's a pity that there are so many advanced functions that cannot be eliminated now ......
Second: glusterf
expansion requirements.
Currently, open-source distributed Block Storage includes CEpH, glusterfs, and sheepdog. Compared with CEpH, the biggest advantage is that the Code is short and well maintained, and the hack cost is very small. Sheepdog also has many features not supported by CEpH, such as multi-disk and cluster-wide snapshot.
In this article, Japanese NTT researchers compared sheepdog, glusterfs, a
expansion requirements.
Currently, open-source distributed Block Storage includes CEpH, glusterfs, and sheepdog. Compared with CEpH, the biggest advantage is that the Code is short and well maintained, and the hack cost is very small. Sheepdog also has many features not supported by CEpH, such as multi-disk and cluster-wide snapshot.
In this article, Japanese NTT researchers compared sheepdog, glusterfs, a
Preparation: JBoss, JDK, a Java EE War pack, DockerfileNote: JBoss and JDK can not be prepared in advance, wget in the command, because I happen to have, directly copiedDockerfile content:#admln 20150120From ubuntu:14.04Maintainer admln RUN Mkdir/usr/jbossCOPY wildfly-8.2.0.final/usr/jboss/COPY javaeedocker.war/usr/jboss/standalone/deployments/RUN mkdir/usr/java/COPY jdk-7u71-linux-x64.tar.gz/usr/java/workdir/usr/java/RUN TAR-ZXF jdk-7u71-linux-x64.tar.gzRUN update-
= $PATH: $JAVA _home/bin:$ Classpathexport PATH
Note the path and version of the JDK
Make configuration effective
Source/etc/profileConfiguring the default JDK
Create a new Java version
Create a new system command link in the shell with the update-alternatives command:sudoUpdate-alternatives--Install/usr/bin/javac Javac/usr/lib/jvm/jdk1.7.0_79/bin/javac1171sudoUpda
The update-alternative in Ubuntu/debian is used to manage different versions of the same software in a system.For example, the system may contain the GNU Java compiler, and the Sun's Java compiler. You can use Update-alternatives to set which of these are currently used.Its principle is to create a link in the/usr/bin, point to a file in the/etc/alternatives, and some file is a link, pointing to the current
settings can be.
Ls-l--full-time/usr/java/jdk1.7.0_71 can see that the full installation time, the indication is really just installed.
[Root@localhost sss]#/usr/java/jdk1.7.0_71/bin/java-version
Java Version "1.7.0_71"
Java (TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot (TM) 64-bit Server VM (build 24.71-b01, Mixedmode)
As you can see, this Java is no longer an open JDK.
Ok.
Vi/etc/profile
Add at the end of the file
Export java_home=/usr/java/jdk1.7.0_71
Exportclasspath=.: $JA
Moosefs is very good, has been practical for half a month, easy-to-use, stable, small file is very efficient.
MogileFS is said to be good at storing pictures for Web 2.0 applications.
Glusterfs feel that advertising is doing better than the product itself.
Openafs/coda is a very distinctive thing.
Lustre complex, efficient, suitable for large clusters.
PVFS2 with custom applications will be good, the dawning of the parallel file system is said to
..Lrwxrwxrwx. 1 root 16 Oct 13 default->/usr/java/latestDrwxr-xr-x. 9 root 4096 Oct 13 jdk1.8.0 _ 20Lrwxrwxrwx. 1 root 21 Oct 13 latest->/usr/java/jdk1.8.0 _ 20
However, it is not actually used so far. We need to use the alternative tool to manage it.
For soft links, if we direct the configuration content to/usr/java/default/bin/xxx and install jdk 1.9 or 2.0 in the future, you just need to directly modify the soft link, instead of having to do it again. therefore, I will use/usr/java/default/a
Recently installed in Ubuntu16.04 python3.5 and the system comes with the python2.7.13, summarize the different versions of the switching problem.
Alias: Aliases
BASHRC: Personal Profile
First, modify the Python version (for users)To modify a Python version for a particular user, simply create one (alias) in its home directory alias . Open the user's ~/.bashrc file and add the new alias information to modify the Python version that is used by default.Alias python= '/usr/bin/pyt
the TAR.GZ package you downloaded by default3. Set the system default JDKJDK8sudo update-java-alternatives-s java-8-oracleIf the JDK7 is installed and the JDK8 is installed, to switch between the two, you can:JDK8 Switch to Jdk7sudo update-java-alternatives-s java-7-oracleJDK7 Switch to Jdk8sudo update-java-alternatives-s java-8-oracle4. Test whether the JDK was
ubuntu 16.04本身是自带python的,他本身是自带2.X和3.X,两个版本,默认的是2.X。这里记录一下如果在版本间切换以及如何把python版本切换到3.X下的方法。1. See the version of Python installed in Ubuntu and the Python version currently in useLs/usr/bin/python*python--version2. Set Update-alternatives to toggle Python versionShow python in place of version informationUpdate-alternatives--list pythonShow after executionUpdate-alternatives:error:no
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.