vi /etc/nginx/nginx.conf server { listen 80 default_server; listen [::]:80 default_server; server_name _; root /usr/share/nginx/html; //增加下面一行 index index.php index.html index.htm; # Load configuration files for the default server block. include /etc/nginx/default.d/*.conf; location / { } error_page 404 /404.html; location = /40x.html { } error_page 500 502 503 504 /50x.html; location = /50x.html {

centos MySQL PHP Nginx

Read more

**1. 自己新建一个脚本,如startup.sh** **2. 在脚本中输入启动服务的命令,如(开机启动tomcat):** #!/bin/bash export JDK_HOME=/home/java/jdk1.8.0_91 export JAVA_HOME=/home/java/jdk1.8.0_91 /home/tomcat/apache-tomcat-8.0.36/bin/startup.sh

centos rc.local 自启动

Read more

1、php -v PHP 5.4.16 (cli) (built: Nov 6 2016 00:29:02) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies    2、执行下面的命令升级软件仓库 rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

centos PHP PHP5.6

Read more

1、 yum install epel-release 2、 sudo yum -y install gcc libpcap-devel pcre-devel libyaml-devel file-devel \ zlib-devel jansson-devel nss-devel libcap-ng-devel libnet-devel tar make \ libnetfilter_queue-devel lua-devel PyYAML libmaxminddb-devel rustc cargo \ lz4-devel

centos Suricata GeoIP

Read more

V