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