magesuite 安装服务

在 magento2 的程序基础上,加装 magesuite 套件(Elastisuite,Theme Creativeshop),实现更多的外观样式和功能。

安装准备

注意事项

magesuite 官方网站:http://magesuite.io/

magesuite 官方演示站是:https://demo.magesuite.io/

magesuite默认演示产品分类页

Theme Creativeshop模板

命令列表

#########################
: 1702425223:0;cat /etc/debian_version
: 1702426054:0;passwd
: 1702426224:0;apt-get install apache2 php libapache2-mod-php php-common php-gmp php-curl php-soap php-bcmath php-intl php-mbstring php-xmlrpc php-mysql php-gd php-xml php-cli php-zip
: 1702426327:0;ss -anp | grep :80
: 1702426348:0;vi /etc/php/8.2/apache2/php.ini
: 1702426364:0;systemctl restart apache2
: 1702426367:0;ss -anp | grep :80
: 1702426378:0;apt install mariadb-server
: 1702426410:0;apt search maiadb-server
: 1702426426:0;apt search maiadb-server
: 1702426435:0;apt search mariadb-server
: 1702426501:0;curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup |  bash
: 1702426506:0;apt install curl
: 1702426524:0;curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup |  bash
: 1702426549:0;vi /etc/apt/sources.list.d/mariadb.list
: 1702426573:0;apt install mariadb-server
: 1702426652:0;apt install apt-transport-https ca-certificates gnupg2
: 1702426663:0;wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
: 1702426672:0;sh -c 'echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" > /etc/apt/sources.list.d/elastic-7.x.list'
: 1702426678:0;apt update && apt install elasticsearch
: 1702426718:0;mv /etc/apt/sources.list.d/mariadb.list /etc/apt/sources.list.d/mariadb.list.0
: 1702426720:0;apt update && apt install elasticsearch
: 1702426771:0;cd /etc/elasticsearch
: 1702426771:0;ls
: 1702426775:0;vi jvm.options
: 1702426791:0;vi jvm.options.d/my.jvm.options
: 1702426830:0;systemctl start elasticsearch
: 1702426928:0;cd ~
: 1702426931:0;wget https://getcomposer.org/download/2.2.22/composer.phar
: 1702426943:0;chmod +x composer.phar
: 1702426957:0;mv composer.phar /usr/local/sbin/composer
: 1702426963:0;composer -V
: 1702426973:0;vi /etc/passwd
: 1702427003:0;chown www-data:www-data /var/www
: 1702427035:0;su www-data
: 1702427057:0;cd /etc/apache2/sites-enabled/
: 1702427063:0;ls
: 1702427070:0;vi mage.conf
: 1702427142:0;systemctl restart apache2
: 1702427155:0;curl https://get.acme.sh | bash
: 1702427165:0;/root/.acme.sh/acme.sh --set-default-ca  --server  letsencrypt
: 1702441054:0;mysql
: 1702441064:0;systemctl start mariadb
: 1702441089:0;journalctl -xeu mariadb.service
: 1702441114:0;df
: 1702441131:0;df -h
: 1702441190:0;systemctl status mariadb.service
: 1702441269:0;systemctl start mariadb.service
: 1702441290:0;free -h
: 1702441335:0;systemctl cat mariadb
: 1702441492:0;journalctl -xeu mariadb.service
: 1702441564:0;systemctl status mariadb.service
: 1702441647:0;tail /var/log/messages
: 1702441654:0;tail /var/log/syslog
: 1702441669:0;ip a
: 1702443653:0;/usr/sbin/mariadbd
: 1702443717:0;ls -l /var/lib/mysql
: 1702443731:0;/usr/bin/mysql_install_db -u mysql
: 1702443834:0;apt remove mariadb-server
: 1702443858:0;apt autoremove
: 1702443878:0;ls
: 1702443889:0;cd /etc/apt/sources.list.d
: 1702443889:0;ls
: 1702443895:0;vi mariadb.list.0
: 1702444048:0;bash mariadb_repo_setup --mariadb-server-version=10.6
: 1702444052:0;cd ~
: 1702444053:0;ls
: 1702444062:0;ls
: 1702444071:0;curl -LsS -O https://downloads.mariadb.com/MariaDB/mariadb_repo_setup
: 1702444079:0;bash mariadb_repo_setup --mariadb-server-version=10.6
: 1702444098:0;bash mariadb_repo_setup --mariadb-server-version=10.6.16
: 1702444132:0;bash mariadb_repo_setup --mariadb-server-version=10.6.16
: 1702444290:0;apt install mariadb-server
: 1702444320:0;ss -anp | grep :3306
: 1702444322:0;ls
: 1702444328:0;cd /etc/apt
: 1702444329:0;ls
: 1702444333:0;cd sources.list.d
: 1702444334:0;ls
: 1702444343:0;rm mariadb.list*
: 1702444347:0;ls -l
: 1702444378:0;cd /var/lib
: 1702444379:0;ls
: 1702444381:0;cd mysql
: 1702444382:0;ls
: 1702444396:0;/usr/bin/mysql_install_db -u mysql
: 1702444460:0;ls -l
: 1702444486:0;tail /var/log/syslog
: 1702444507:0;tail -100 /var/log/syslog
: 1702444629:0;more /usr/bin/mysql_install_db
: 1702444657:0;ls
: 1702444667:0;more ddl_recovery.log
: 1702444670:0;ls
: 1702444676:0;ls
: 1702444688:0;vi /usr/bin/mysql_install_db
: 1702445228:0;vi /etc/mysql/conf.d/mysql.cnf
: 1702445275:0;ls -l /etc/mysql
: 1702445286:0;vi /etc/mysql/my.cnf
: 1702445308:0;vi /etc/mysql/mariadb.cnf
: 1702445343:0;vi /etc/mysql/mariadb.conf.d/50-server.cnf
: 1702445413:0;/usr/bin/mariadb --bootstrap --silent-startup --basedir=/usr --datadir=/var/lib/mysql
: 1702445433:0;/usr/bin/mariadb  --silent-startup --basedir=/usr --datadir=/var/lib/mysql
: 1702445448:0;/usr/bin/mariadb --help
: 1702446703:0;whereis mariadb-install-db
: 1702446773:0;mariadb-install-db --user=mysql \\
   --basedir=/usr \\
   --datadir=/var/lib/mysql
