快环境 API

环境一键部署(目前已有1000+人使用)

脚本地址: curl -sSL http://api.xinghuankj.com/xinghuan1.0.sh | bash

网站源码放置路径:/xinghuan/nginx/www/

网站配置文件:/xinghuan/nginx/conf/

网站日志目录:/xinghuan/nginx/log/

网站证书文件:/xinghuan/nginx/conf/certs/

视频教程下载:
百度云:https://pan.baidu.com/s/1tZ9LEGn3KCVWnCuTZrBF1A

优酷: http://v.youku.com/v_show/id_XMzYyMjI2NzIyNA==.html?spm=a2h3j.8428770.3416059.1

问题反馈:http://ask.xinghuankj.com/

徐州电信L5520/16G/30M/防御100G 399元/月

【安装操作】 点击 显示/隐藏面板

  1. Linux安装命令

    curl -sSL http://www.xinghuankj.com/docker/script/xinghuan-V1.6.sh | bash

  2. 给 webser设置权限

    chmod -R 777/*

  3. /xinghuan/nginx/conf/中的 新建*.conf配置文件,并修改server_name,root中的参数
    server_name:网站的IP或域名 例如:192.168.2.12
    root:网站的主目录 例如:/xinghuan/nginx/www/网站主目录
    ps:每个网站对应一个配置文件,如需多个网站请新建多个配置文件

    server {
    listen 80;
    server_name 域名或IP;
    root /usr/share/nginx/html网站主目录;
    index index.php index.html index.htm;
    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
    root /usr/share/nginx/html;
    }

    location ~ \.php$ {
    fastcgi_pass php7-fpm:9000;
    fastcgi_index index.php;
    include fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }

    }

    实例:

    server {
    listen 80;
    server_name kod.xinghuankj.com;
    root /usr/share/nginx/htmlkod;
    index index.php index.html index.htm;
    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
    root /usr/share/nginx/html;
    }

    location ~ \.php$ {
    fastcgi_pass php7-fpm:9000;
    fastcgi_index index.php;
    include fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
    }

  4. 重启nginx

    命令:docker restart nginx

  5. 查询数据库密码,默认账号root

    cat /webser/README.MD


【数据库操作】 点击显示/隐藏面板

  1. 修改数据库密码

    进入容器:docker exec -it mysqld bash
    登陆mysql:mysql -h127.0.0.1 -uroot -p
    输入原密码:****
    use mysql;
    修改密码: update user set authentication_string=PASSWORD('新密码') where user='root';
    FLUSH PRIVILEGES;
    退出mysql:exit
    退出容器:exit

  2. 查询数据库密码,默认账号root

    cat /webser/README.MD