惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

有赞技术团队
有赞技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
I
InfoQ
J
Java Code Geeks
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
D
DataBreaches.Net
Recent Announcements
Recent Announcements
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog RSS Feed
Y
Y Combinator Blog
博客园 - 【当耐特】
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
P
Proofpoint News Feed
量子位
C
Check Point Blog
F
Fortinet All Blogs
罗磊的独立博客
Last Week in AI
Last Week in AI
GbyAI
GbyAI
L
LangChain Blog
博客园 - 司徒正美

博客园 - 孤独的猫咪神

自定义贪吃蛇环境进行PPO模型训练 通过TensorBoard进行PPO参数优化 TensorBoard PPO log 解析 macos(M4)上跑强化学习 - PyTorch LunarLander-v3 Stable-Baselines3 部分机型下,Flutter的flutter_inappwebview在使用evaluateJavascript调用postMessage失败的情况 HarmonyOS中,html 与 ets 桥接沟通 Flutter中,html 与 dart 桥接沟通 Flutter 环境变量 Mole,清理Mac的小工具 Flutter自定义主题Theme最佳实践 Ubuntu 20.04 开机自动添加git的ssh 米家 + arduino + 自定义服务器 Flutter 第三方库 Jenkins CLI 通过ssh方式链接时的证书 移动开发网络接口 经验总结 阿里云Ubuntu 14.04 + Nginx + let's encrypt 搭建https访问 Pathoto项目:AWS+golang+beego搭建 osx开发,skport项目记录 使用Jekyll在Github上搭建博客 iOS搜索附近的位置(类似微博朋友圈位置) retrofit2中ssl的Trust anchor for certification path not found问题 Android中的Semaphore React Native 在现有项目中的探路 博客园 Linux客户端 2.0 正式发布! 博客园 Windows客户端 2.0 正式发布! 博客园 Mac客户端 2.0 正式发布!
阿里云Ubuntu 14.04 + Nginx + .net core + MySql
孤独的猫咪神 · 2017-10-08 · via 博客园 - 孤独的猫咪神

前段时间帮朋友写了一个网站,现在做一个记录。

.Net Core 安装:

1 curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
2 sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
3 sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
4 sudo apt-get update
5 sudo apt-get install dotnet-sdk-2.0.0

参考自:https://www.microsoft.com/net/core#linuxubuntu

Nginx安装:

1 sudo apt-get install update
2 sudo apt-get install nginx

参考字:http://blog.csdn.net/woshihaiyong168/article/details/53927308

MySql安装:

1 sudo apt-get install mysql-server

其中输入两次来设置Root密码。

然后需要配置远程连接,请参考:http://www.cnblogs.com/BTMaster/p/4035402.html

Supervisor安装:

1 sudo apt-get install supervisor  

参考自:http://blog.csdn.net/github_37730997/article/details/60582525

以上,安装内容就完成了。

配置:

Supervisor配置:

参考自:http://blog.csdn.net/shengzhu1/article/details/54348371

1 [program:Project_Name]
2 command=/usr/bin/dotnet ???.dll
3 directory=Project_Publish_location
4 autostart=true
5 autorestart=true
6 stderr_logfile=/var/log/Error.err.log
7 stdout_logfile=/var/log/Out.out.log
8 user=root
9 stopsignal=INT

.net core 编译:

Supervisor 启动和停止:

1 sudo service supervisor start
2 sudo service supervisor stop

Nginx配置:

1         location / {
2                 proxy_pass http://localhost:5000;
3                 proxy_http_version 1.1;
4                 proxy_set_header X-Forwarded-For $remote_addr;
5                 proxy_set_header Upgrade $http_upgrade;
6                 proxy_set_header Connection keep-alive;
7                 proxy_set_header Host $host;
8                 proxy_cache_bypass $http_upgrade;
9         }