Linux Learning Notes (iii) Ubuntu installation JDK1.6 and tomcat7.0

Source: Internet
Author: User

Objective

recently want to study what Linux is like, previously for Linux only to stay in the degree of admiration do not know what Linux version of the system and the various commands under it is also vague, but also the work of the Linux server from time to time to use some of the operational commands, Due to the lack of familiarity with the server to ask the manager or other colleagues to help the brother, it is better to understand this piece of knowledge, out of a moment of enthusiasm to buy a classic book "Bird Brother's private food" looked at this book is really good for beginners, just contact with Linux people read the book, A variety of basic knowledge of the introduction to let you out of the diffuse, the book is too thick to have more than 800 pages, with a two-week time just read half.

The biggest feeling of this book is the knowledge of Linux is very much, here need to remember that there also need to remember some of the knowledge points are scattered, not as the window has a graphical interface to see the interface will know the fool operation, learning simple and easy to understand, learning Linux in fact for the individual or server is a good choice, At least the Linux server does not feel that there is a card, the basic is very smooth feeling, and if you want to the server architecture, distributed big data, embedded and other aspects of development requires a very large number of mastering the Linux operating system.

Here is a list of all the points that have been viewed over the past few days, just a list of each knowledge title, and if you want to learn more, you need to search for a variety of explanations and examples.

The tangle of problemsI built a VM virtual machine on top of my window7host, And in the virtual machine installed a ubuntu14.4 system, according to the normal logic of Linux as a server side, we often do not need to go to the Linux machine room directly operate the server, often through the client remote connection to Linux, the current client is very popular such as Putty, Xshell , FileZilla, Cshell, and so on, now I want to build an FTP server and then host through the client to connect to the server, but I tried for a few days is still not connected, tried the online search of various classes, such as shutting down the Linux firewall, open ports, etc. but are not satisfactory Try to change the way the VM is connected to a bridge mode but still not connect just can ping the virtual machine in host, for the specific reason is still in the search for ing ...now I changed a way for the virtual machine to connect directly to the network, directly from the Internet to download the necessary software, first downloaded the JDK and Linux found that the Linux tomcat is more than 8M can run. My web-disk:http://pan.baidu.com/s/1ydOZk
Simple configuration jdk1.6 The first step is to download the JDK, the default directory is the main folder under the/lls/download/directory, can be copied from here to the/usr/java directory, in the copy process encountered the following problem: I did not log in as an administrator, Do not download the file execution and read permissions, I first use ls-l to see the file permission prompt does not have permission, CP: Unable to create ordinary file "/usr/java/jdk-6u45-linux-i586.bin": Insufficient permissions,                I gave a 777 permissions so sure enough is also the highest permissions, the target directory page changed permissions, changed to 777 means can read and write execution, generally to the target file or directory to write things must have write and access permissions, etc., Chmod-r 777/usr/java/can, as follows Configure the environment variables, change the following configuration, add the following lines in the profile file, using Vim to open the profile file change configuration file
Export JAVA_HOME=/USR/JAVA/JDK1.6.0_32
Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
Export path= $PATH: $JAVA _home/bin, as follows


After the modification is complete, the following profile file is executed with the source command, such as whether the source profiles test was successfully entered: java-version, which appears as indicating success:
The installation tomcat7.0 process is:http://tomcat.apache.org/download-80.cgiafter downloading, unzip and copy to the/opt/directory, and then execute./bin/startup.sh start Tomcat, you can enter http://localhost:8080/in the browser to display the Tomcat cat's main interface. PS: Extract the use of TAR-ZXVF apache-tomcat-8.0.12.tar.gz command; When you copy it, you need to add cp-r, which means that iterative replication can replicate the directory, otherwise replication does not occur. Simple installation here is no longer a statement of exhaustion. Linux is not so complicated to look at the Linux basic sense is not so complicated, if you use simple command instead of the window to feel more quickly, first of all, save you to open the closing screen time also saves the time to find some files or things, no matter under which directory you,        Can execute a variety of commands, such as you do not know where the directory can also immediately perform shutdown, restart, find and other commands, do not need to open the view interface to save the efficiency and time saving the CPU cost, Linux system first you do not feel the card feeling, the general system is running very fast. For Linux just have some understanding and impression, Linux is now feeling that the command is very much, no matter what you need to execute commands, then you need to use some of the common commands to remember how you do it, want to master Linux is a lot of practice, a lot of thinking, The result of a lot of hands out, each command is not the crash hard back to remember, understanding will be flexible to run the commands. Hadoop distributed computing If you want to deal with big Data computing, distributed Application system design often need to set up a Linux high-performance server to handle, mastering the good Linux is the basis for learning these things, many distributed computing is running on this kind of server, For example, the simple EJB distribution of a system of the various business logic can not be divided into various systems, the hundreds of-day computer processing a business logic at the same time, greatly reducing the number of concurrent traffic, improve server performance, improve user experience. Summarize the learning mentality for unfamiliar things that they are unfamiliar to maintain a positive learning attitude, work or things to try their best when the pursuit of perfection, do things to think after the implementation, do not blindly work or think after analysis to get results; for the life after work should be reasonable arrangement, try not to do the work of things, It is important to work in the company, to exercise more in spare time, and to increase contact with friends.

Linux Learning Notes (iii) Ubuntu installation JDK1.6 and tomcat7.0

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.