: 1702446842:0;ls -l
: 1702446856:0;mv ibdata1 ibdata1---0
: 1702446861:0;mariadb-install-db --user=mysql \\
   --basedir=/usr \\
   --datadir=/var/lib/mysql
: 1702446939:0;df -h
: 1702447326:0;ls -l /etc/mysql/mariadb.conf.d
: 1702447340:0;vi /etc/mysql/mariadb.conf.d/50-server.cnf
: 1702447386:0;systemctl start mariadb-server
: 1702447403:0;systemctl start mariadb-server
: 1702447412:0;systemctl start mariadb
: 1702447419:0;ls -l
: 1702448894:0;vi /etc/mysql/mariadb.conf.d/50-server.cnf
: 1702449159:0;mariadb-install-db --user=mysql \\
   --basedir=/usr \\
   --defaults-file=/etc/mysql/mariadb.conf.d/50-server.cnf \\
   --datadir=/var/lib/mysql \\
   --verbose
: 1702449228:0;mariadb-install-db --defaults-file=/etc/mysql/mariadb.conf.d/50-server.cnf  --verbose
: 1702449258:0;mariadb-install-db --verbose
: 1702449277:0;ls
: 1702449281:0;rm ibdata1
: 1702449289:0;mariadb-install-db --defaults-file=/etc/mysql/mariadb.conf.d/50-server.cnf  --verbose
: 1702449312:0;ls -l
: 1702449333:0;systemctl start mariadb
: 1702449345:0;ss -anp | grep :3306
: 1702449356:0;tail -50 /var/log/syslog
: 1702449471:0;/usr/sbin/mariadbd --help
: 1702449500:0;mysqld --verbose
: 1702449504:0;mysqld --verbose --help
: 1702450438:0;ls -l
: 1702450441:0;cd ..
: 1702450454:0;chown -R mysql:mysql mysql
: 1702450500:0;systemctl start mariadb
: 1702450507:0;ss -anp | grep :3306
: 1702450731:0;mysql
: 1702450789:0;/root/.acme.sh/acme.sh  --issue -d dr3.anqun.org -w /var/www/magento2/pub
: 1702451012:0;top
: 1702451016:0;ls
: 1702451765:0;tail /var/log/apache2/error.log
: 1702451792:0;a2enmod rewrite
: 1702451797:0;a2enmod ssl
: 1702451805:0;systemctl restart apache2
: 1702451880:0;/root/.acme.sh/acme.sh  --issue -d dr3.anqun.org -w /var/www/magento2/pub
: 1702451937:0;/root/.acme.sh/acme.sh  --issue -d dr3.anqun.org -w /var/www/magento2/pub
: 1702455742:0;vi /etc/apache2/sites-enabled/mage.conf
: 1702455761:0;systemctl reload apache2
: 1702456639:0;history
: 1702456772:0;cat ~/.bash_history
: 1702456785:0;cat ~/.zsh_history
###################################
   31  composer require creativestyle/magesuite
   32  ls
   33  vi composer.lock
   34  vi composer.lock
   35  composer require creativestyle/magesuite -W
   36  bin/magento setup:upgrade
   37  bin/magento setup:upgrade
   38  cd vendor/creativestyle/theme-creativeshop
   39  yarn install
   40  yarn build
   41  cd ~/magento2
   42  bin/magento cache:flush
###################################
: 1702597686:0;whereis elasticsearch
: 1702597694:0;cd /usr/share/elasticsearch
: 1702597700:0;bin/elasticsearch-plugin install analysis-phonetic
: 1702597981:0;systemctl restart elasticsearch
: 1702598579:0;curl -sL https://deb.nodesource.com/setup_14.x | bash -
: 1702598746:0;curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /usr/share/keyrings/yarnkey.gpg >/dev/null
: 1702598757:0;echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" |  tee /etc/apt/sources.list.d/yarn.list
: 1702598765:0;apt-get update && sudo apt-get install yarn
: 1702598803:0;nodejs
: 1702598809:0;node
: 1702598829:0;apt-get install -y nodejs
: 1702598841:0;nodejs
: 1702598958:0;apt remove nodejs
: 1702598983:0;apt search nodejs
: 1702599009:0;cd /etc/apt
: 1702599010:0;ls
: 1702599014:0;cd sources.list.d
: 1702599015:0;ls
: 1702599021:0;vi nodesource.list
: 1702599048:0;apt install nodejs
: 1702599181:0;apt-cache showpkg nodejs
: 1702599262:0;apt install nodejs=14.21.3-deb-1nodesource1
: 1702599276:0;nodejs
: 1702599286:0;node

####################################