Common commands for Ubuntu 8.0.4

Source: Internet
Author: User
Tags import database

Install apache2

Program code
Sudo apt-Get install apache2

Install Pear

Program code
Sudo apt-Get install PHP-Pear

Install SVN

Program code
Sudo apt-Get install Subversion

Install phpMyAdmin

Program code
Sudo apt-Get install phpMyAdmin

How to access phpMyAdmin through 127.9.0.1/phpMyAdmin after phpMyAdmin is installed
After the installation is complete, go to/usr/share/PHPmyAdmin.
To access the service, you must link the directory to the Apache directory.

Program code
Sudo ln-S/usr/share/PHPmyAdmin/apache2/phpMyAdmin

Install cache_lite

Program code
Sudo pear install cache_lite

Installation Input Method

Program code
Sudo apt-Get install-y scim-pinyin scim-tables-ZH scim-qtimm im-switch scim-Bridge

Restart Apache

Program code
Sudo/etc/init. d/apache2/restart
Sudo/etc/init. d/apache2/stop
Sudo/etc/init. d/apache2/start

Change software source

Program code
VI/etc/APT/sources. List

A Remote Desktop Connection Tool in Windows

Program code
Http://www.realvnc.com/dist/vnc-3.3.7-x86_win32_viewer.exe

Folder or file permission settings

Program code
Chmod-r 777 ABC
Chmod 777 d.html

SCP life

Program code
SCP abc.html deploy@192.168.1.122:/home/www/

Clear all software caches

Program code
Sudo apt-Get clean

View remaining disk space

Program code
DF-H

View space occupied by Directories

Program code
Du-HS directory name

View Current memory usage

Program code
Free-m

View Processes

Program code
PS-

Abort a process

Program code
Kill process ID (PID)

Force stop a process (used when the process failed to be aborted)

Program code
Kill-9 process no.

Show Hidden Files

Program code
CTRL + H

Place Mysql Data Inventory

Program code
/Var/lib/MySQL

Export and import data from MySQL

Program code
Mysqldump Database Name> file name # Export Database mysqladmin create database name # create database MySQL database name <file name # import database

What should I do if I forget the MySQL Root Password?

Program code
Sudo/etc/init. d/MySQL stop sudo mysqld_safe -- skip-grant-tables & sudo mysqladmin-u User Password 'newpassword' 'sudo mysqladmin flush-Privileges

Modify the root password of MySQL

Program code
Sudo mysqladmin-uroot-P password 'your new password'

Check whether Apache is started

Program code
PS-Ef | grep apache2
PS-Ef | grep apache2-C

Change the hosts file

Program code
VI/etc/hosts
127.0.0.1 www.zishu.cn

Restart or shut down

Program code
Shutdown-R now restart
Shutdown-H Now shutdown

Apache to force output utf8 format

Program code
In the apache2.conf file, add/include/etc/apache2/CONF. D to/include/etc/apache2/CONF. d/charse.

This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/hanxin1987216/archive/2008/09/14/2826734.aspx

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.