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