Walle-瓦力上线部署安装以及遇到的问题
发布日期:2021-05-10 08:31:10 浏览次数:11 分类:精选文章

本文共 3690 字,大约阅读时间需要 12 分钟。

������ Walle ���������������������������������

������������������������������

  • ��������������������� PHP 7.2 ������������������������������ PHP 7.3 ���������
  • ������������ Nginx
  • MySQL 5.7 ���������������
  • ������ 2.9 ���������������
  • ������������������������������������������������������������

    git clone https://github.com/meolu/walle-web.git

    ���������

    git clone git@github.com:meolu/walle-web.git

    ������������������������������ SSH ���������������������������������������

    ���������������

  • ��������������� PHP ���������

    yum install -y php72uPg ADI CVE-2018- Spiral
  • ������ MySQL ���������������������

    yum install -y mysql-serversystemctl start mysqlmysql -u root -p create database walle;
  • ������ Nginx���

    yum install -y nginxsystemctl start nginx
  • ������ Composer���

    curl -sS http://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer

    ������������������ HTTP ���������������������

    curl -sS https://raw.githubusercontent.composer.com/installer | php
  • ������������������������

    git clone https://github.com/meolu/walle-web.gitcd walle-webcomposer install --prefer-dist --no-dev --optimize-autoloader

    ��������������������� SSH SSO ���������������������������������������������������������

  • ������������������

    cp config/db.php.example config/db.phpvi config/db.php

    ���������������������

    db => [    'class' => 'yii\db\Connection',    'dsn' => 'mysql:host=127.0.0.1;dbname=walle',    'username' => 'root',    'password' => '���������������������',    'charset' => 'utf8',]
  • Nginx ���������

  • ErrorException:��� /the/dir/of/walle-web/web������������������������ vhost���

    listen 80;server_name walle.compony.com;root /home/www/walle-web/web;index index.php;location / {    try_files $uri $uri/ /index.php?$args;}location ~ \.php$ {    try_files $uri = 404;    fastcgi_pass 127.0.0.1:9000;    fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name;    include fastcgi_params;}

    ���������������������������������������������

    1. ���������������������������

      ./yii migrate/up./yii walle/setup
    2. ������ SSL ���������

      cd /etc/ssl/certsopenssl req -x509 -days 365 -nodes -newkey rsa:2048 -keyout server.crt -out server.cer
    3. ���������������������������

      ������������open_basedir ���������������������������open_basedir ������������������������������������

      open_basedir = /home/www/project:/tmp/:/proc/

      ���������������������

      vi /etc/php.ini���Ctrl+Insert���������������open_basedir=/tmp/:/proc/:/home/www/walle-web

      ������������ SSH ������������������������ ~/.ssh/config ���������

      vi ~/.ssh/config���������������������StrictHostKeyChecking noUserKnownHostsFile /dev/null

      ������ SSH ���������

      sudo systemctl restart sshd

      ������������������������������ ~/.ssh/authorized_keys ��������� localhost ��������������������������� 600���

      chmod 600 ~/.ssh/authorized_keys

      ������������������������������������������������ SSH ��������������� /home/www/.ssh ��� /home/www/.ssh/authorized_keys ���������������

      chown -R www:www /home/www/.sshchmod -R 700 /home/www/.ssh

      ������ SSH ���������

      chmod -R 755 /home/wwwchown -R www:www /home/www

      ���������������������������������������������������������

      dignity���������������������find /home/www/walle-web/storage/migrations/ -type f -name "*.php" | sort -r

      ������������SSL ������������������ nginx ������������ SSL���

      server {    listen 443;    ssl on;    ssl_certificate /etc/ssl/certs/server.crt;    ssl_key_file /etc/ssl/certs/server.key;    ssl_ciphermainwindow ciphers;   }

      ���������������������

      • Nginx ��������������������������� web ���������������������������������
      • ������������������������������������������
      • Composer ���������������������������������������������������������������

      ������������������������������������������������������ Walle ���������������

    上一篇:Linux下安装配置VSFTP服务器
    下一篇:在Ubuntu上检查一个软件包是否安装命令

    发表评论

    最新留言

    第一次来,支持一个
    [***.219.124.196]2025年04月07日 20时17分28秒