在阿里雲CentOS 7.4下安裝WSTMart開源商城系統
WSTMart
-
安裝apache
-
安裝服務
- yum install httpd httpd-devel
-
啟動服務
- apachectl start
-
重啟
- apachectl restart
-
檢視服務是否開啟
- ps -ef|grep httpd
-
安裝服務
-
安裝PHP
-
命令
- yum install php
-
php相關模組
-
yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc
-
yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc
-
測試
- php -m
-
命令
-
安裝mysql
-
安裝
- yum install mariadb-server -y
- systemctl enable mariadb.service
-
啟動
- systemctl start mariadb.service
-
設定密碼
-
mysql_secure_installation
- wstmart123
-
mysql_secure_installation
-
測試
- mysql -uroot -p
-
安裝
-
關閉防火牆
-
重啟後生效
- chkconfig iptables on
- chkconfig iptables off
-
即時生效
- service iptables start
- service iptables stop
-
新增埠
-
vi /etc/sysconfig/iptables
- -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-
vi /etc/sysconfig/iptables
-
重啟後生效
-
關閉防火牆
-
檢視防火牆狀態
- firewall-cmd --state
-
關閉
- systemctl stop firewalld.service
-
禁止開機啟動
- systemctl disable firewalld.service
-
檢視防火牆狀態
- 下載WinSCP軟體,在WinSCP中登陸伺服器,上傳WSTMart程式
- 訪問域名,按介面提示,點選下一步,配置資訊,安裝完成。