Ubuntu Server Learning notes in Linux

Source: Internet
Author: User

1, solve the Chinese garbled problem. Originally wanted to facilitate the use of the system, deliberately selected the Chinese installation, the results command line in Chinese to display a pile of square symbol, since it is playing the server system, it is still in English bar. Modify Content:
sudo vim/var/lib/locales/supported.d/local
Reserved only: en_US. UTF-8 UTF-8

Sodu Vim/etc/default/locale
Put the following content:
Lang= "ZH_CN. Utf-8″
Language= "Zh_cn:zh"
Modified to:
Lang= "en_US. Utf-8″
Language= "En_us:en"

Finally reboot the system.

2, Vim use method: Press I enter edit mode, press ESC to exit edit mode,: W save content but do not exit Vim editor,: Wq save content and exit Vim editor,: Q quit Vim editor when content is not modified: q! Discard the edited content force quit the Vim editor.

3, restart command: reboot,shutdown-r now; Shutdown command: Halt,poweroff,shutdown-h now

4, set permissions: sudo chmod-r 777/var/www (open www access to read and write)
sudo chmod 600xxx (only the owner has read and write permissions)
sudo chmod 644xxx (owner has read and write permission, group user only Read permission)
sudo chmod 700xxx (only the owner has read and write and permissions to execute)
sudo chmod 666xxx (everyone has read and write permissions)
sudo chmod 777xxx (everyone has read and write and Execute permissions)

5, install the PHP environment:
sudo apt-get install php5 libapache2-mod-php5

6, install MySQL:
sudo apt-get install Mysql-server
After installation, you will be prompted to enter a password.

7, Installation phpMyAdmin:
sudo apt-get install phpMyAdmin
Because the phpMyAdmin is installed by default in/usr/share/phpmyadmin, you need to make a link, the command is: sudo ln-s/usr/share/phpmyadmin/var/www/, and then you can go through http:// X.x.x.x/phpmyadmin visited it.

8. Install ftp:
sudo apt-get install vsftpd
Use this directive to see if the installation is successful after installation: Netstat-tul l grep FTP
Back up before you change: sudo cp/etc/vsftpd.conf/etc/vsftpd.conf.old
Modify VSFTP settings: sudo/etc/vsftpd.conf
Reboot required after modification: SUDO/ETC/INIT.D/VSFTPD restart

9, Apt-get use:
Installation software: sudo apt-get install PackageName
Delete software: sudo apt-get remove PackageName
Full Uninstall software includes delete profile: sudo apt-get–purge remove PackageName

10, install finger, you can view the user's home directory, launch Shell, user name, address, and so on:
sudo apt-get intall finger
View command: Finger user name

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.