System Installation
Acer notebook win7 system can be deleted, need to keep D disk E disk
Ubuntu-14.10-desktop-i386
Usbwriter.rar
1, using Usbwriter and system to make U disk installation disk
2. Swap partition
HOTP Tool View System resource status
sudo apt-get install Htop
http://blog.csdn.net/ajaxuser/article/details/6570933
Install Ubuntu notes
Fcitx Comfort Method
1. Tools
Usbwriter+u Disc Making installation disk
ubuntu-14.10 64 or ISO file
CentOS 5, 6
2, Ubuntu basic operation
Program installation Three ways http://www.cnblogs.com/xwdreamer/p/3623454.html
1, Apt-get
2, dpkg installation Deb
3. Make Install Source package
Yum?? What is the installation? Based on RPM package management??????????????
mkdir directory name Create a directory
RmDir Empty directory name Delete an empty directory
RM FileName File name Delete a file or multiple files
RM–RF non-empty directory name delete everything under a non-empty directory
Touch file name creates an empty file
MV file1 file2 Modify file name 1 to 2
chmod 777 File Modify permissions
Htop View Server Resource status
DPKG Package Management
Dpkg-l nano* Fuzzy Search
2. Install the server
Article: http://blog.csdn.net/hursing/article/details/21527159
http://my.oschina.net/duwaiweb/blog/80578
http://ixdba.blog.51cto.com/2895551/806622/
2.1 Console operation
sudo su
sudo apt-get install Nginx
sudo apt-get install PHP5-FPM
2.2 Modifying Nginx configuration files
sudo gedit/etc/nginx/sites-available/default
2.3 Run start-up is ready.
sudo service nginx start
/usr/share/nginx/html file path
= = = Installation Section Tips
The following additional packages will be installed:
Nginx-common Nginx-core Php5-common Php5-json
Recommended Packages to install:
Fcgiwrap Nginx-doc Php5-user-cache Php-pear
The following "new" packages will be installed:
Nginx Nginx-common nginx-core Php5-common php5-fpm Php5-json
= = = Tip End
Nginx PHP
FastCGI
HTTP server (such as Nginx, Apache) and dynamic language scripts (such as: PHP, ASP) scalable, high-speed communication interface. When the HTTP server encounters a dynamic program, it is delivered directly to the fastcgi process to execute, and the resulting results are returned to the browser.
PHP-FPM, spawn-fcgi php-cgi are fastcgi managers
spawn-fcgi and PHP-FPM
Is the FASTCGI process Manager, or engine, that initiates one or more daemons to parse the dynamic script on the script resolution server.
SPAWN-FCGI is used in conjunction with LIGHTTPD to support PHP, but memory leaks or even restarts fastcgi when high concurrency occurs.
PHP-FPM as a PHP patch to develop, at the time of installation also need to compile with PHP source code, recommended nginx+php/php-fpm This combination of PHP parsing.
Installing PHP5-FPM
sudo apt-get install PHP5-FPM
Installing Nginx
sudo apt-get install Nginx
Modifying a configuration file Etc/nginx/sites-enabled/default file
View Nginx Process
Ps-waux | grep nginx
Nginx-s stop
Start Nginx
Installing the SHH server
sudo apt-get install Ssh-sever
Confirm that the Sshserver is started: ps-e |grep SSH
phpMyAdmin the phpMyAdmin file directory should be soft-connected to the project directory after the installation is complete
sudo ln-s/usr/share/phpmyadmin//var/www/
Apt Installation history (Ubuntu:/var/log/apt/history.log
==========
Git
Git Server Installation
Apt-get Install git
Http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/ 00137583770360579bc4b458f044ce7afed3df579123eca000
Create a git user create a certificate login initialize git repository
Client-generated key
Open git Bansh
$ ssh-keygen-t Rsa-c "your email address"
Just enter your name and password.
==========
VI Command Daquan
Http://www.cnblogs.com/sunormoon/archive/2012/02/10/2345326.html
I,i,o,o,a,a,r,r into edit mode
ESC exits edit mode
I current cursor writes o add one line below
Wq Save exit
==========
Apt
sudo apt-get Install * * Prompt for package not found
Can update the source Apt-get update
If the update source fails
==========
Rm
Update source after/var/lib/apt/lists directory needs to be emptied
Empty method Execution: rm-rf/var/lib/apt/lists
===========
Netstat
View Port Usage
View the connected service ports (established
Netstat-a
View all service ports (listen,established)
Netstat-ap
To view port 8080, you can combine the grep command:
Netstat-ap | grep 8080
If you look at Port 8888, enter it in the terminal:
lsof-i:8888
To stop a program that uses this port, use the Kill + corresponding PID to
==========
Installation of Nginx, PHP5-FMP, Mysql-server, mysql-client
Apt-get install ' software name '
Mysql
Mysql-u Root-p Login to see if the installation is good
Php5-fmp
Modify a configuration file etc/php5/fpm/pool.d www.conf file
; listen =/var/run/php5-fpm.sock (note)
Listen = 127.0.0.1:9000 (newly added)
Overloaded PHP5-FPM configuration #/ETC/INIT.D/PHP5-FPM Reload
Check to see if the 9000 port is listening:
# NETSTAT-TLN (If 9000 ports appear, the PHP5-FPM starts normally.) )
Nginx
Modify Nginx configuration file/etc/nginx/sites-available/default
www directory for files
Location ~ \.php$ {
Fastcgi_pass 127.0.0.1:9000;
Fastcgi_index index.php;
Include Fastcgi_params;
}
Modify server{
root/var/www/;
Index index.html index.htm index.php;
}
var directory to create new folders and files
mkdir www
Touch test.php
Re-start Nginx
Nginx-s stop
Start/usr/sbin/nginx
Ubuntu System Installation