随笔分类 - 服务器
摘要:下载windows最新版nginx https://nginx.org/en/download.html 修改nginx配置文件 location / { #root 对应的就是在服务器上前端资源的dist目录的全路径,即代表根路径 #root C:/nginx-1.25.3/html/dist;
阅读全文
摘要:解决: 修改redis配置文件,如下 需要注意的是,服务器的端口也要放开
阅读全文
摘要:因为是静态分离的,nginx处理静态文件,所以问题就在nginx配置文件中 将对应的css,js,图片信息也使用本地代理 server { listen 80; listen [::]:80; server_name shopping.kingsuper.net; access_log off; i
阅读全文
摘要:1. 云主机安全组端口开放3306端口 2. 打开iptables 3306端口 PS: 只有开启了iptables才需要此步骤!如果您的操作系统为CentOS系列: iptables -I INPUT 4 -p tcp -m state --state NEW -m tcp --dport 330
阅读全文
摘要:对于mysql数据库,redis数据库等需要开通远程访问的按照如下操作 例如: 1.打开iptables 3306端口 iptables -I INPUT 4 -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT service ipta
阅读全文
摘要:注意事项: oneinstack 需要开放端口 iptables -I INPUT 4 -p tcp -m state --state NEW -m tcp --dport 8088 -j ACCEPTservice iptables save #保存iptables规则 云服务器也需要开放端口 W
阅读全文
摘要:解决方法: 更改tomcat配置文件catalina.properties 。 tomcat.util.scan.DefaultJarScanner.jarsToSkip=\ 值后面加",*"。
阅读全文
摘要:该示例使用的是oneinstack环境和阿里云服务器 1.将项目打包成jar 2.端口指定不在application.properties文件中指定,而在运行命令中指定 注意:指定的端口必须在防火墙中开启(云防火墙(比如阿里云和腾讯云)和 linux(安装的系统)) 在入方向添加开放端口 linux
阅读全文
摘要:vue单页面刷新 只需修改nginx配置文件 server { listen 80; listen [::]:80; server_name wxx.kingsuper.net; access_log off; index index.html index.htm index.jsp; root /
阅读全文
摘要:使用的是阿里云免费DV证书,单个域名 1.下载ssl审核通过的证书 使用nginx版本 2.nginx 文件配置 和 证书存放 server { listen 80; listen [::]:80; listen 443 ssl; ssl_certificate cert/3919775_video
阅读全文