Linux Terminal Instructions Summary

Source: Internet
Author: User
Tags php framework

Have never had the opportunity to learn Linux instruction system, but always encounter the operation of the file or database through instructions, can not blindly rely on the help of the backend developers. The incoming leader said that if you fall in the same place, you are a fool. I do not want to be a fool, so, in the future here to record the work of those commonly used in the Linux command bar, warm and know new.

1.Mysql-uroot

Switch to the MAYSQL environment

2.source Importing database files

MySQL > Use youplus;
" path name "+/mytest_emp_dept.sql

3.scp

~: SCP [email Protected]:~/sql.zip ~/  
Import the Sql.zip file from the remote host [email protected] root directory to the local root directory ~/.

4.Unzip

~:unzip Sql.zip
Unzip the sql.zip under the directory

5.php-s localhost:8000

5.4 . 0, CLI SAPI provides a built-in Web server. This built-in Web server is primarily used for local development and is not intended for use in online product environments. URI requests are sent to the working directory where PHP is located (working directory) for processing, unless you use the -T parameter to customize a different directory. When you start the Web server at the command line, if you specify a PHP file, the file acts as a "routing" script, which means that each request executes the script first. If the script returns FALSE, the requested file is returned directly (for example, requesting a static file without any processing). Otherwise, the output is returned to the browser.
$ cd ~/public_html$ php-s localhost:8000

At startup, specify the root directory
$ cd ~/public_html$ php-s localhost:8000-t foo/

6.PHP artisan serve--port=8080

PHP Framework Laravel Framework directives, starting the server

Linux Terminal Instructions Summary

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.