1. Firewall -> centos5.6 version iptables, centos7 use Firewalls
命令:systemctl start(stop、enable,disable,status) firewalld(sshd)
2.nginx
Installation of extensions: yum install epel- * (so do not separate download NGINX)
Installation NGINX: yum install nginx
Start NGINX: systemctl start nginx
default.conf under nginx.conf and /etc/nginx/conf.d / etc under / nginx directory: two directories
Run a few daemon (service) to write into several
url rewrite
(Rewrite module)
It can be converted to a static address dynamically url, sqlmap prevent implantation.
Configuration finished, confirm (nginx -t) is correct to restart NGINX: nginx -s reload
rewrite syntax and parameter syntax as follows: (description link https://www.cnblogs.com/czlun/articles/7010604.html )
rewrite <regex> <replacement> [flag];
The keyword is the alternative content flag mark
Keywords: error_log where the key can not be changed
Regular: perl-compatible regular expression match is performed statement
Alternate content: content being replaced to match the replacement
flag mark: rewrite the flag marking support
flag label Definitions:
After the last # match this rule is complete, continue down the new location URI matching rules
break # complete match this rule is terminated and no longer match any subsequent rules
return redirect # 302 temporary redirect, the browser displays the URL address after the jump
permanent # 301 returns a permanent redirect, the browser address bar displays the URL address after the jump
rewrite the parameter label segment positions:
server,location,if
example:
rewrite ^/(.*) http://www.czlun.com/$1 permanent;
Description:
rewrite the fixed keyword matching rewrite rule represents the start
regex part is ^ / (. *), which is a regular expression, and the domain name matches the complete address of the path behind
replacement part is http://www.czlun.com/$1 $ 1, taken from the regex part () the contents. After a successful jump to match the URL.
flag indicates a permanent part of permanent redirection flag 301, i.e. jump to a new address http://www.czlun.com/$1
Complete reverse proxy load balancing:
Network penetration:
2.mysql
Navicat can make use of remote database management
Installation script: mysql_secure_installation
#yum install mysql
#yum install mysql-server
#yum install mysql-devel
When you install mysql-server failed due to centos7 the myaql database software from the default list of programs overflow and replaced with mariadb.
Solution: 1. Install mariadb
2. Download mysql-server, the official website can be slow to download USTC Source: View Source Use Help mariadb
3.php-fpm
Profiles: /etc/nginx/conf.d/default.conf
You need to install the database connection
[] To be improved