Notes for common Ubuntu commands

Source: Internet
Author: User
Tags gz file

Install software in Linux:
RPM package:
Rpm-IVH soft. rpm
Deb package:
Dpkg-I soft. Deb
Tar.gzSource codePackage:
Tar-xzvf soft.tar.gz // generate a soft directory
CD soft
./Configure
Make install
Binfile:
Chmod + x soft. Bin
/Soft. Bin

Decompress a tar.gz file (decompress it to the current directory)
Tar xvfz file name .tar.gz

Install Eclipse:
$ Sudo tarxvfz eclipse-jee-galileo-SR2-linux-gtk.tar.gz-C/OPT

JDK environment variable settings
Command: sudo VI/etc/environment
Path = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: /usr/lib/JVM/jdk1.7.0 _ 01/bin"

Classpath = "/usr/lib/JVM/jdk1.7.0 _ 01/lib"

Java_home = "/usr/lib/JVM/jdk1.7.0 _ 01"

Delete all files in folders and folders:
Rm-RF path

Steps for installing XAMPP:
1. Switch the terminal to the root:
Su Root
2. Switch the path to the compressed package path:
CD/home/wustrive/
3. Unzip and install
Tar xvfz xampp-linux-1.7.7.tar.gz-C/OPT
Note: After installation, under/OPT
Start and Stop XAMPP
1. Start
Start XAMPP:/opt/lampp start
Only start apatche:/opt/lampp startapache
Start MySQL only:/opt/lampp startmysql
2. Stop
Restart XAMPP:/opt/lampp restart
Stop XAMPP:/opt/lampp stop
Stop Apache:/opt/lampp stopapache
Stop MYSQL:/opt/lampp stopmysql

Process:
View process ID: PS-e
Kill process ID
Killall process name

Install QQ (linuxqq_v1.0.2-beta1_i386.deb ):
Command:
Dpkg-Deb-x linuxqq_v1.0.2-beta1_i386.deb/OPT Note: Install to the OPT directory

MySQL administrator cannot connect to the database:

Root @ Ubuntu:/home/wustrive # sudo mkdir/var/run/mysqld
Root @ Ubuntu:/home/wustrive # sudo ln-S/opt/lampp/var/MySQL. Sock/var/run/mysqld. Sock

Change the permissions of an archive (File:
Chgrp: Change the group to which the archive belongs
Chown: Change the owner of an archive
Chmod: Change the attributes and SUID of an archive.
Modify permissions for all files in folders and folders:
Chmod 777 *-R

Ten permissions of an archive:
-Wrxwrx ---
1: file type (file or directory or linked file, etc.) 2-4: All permissions of the file (read/write execution) 5-7: permissions of the group to which the file belongs 8-10: permissions of others

Tomcat and Apache:
Start Stop aapche:
Sudo apache2ctl-K start/stop
Source code installation and startup method: (for source code installation, see Tomcat and Apache integration)
/Usr/local/apache2/bin/apachectl start/stop

Start and Stop Tomcat:
Sudo/etc/init. d/tomcat7 start/stop

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.