cd /home #删除系统自带软件 yum -y remove mariadb yum -y remove mariadb-libs.x86_64 yum -y remove java-1.7.0-openjdk yum -y remove java-1.7.0-openjdk-headless yum -y remove java-1.8.0-openjdk yum -y remove java-1.8.0-openjdk-headless yum -y remove copy-jdk-configs-1.2-1.el7.noarch #关闭防火墙 systemctl stop firewalld systemctl disable firewalld scp root@192.168.88.1:/home/mysql-5.7.30-1.el7.x86_64.rpm-bundle.tar /home/ #解压 tar -xvf mysql-5.7.30-1.el7.x86_64.rpm-bundle.tar #安装mysql rpm -ivh mysql-community-common-5.7.30-1.el7.x86_64.rpm rpm -ivh mysql-community-libs-5.7.30-1.el7.x86_64.rpm rpm -ivh mysql-community-client-5.7.30-1.el7.x86_64.rpm rpm -ivh mysql-community-server-5.7.30-1.el7.x86_64.rpm #设置用户密码 ALTER USER USER() IDENTIFIED BY 'P@44w0rd'; GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'P@44w0rd' WITH GRANT OPTION;FLUSH PRIVILEGES;FLUSH PRIVILEGES; wget http://61.160.103.138:28080/resources/data0.zip #安装nginx ./configure --user=nobody --group=nobody --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_gzip_static_module --with-http_realip_module --with-http_sub_module --with-http_ssl_module groupadd -r nginx useradd -r -g nginx nginx ./configure \ --prefix=/usr/local/nginx \ --user=nginx \ --group=nginx \ --with-http_ssl_module \ --with-http_gzip_static_module \ --with-http_stub_status_module \ --with-http_realip_module \ --pid-path=/var/run/nginx.pid #设置权限 unzip bpm.zip chmod 777 /home/bpm/apache-tomcat-7.0.68/bin/*.sh chmod 777 /home/bpm/jdk1.8.0_241/jre/bin/* #运行tomcat vim /home/bpm/apache-tomcat-7.0.68/webapps/ROOT/WEB-INF/classes/jdbc.properties sh /home/bpm/apache-tomcat-7.0.68/bin/startup.sh && tail -f /home/bpm/apache-tomcat-7.0.68/logs/catalina.out
发表评论(对文章涉及的知识点还有疑问,可以在这里留言,老高看到后会及时回复的。)