1、确保安全组开启相应安全端口,确保将要使用的端口没有被占用。
2、安装宝塔面板记录下来安装完成的访问信息。
3、安装mysql数据库时注意设置数据库大小写不区分,linux服务器默认大小写区分(连接)。
4、Java下载下来解压配置环境变量。
5、nginx运行前端代码配置相关配置文件(路径:/www/server/panel/vhost/nginx)。
server { listen 80; server_name jyzb.nxtime.cn; location /{ root /www/jyzb/html; index index.html; try_files $uri /index.html; } }
server { listen 80; server_name shaya.nxtime.cn sy.boze-tech.com shaya.boze-tech.com; location /{ root /www/shayaweb/html; index index.html; try_files $uri /index.html; } }
6、配置ssl代理,首先按照要求存放证书。
server { listen 443 ssl; server_name xss.fangshuoit.com; #证书绑定的网站域名 ssl_certificate /cert/1_xss.fangshuoit.com_bundle.crt;#证书公钥 ssl_certificate_key /cert/2_xss.fangshuoit.com.key;#证书私钥 ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE; ssl_prefer_server_ciphers on; ssl_session_cache shared:SSL:10m; ssl_session_timeout 10m; location / { proxy_pass http://47.92.219.242:9900;# spring boot项目的端口号 } }
7、配置图片服务器以及文件上传路径(连接)。