Several points in the CentOS

Source: Internet
Author: User

1, in CentOS, can be installed a few Java, if there is an installation version, the surface installation version will not be effective, java-verbose can see the current Java installation information

2. Then view the installed software in the CentOS system: RPM-QA can be executed with grep's powerful command

3, in CentOS can use RPM-E to remove a software, if because of the dependency package: rpm-e--nodeps xxx to remove

4. In CentOS, the configuration environment variable can be configured to/etc/profile. However, if you exit the terminal, you do not recognize the Java command. This can be set to/ETC/BASHRC inside. Then SOURCE/ETC/BASHRC

5, Eclipse this time cannot find Java this executable file, so can not open eclipse could join in Eclipse.ini (-VM wrapped Java path wrapping) to develop the Java virtual machine to execute eclipse

6, cp-r recursive copy file

7, MV can be moved files may also have this file name

8, chmod u+x eclipse.sh to the current eclipse.sh to the user to execute permissions

9. Add the sudo space before the command to execute this command with the root user

10, on Linux (CentOS) should always pay attention to the issue of permissions. Whatever you're doing. Ensure that you have sufficient permissions first. Today's problem, Eclipse does not recognize the Conf folder under Tomcat, saying that it cannot be found. Previously looked for long time, the result only the user has the read and write execution permission, the other user does not have at all, workspace also this, sometimes may prompt the permission not enough. But sometimes that's not necessarily the case. This time with the chmod a+rwx-r conf increased the privileges of ordinary users. So eclipse runs as usual

Several points in the CentOS

Related Article

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.