### Install Nginx Web Server Source: https://www.tigshop.com/course/tigshop-php/337398665186657178 Installs Nginx and configures it to start on boot. Verify the installation status afterward. ```bash sudo apt install nginx -y ``` ```bash sudo systemctl start nginx sudo systemctl enable nginx ``` ```bash sudo systemctl status nginx ``` -------------------------------- ### Install and Start Redis Service Source: https://www.tigshop.com/course/tigshop-java/8574963187152405 Commands to install Redis as a Windows service and then start the service. Ensure the redis.windows.conf file is in the correct directory. ```bash redis-server --service-install redis.windows.conf redis-server --service-start ``` -------------------------------- ### Install Redis Server Source: https://www.tigshop.com/course/tigshop-php/337398665186657178 Installs Redis server and configures it to start automatically on system boot. ```bash sudo apt install redis-server -y ``` ```bash sudo systemctl start redis-server sudo systemctl enable redis-server ``` -------------------------------- ### Access Tigshop Installation URL Source: https://www.tigshop.com/course/tigshop/377314004096774189 Enter this URL in your browser to start the Tigshop installation process. Ensure your domain is correctly configured. ```text http://您配置好的域名/install ``` -------------------------------- ### Install Project Dependencies Source: https://www.tigshop.com/course/tigshopkf/167261263592747767 Install all the necessary packages for your project using npm. ```bash npm install ``` -------------------------------- ### Start Development Server with npm Source: https://www.tigshop.com/course/tigshopkf/317400188229032892 Execute this command to compile the project and start the development server. After successful compilation, open the provided 'Local' or 'Network' link in your browser. ```bash npm run dev ``` -------------------------------- ### Install Vue CLI Source: https://www.tigshop.com/course/tigshopkf/327213674433314817 Install the Vue CLI globally using npm. This command is required before proceeding with project setup. ```bash # npm install -g @vue/cli ``` -------------------------------- ### SQL Scripts for Database Initialization and Updates Source: https://www.tigshop.com/course/tigshop/595718786157602459 This section details the SQL scripts required for database operations. Use 'demo.sql' or 'pure.sql' for initial database setup, with 'demo.sql' including sample data. For version updates, execute all 'update.sql' scripts between your current and target versions. ```sql -- For initializing the database with demo data -- Use demo.sql or pure.sql (without demo data) -- Example: execute demo.sql; ``` ```sql -- For version updates, execute all update.sql scripts between versions -- Example: execute update_v1.0_to_v1.1.sql; ``` -------------------------------- ### Start Tigshop Backend JARs Source: https://www.tigshop.com/course/tigshop-java/8574963187152405 Commands to start the Tigshop backend services by executing their respective JAR files. Ensure the JAR files are in the current directory or provide the correct path. ```bash java -jar tigshop-adminapi-0.0.1-SNAPSHOT.jar java -jar tigshop-api-0.0.1-SNAPSHOT.jar ``` -------------------------------- ### Install PHP 8.2 and Extensions Source: https://www.tigshop.com/course/tigshop-php/337398665186657178 Adds the Sury PHP repository, updates package lists, and installs PHP 8.2 with essential extensions like FPM, Redis, MySQL, and Swoole. Ensures PHP-FPM starts on boot. ```bash sudo apt install l**-release ca-certificates apt-transport-https -y sudo wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add - echo "deb https://packages.sury.org/php/ $(l**_release -sc) main" | sudo tee /etc/apt/sources.list.d/sury-php.list ``` ```bash sudo apt update sudo apt install php8.2 php8.2-fpm php8.2-redis php8.2-mysql php8.2-cli php8.2-xml php8.2-mbstring php8.2-curl php8.2-json php8.2-fileinfo php8.2-swoole -y ``` ```bash sudo systemctl start php8.2-fpm sudo systemctl enable php8.2-fpm ``` -------------------------------- ### Build for Production Source: https://www.tigshop.com/course/tigshopkf/277213672739792148 Execute this command to create a production-ready build of the application. The output will be placed in the `admin-dist` folder. ```bash npm run build ``` -------------------------------- ### Install Erlang RPM on CentOS/RHEL Source: https://www.tigshop.com/course/tigshop-java/687532334495038788 Install the downloaded Erlang RPM package using yum. This command ensures the package is installed with its dependencies. ```bash sudo yum install -y erlang-26.2.2.el8.rpm ``` -------------------------------- ### Configure Tigshop Environment Variables Source: https://www.tigshop.com/course/tigshop-php/337398665186657178 Copies the example environment file to .env and prompts for necessary configuration based on your current environment. ```bash sudo cp /var/www/tigshop.com/.example.env /var/www/tigshop.com/.env ``` -------------------------------- ### Install Baota Panel Script Source: https://www.tigshop.com/course/tigshop/35743659777448216 Execute this script in your server's SSH terminal to install the Baota control panel. Ensure you have curl or wget installed. ```bash if [ -f /usr/bin/curl ];then curl -sSO https://download.bt.cn/install/install_panel.sh;else wget -O install_panel.sh https://download.bt.cn/install/install_panel.sh;fi;bash install_panel.sh ed8484bec ```