210重启MySQL | systemctl restart mysqld3306 | |
部署展现 | ||
1.复制展现文件夹 |
|
|
2.修改日志地址 |
/opt/shindmp_env/sa_develop_env/microservice/interactive-service-pk/config |
|
3.修改 bootstarp.yml |
/opt/shindmp_env/sa_develop_env/microservice/interactive-service-pk/config |
|
4.config 下复制一份配置文件并修改 |
/opt/shindmp_env/sa_develop_env/microservice/config cp interactive-service.yml interactive-service-pk.yml |
|
5.在自己的文件夹下运行jar 包 如果正在启动必须先停掉 |
cd /opt/shindmp_env/sa_develop_env/microservice/interactive-service-pk
|
|
前端 | ||
1.复制前端文件夹 |
cp -r dist-lj8989 dist-pk |
|
2.修改访问的后缀 |
/opt/shindmp_env/sa_develop_env/microservice/dist-pk/static 下的config.js文件 |
|
3. 修改 nginx.conf ,新加个service,端口与前端和后端端口都不能重复 |
/opt/shindmp_env/sa_develop_env/nginx/nginx/conf |
|
4.重启 nginx |
cd /opt/shindmp_env/sa_develop_env/nginx/nginx/sbin 执行 ./nginx -s reload |
|
959 /usr/local/mysql/bin/mysql -usys_admin -p -h127.0.0.1 --port=3306 -e 'shutdown'
960 ps -ef|grep mysqld
961 service mysql stop
962 cd /usr/local/mysql/bin/mysql
963 cd /usr/local/mysql/bin
964 ./mysql -usys_admin -p -h127.0.0.1 --port=3306 -e 'shutdown'
965 ./mysql -usys_admin -p -h192.168.11.15 --port=3306 -e 'shutdown'
966 kill 14640
967 ps -ef|grep mysql
968 clear
969 ps -ef|grep mysqld
970 systemctl stop mysql.service
971 pkill mysqld
972 ps -ef|grep mysqld
973 cd /usr/local/mysql
974 ./bin/mysqld_safe --defaults-file=/data/3307/my.cnf --user=mysql &
975 ps -ef|grep mysqld
976 less /data/3307/logs/mysql.log
977 ps -ef|grep mysqld
978 ./bin/mysqld_safe --defaults-file=/data/3306/my.cnf --user=mysql &
979 ps -ef|grep mysqld
980 less /data/3306/my.cnf|grep log
981 less /data/3306/logs/mysql.log
982 ps -ef|grep mysqld
983 ps aux|grep mysql
984 ps aux|grep mysqld
985 clear
986 ps aux|grep mysqld
987 free -h
988 df -h
989 netstat -ano|grep 3306
990 netstat -nao|grep 3306
991 less /data/3306/logs/mysql.log
992 cd /usr/local/mysql
993 ./bin/mysqld_safe --defaults-file=/data/3306/my.cnf --user=mysql &
1.复制展现文件夹
[root@localhost microservice]# cp -r interactive-service interactive-service-pk
2.修改日志地址
/opt/shindmp_env/sa_develop_env/microservice/interactive-service-pk/config
3.修改 bootstarp.yml
/opt/shindmp_env/sa_develop_env/microservice/interactive-service-pk/config
4.config 下复制一份配置文件并修改
/opt/shindmp_env/sa_develop_env/microservice/config
cp interactive-service.yml interactive-service-pk.yml
5.在自己的文件夹下运行jar 包 如果正在启动必须先停掉
cd /opt/shindmp_env/sa_develop_env/microservice/interactive-service-pk
nohup /opt/shindmp_env/sa_develop_env/jdk1.8/bin/java -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl -Djava.io.tmpdir=/opt/shindmp_env/sa_develop_env/microservice/tmp/interactive-service-tomcat -Djasypt.encryptor.password=newdt -XX:+UseG1GC -Xms1G -Xmx1G -Duser.timezone=Asia/Shanghai -classpath /opt/shindmp_env/sa_develop_env/microservice/interactive-service-pk/lib/*:/opt/shindmp_env/sa_develop_env/microservice/libdev/*:/opt/shindmp_env/sa_develop_env/microservice/lib/*:/opt/shindmp_env/sa_develop_env/microservice/interactive-service-pk/interactive-service.jar cn.newdt.NDTInteractiveServiceApplication &
前端
1.复制前端文件夹
cp -r dist-lj8989 dist-pk
2.修改访问的后缀
/opt/shindmp_env/sa_develop_env/microservice/dist-pk/static 下的config.js文件
3. 修改 nginx.conf ,新加个service,端口与前端和后端端口都不能重复
/opt/shindmp_env/sa_develop_env/nginx/nginx/conf
4.重启 nginx
cd /opt/shindmp_env/sa_develop_env/nginx/nginx/sbin
执行 ./nginx -s reload