Build LANP Environment on Ubuntu

Source: Internet
Author: User
Tags mysql client phpmyadmin install redis

1. Installing Tasksel

sudo apt-get install Tasksel
Only sudo tasksel when using Tasksel


2. Install lamp

sudo tasksel instal lamp-server

Open Browser input 127.0.0.1 can see Apache home page

Switch to/var/www/html (default directory) directory to create a new test.php file exit save, you can see its effect in the browser


apache Modify default directory path  /etc/apache2/sites-enabled/000-default  (need to restart Apache after modification)

Restart apache:sudo  /etc/init.d/apache2   restart


3. Installing phpMyAdmin

sudo apt-get install phpMyAdmin


in the terminal.

sudo ln -s /usr/share/phpmyadmin/ /var/www/

Service start and stop

/etc/init.d/mysql stop

/etc/init.d/mysql start

/etc/init.d/mysql restart


Open MySQL client: mysql-u root-p


To view the status of a service:

1.ps-e | grep service name (e.g., SSH redis)

2.ps-aux | grep Service Name

3.sudo/etc/init.d/redis-server Status View service state


Installing Redis

sudo apt-get install Redis-server


Start the Redis client redis-cli






Build LANP Environment on Ubuntu

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.