本站支持「有偿」远程协助!

ubuntu 20.04 安装「独角数卡」发卡系统面板简明教程记录

ubuntu 20.04 安装「独角数卡」发卡系统面板简明教程记录

ubuntu-mysql-php-nginx

Cannot load image on this device.
none.blue

php mysql GitHub release 预编译的独角数卡包 https 未配置邮件守护

sudo apt update -y
sudo apt install -y php php-cli php-fpm php-fileinfo php-redis php-opcache nginx mysql-server;php -V;php -m
sudo apt remove -y apache2;sudo apt autoremove apache2 -y;sudo apt purge apache2 -y;sudo systemctl restart  nginx.service

nano /etc/php/7.4/apache2/php.ini

putenvproc_openpcntl_signalpcntl_alarm

sudo mysql -u root -p

CREATE DATABASE yc;

CREATE USER 'yc'@'localhost' IDENTIFIED BY 'yc';

GRANT ALL ON yc.* TO 'yc'@'localhost';

FLUSH PRIVILEGES;

wget -O /usr/local/bin/composer https://getcomposer.org/installer

wget https://github.com/assimon/dujiaoka/releases/download/v1.8.2/v1.8.2_build.tar.gz

tar -xf v1.8.2_build.tar.gz

mv dujiaoka_build/ ycycxz

cp .env.example .env
sudo nano .env

php artisan dujiao install

sudo chown -R www-data:www-data /home/ubuntu/ycycxz/

sudo iptables -P INPUT ACCEPT
sudo iptables -P OUTPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -F;sudo netfilter-persistent save
sudo snap install certbot --classic
sudo certbot certonly --standalone --register-unsafely-without-email --agree-tos -d yc.

nano .env
sudo nano .env
sudo systemctl restart nginx.service
sudo nano /etc/nginx/sites-available/default

cd /etc/nginx/conf.d/

sudo nano yc.conf

server {
    root /home/ubuntu/ycycxz/public;
    index  index.php index.html index.htm;
    server_name  yc.;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
       include snippets/fastcgi-php.conf;
       fastcgi_pass             unix:/var/run/php/php7.4-fpm.sock;
       fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }

}


sudo nginx -t
sudo systemctl restart nginx
sudo systemctl status nginx

php artisan admin:reset-password

已经放弃

Cannot load image on this device.
none.blue

感觉没啥意思

Loading ...
无广告!