摘要:
安装基本工具 git mysql5.7+ node8.9.4+ 获取源代码 git clone https://github.com/thx/rap2-delos.git 环境配置 创建数据库 mysql -e 'CREATE DATABASE IF NOT EXISTS RAP2_DELOS_AP 阅读全文
摘要:
安装httpd,svnyum install httpd httpd-devel subversion mod_dav_svn ntpdate -y 开始创建目录和配置文件mkdir -p /etc/subversion && cd /etc/subversion && touch svn-auth 阅读全文
摘要:
1.安装dnsmasq yum install -y dnsmasq 2.配置配置文件 vim /etc/dnsmasq.conf no-hosts resolv-file=/etc/resolv.dnsmasq.conf strict-order listen-address=192.168.0. 阅读全文
摘要:
查看CPU是否支持VT技术: cat /proc/cpuinfo |grep vmx 没有回显就是不支持,需要在bios里开启虚拟化 安装软件: yum install *qemu* *virt* *kvm* -y 启动服务: systemct start libvirtd 默认存储池: /var/ 阅读全文
摘要:
#!/bin/bash#安装邮件rpm -q sendmail if [ $? -ne 0 ];then yum -y install sendmail firpm -q mutt if [ $? -ne 0 ];then yum -y install mutt fisystemctl restar 阅读全文
摘要:
XSS将输入的数据进行转义处理,比如说讲 < 转义成<; SQL注入在java中,我们可以使用预编译语句(PreparedStatement),这样的话即使我们使用sql语句伪造成参数,到了服务端的时候,这个伪造sql语句的参数也只是简单的字符,并不能起到攻击的作用。很多orm框架已经可以对参数 阅读全文
摘要:
需要开80端口,指定IP和局域网下面三行的意思:先关闭所有的80端口开启ip段192.168.1.0/24端的80口开启ip段211.123.16.123/24端ip段的80口# iptables -I INPUT -p tcp --dport 80 -j DROP # iptables -I IN 阅读全文
摘要:
#nginx开启的进程数worker_processes 4; #4核CPU #定义全局错误日志定义类型,[debug|info|notice|warn|crit]error_log logs/error.log info; ##指定进程ID存储文件位置pid logs/nginx.pid; eve 阅读全文
摘要:
#nginx开启的进程数worker_processes 4; #4核CPU #定义全局错误日志定义类型,[debug|info|notice|warn|crit]error_log logs/error.log info; #指定进程ID存储文件位置pid logs/nginx.pid; #一个n 阅读全文