Linux系统安装说明

这里,简单介绍将 网市场云建站系统 安装在Linux系统的步骤 ## 系统 1. 须64位系统 1. 建议使用 CentOS 7.0 ~ 7.4 ## CentOS环境安装 服务器上安装命令: ```` wget https://down.leimingyun.com/wangmarket/wangmarket_install.sh chmod -R 777 wangmarket_install.sh ./wangmarket_install.sh ```` 或 ```` # 创建存放下载文件的文件夹 /readyFile mkdir /readyFile cd /readyFile # 下载jdk并安装 wget https://down.leimingyun.com/centos/jdk-8u73-linux-x64.rpm rpm -ivh jdk-8u73-linux-x64.rpm echo 'export JAVA_HOME=/usr/java/jdk1.8.0_73/'>>/etc/profile echo 'export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar'>>/etc/profile echo 'export PATH=$PATH:$JAVA_HOME/bin'>>/etc/profile export JAVA_HOME=/usr/java/jdk1.8.0_73/ export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export PATH=$PATH:$JAVA_HOME/bin # 下载Tomcat8并解压处理好 mkdir /readyFile/tomcat8 cd /readyFile/tomcat8 wget https://down.leimingyun.com/centos/apache-tomcat-8.0.32_x64.zip # 安装 unzip 命令 yum -y install unzip unzip apache-tomcat-8.0.32_x64.zip cd webapps rm -rf docs rm -rf examples rm -rf host-manager rm -rf manager cd ROOT rm -rf ./* # 将tomcat8移动到/mnt目录下 cd /readyFile mv tomcat8/ /mnt/ # 将Tomcat8加入开机自启动 echo 'JAVA_HOME=/usr/java/jdk1.8.0_73/'>>/etc/rc.local echo 'export JAVA_HOME'>>/etc/rc.local echo '/mnt/tomcat8/bin/startup.sh'>>/etc/rc.local cd /readyFile wget https://down.leimingyun.com/wangmarket/wangmarket.zip cp wangmarket.zip /mnt/tomcat8/webapps/ROOT/wangmarket.zip cd /mnt/tomcat8/webapps/ROOT/ unzip wangmarket.zip rm -rf wangmarket.zip cd /mnt/tomcat8/bin/ echo '启动完毕!您可执行 /mnt/tomcat8/bin/startup.sh 来开启服务'; # 环境准备结束 ```` 您可直接将以上命令复制到命令行粘贴即可完成安装! ## 日常命令 启动 (tomcat) : > /mnt/tomcat8/bin/startup.sh