# stall-server **Repository Path**: 363359328/stall-server ## Basic Information - **Project Name**: stall-server - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-29 - **Last Updated**: 2021-08-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 团购项目 部署流程 配置 ssh 安装软件 apt update apt install software-properties-common add-apt-repository ppa:ondrej/php apt install -y nginx git redis mysql-client-core-8.0 mysql-server libpcre3-dev apt install -y php7.3 php7.3-fpm php7.3-mysql php7.3-psr php7.3-phalcon3 php7.3-redis php7.3-mbstring php7.3-curl php7.3-xdebug apt install -y php7.3-bcmath php7.3-gd php7.3-xml php7.3-zip composer apt remove php8.0* 部署项目 mkdir /var/www/logs cd /var/www/html git clone xxxxxxx ./stall-server mkdir /var/www/html/stall-server/public mkdir /var/www/html/stall-server/public/logs mkdir /var/www/html/stall-server/public/logs/task chown -R www-data:www-data /var/www/html/stall-server chown -R www:www /var/www/html/stall-server 配置 nginx /etc/nginx 四个域名文件copy入项目 或者添加 include 配置 crontab 配置 RDS msyql: netstat -an | grep 3306 sudo ufw allow 3306 find / -name mysqld.cnf 注释掉 bind 127.0.0.1 /etc/init.d/mysql restart update mysql.user set host='%' where user='root'; alter user 'root'@'%' identified with mysql_native_password by '123456'; flush privileges; 开启远程连接 ,搭建数据库 sql_mode //////////////////////nginx 部署说明///////////////////////////// 原因: 宝塔不能设置运行目录为 两级 例如: 可以设置 /public 但不能设置成 /public/admin 不需要上传/www /www 保留给已部署的项目发布 非宝塔部署 远程宝塔发布 两个域名对应发布两个项目 /adm /index.php /nginx.conf /web /index.php /nginx.conf 后端请求 例如: http://tuangou.laoxudemo.top/api/api/demo 前端请求 例如: http://webtuangou.laoxudemo.top/article/info/demo 部署crontab centos 部署案例: 1: 安装 nginx php7.3 mysql5.7