天猫网站迁移VPS

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/liu425151047/article/details/95942999

1、安装Openjdk

http://how2j.cn/k/deploy2linux/deploy2linux-setup/1607.html

下面评论处:

$ sudo add-apt-repository ppa:openjdk-r/ppa
$ sudo apt-get update
$ sudo apt-get install openjdk-8-jdk
如果没有add-apt-repository:
sudo apt-get install software-properties-common

2、安装MySQL

参考http://how2j.cn/k/deploy2linux/deploy2linux-install/1608.html

Unbuntu上安装命令如下,默认安装版本5.7

apt install mysql-server

去除大小写敏感、导入数据库

http://how2j.cn/k/deploy2linux/deploy2linux-database/1615.html

 

3、安装redis

https://www.cnblogs.com/zongfa/p/7808807.html

 

4、打包项目并运行

http://how2j.cn/k/springboot/springboot-jar/1642.html#step7135

 

5、nginx 配置

卸载或者修改Apache2端口

修改端口方法:https://blog.csdn.net/qq_38483191/article/details/80198913

重启Apache2服务命令:/etc/init.d/apache2 restart 

nginx安装命令:apt install nginx ,重启命令nginx -s reload

修改配置文件vim /etc/nginx/nginx.conf,注意修改用户和目录权限

 

展开阅读全文

网站迁移遇到问题

04-15

新手迁移网站rn把网站程序整个拷贝到另一台电脑,IIS+asp.net+sqlserver2000,拷贝后重新安装了sqlserver2000。rn发现错误,不知道该设置哪里,请高手指教~~~rnerver Error in '/' Application.rn数据绑定失败,请检查要绑定的控件设置,输入的参数以及数据库连接是否正确!rnrnDescription: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. rnrnException Details: System.Exception: 数据绑定失败,请检查要绑定的控件设置,输入的参数以及数据库连接是否正确!rnrnSource Error: rnrnAn unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.rnrnStack Trace: rnrn[Exception: 数据绑定失败,请检查要绑定的控件设置,输入的参数以及数据库连接是否正确!]rn HLXK.Data.SqlServer.BindToDatagrid(String strQuery, DataGrid dtgDataGrid) +219rn _21315COM.Web.Index.EDataBind() in D:\Net\21315COM\Web\Index.aspx.cs:81rn _21315COM.Web.Index.Page_Load(Object sender, EventArgs e) in D:\Net\55555COM\Web\Index.aspx.cs:47rn System.Web.UI.Control.OnLoad(EventArgs e) +91rn System.Web.UI.Control.LoadRecursive() +74rn System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2603rnrnVersion Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053 论坛

没有更多推荐了,返回首页