Sharepoint 开启App 配置App
如果没有Enable app,打开app store的时候出出现错误:
Sorry, apps are turned off. If you know who runs the server, tell them to enable apps.
要开启他,首先要有一个App的DNS,如下新建,如果管理工具里面没有DNS,那么到feature中增加。
Control Panel\System and Security\Administrative Tools

右击Forward Lookup Zones
点New Zone, 一直点Next,然后输入一个域名字。
然后右击新建的域,然后点New Alias

如下图设置

DNS新建好之后,新建APP Management Service和Subscription Setting Service Application

然后确保两个Service是运行的,如下

总之运行下面的脚本就可以开启了
$appManagementService = Get-SPServiceInstance | where {$_.TypeName -like ‘App Management Service‘}
if($appManagementService.Status -ne ‘Online‘) {
Write-Host ‘Starting App Management Service‘
Start-SPServiceInstance $appManagementService | Out-Null
}
else{
Write-Host ‘App Management Service was already started‘
}
# wait for App Management Service to start”
while ($service.Status -ne ‘Online‘) {
# delay 5 seconds then check to see if service has started sleep 5
$service = Get-SPServiceInstance | where {$_.TypeName -like ‘App Management Service‘}
}
$subscriptionSettingsService = Get-SPServiceInstance | where {$_.TypeName -like ‘Microsoft SharePoint Foundation Subscription Settings Service‘}
if($subscriptionSettingsService.Status -ne ‘Online‘) {
Write-Host ‘Starting Subscription Settings Service‘
Start-SPServiceInstance $subscriptionSettingsService | Out-Null
}
else{
Write-Host ‘Subscription Settings Service was already started‘
}
while ($service.Status -ne ‘Online‘) {
# delay 5 seconds then check to see if service has started sleep 5
$service = Get-SPServiceInstance | where {$_.TypeName -like ‘Microsoft SharePoint Foundation Subscription Settings Service‘}
}
$appManagemetnServiceApplicationName = ‘App Management Service‘
$appManagementServiceApplication = Get-SPServiceApplication | where {$_.Name -eq $appManagemetnServiceApplicationName}
# create an instance App Management Service Application and proxy if they do not exist
if($appManagementServiceApplication -eq $null) {
Write-Host ‘Creating App Management Service Application‘
$pool = Get-SPServiceApplicationPool ‘SharePoint Web Services Default‘
$appManagementServiceDB= ‘Sharepoint_AppManagementServiceDB‘
$appManagementServiceApplication = New-SPAppManagementServiceApplication `
-ApplicationPool $pool `
-Name $appManagemetnServiceApplicationName `
-DatabaseName $appManagementServiceDB
Write-Host ‘Creating App Management Service Application Proxy‘
$appManagementServicApplicationProxy = New-SPAppManagementServiceApplicationProxy `
-ServiceApplication $appManagementServiceApplication
}
else{
Write-Host ‘App Management Service Application already exist‘
}
$subscriptionSettingsServiceApplicationName = ‘Subscription Settings Service Application‘
$subscriptionSettingsServiceApplication = Get-SPServiceApplication | where {$_.Name -eq $subscriptionSettingsServiceApplicationName}
# create an instance Subscription Service Application and proxy if they do not exist
if($subscriptionSettingsServiceApplication -eq $null) {
Write-Host ‘Creating Subscription Settings Service Application‘
$pool = Get-SPServiceApplicationPool ‘SharePoint Web Services Default‘
$subscriptionSettingsServiceDB= ‘Sharepoint_SiteSubscriptionSettingsServiceDB‘
$subscriptionSettingsServiceApplication = New-SPSubscriptionSettingsServiceApplication `
-ApplicationPool $pool `
-Name $subscriptionSettingsServiceApplicationName `
-DatabaseName $subscriptionSettingsServiceDB
Write-Host ‘Creating Subscription Settings Service Application Proxy‘
$subscriptionSettingsServicApplicationProxy = New-SPSubscriptionSettingsServiceApplicationProxy `
-ServiceApplication $subscriptionSettingsServiceApplication
}
else{
Write-Host ‘Subscription Settings Service Application already exist‘
}
Set-SPAppDomain ‘apps.xxx.com‘ -Confirm:$false
Set-SPAppSiteSubscriptionName -Name ‘app‘ -Confirm:$false
最后到CA点Apps,点Configure App Urls,就可以看到

当你点app store的时候,其实并没有离开你的站点。
最后当添加的时候出现错误

"Sorry, this app is not supported on your server"
需要去CA激活一个Feature
1. Browse to Central admin
2. Click on ‘Application Management‘
3. Click ‘Manage web applications‘
4. Select the web application which hosts the site you are trying to install the app to
5. Click ‘Manage Features‘
6. ‘Apps that require accessible internet facing endpoints‘ should be deactivate. Click ‘Activate‘
Sharepoint 开启App 配置App的更多相关文章
- 微信小程序开发教程(六)配置——app.json、page.json详解
全局配置:app.json 微信小程序的全局配置保存在app.json文件中.开发者通过使用app.json来配置页面文件(pages)的路径.窗口(window)表现.设定网络超时时间值(netwo ...
- 微信小程序:全局配置app.json
微信小程序:全局配置app.json 一.全局配置app.json app.json文件用来对微信小程序进行全局配置,决定页面文件的路径.窗口表现.设置网络超时时间.设置多 tab 等. 以下是一个包 ...
- 【flask】flask项目配置 app.config
[理论] 在很多情况下,你需要设置程序的某些行为,这时你就需要使用配置变量.在Flask中,配置变量就是一些大写形式的Python变量, 你也可以称之为配置参数或配置键.使用统一的配置变量可以避免在程 ...
- app配置智能硬件的解决方案
随着越来越多的智能硬件产品上市,越来越多的硬件都戴上了智能的帽子,什么智能插座,智能音箱,智能称等等.凡是所谓的智能,都是通过wifi或者蓝牙来连接互联网,其中蓝牙也只能算是手机的附属品吧.主要还是硬 ...
- IOS APP配置.plist汇总(转自coolweather )
IOS APP配置.plist汇总(转自coolweather ) 此文转自http://www.cocoachina.com/bbs/read.php?tid=89684&page=1 作者 ...
- nodejs教程:安装express及配置app.js文件
express.js是nodejs的一个MVC开发框架,并且支持jade等多种模板.下面简单来说说express的安装和app.js文件的配置,然后在今后的教程中一步一步使用express.js搭建个 ...
- nodejs教程 安装express及配置app.js文件的详细步骤
来自:http://www.jb51.net/article/36710.htm express.js是nodejs的一个MVC开发框架,并且支持jade等多种模板.下面简单来说说express的 ...
- django 数据库配置 ,APP 迁移.模型基础
# 1.数据库的连接配置django 连接mysql的配置流程:- 安装 pymysql pip install pymysql- 创建数据库用户有创建数据库权限的用户- 创建数据库crm .进入数据 ...
- django根据不同app配置相应的log文件
django根据不同app配置相应的log文件 settings.py # django logging LOG_PATH = "/var/log/blog/" LOGGING = ...
随机推荐
- Amdahl定律和可伸缩性
性能的思考 提升性能意味着可以用更少的资源做更多的事情.但是提升性能会带来额外的复杂度,这会增加线程的安全性和活跃性上的风险. 我们渴望提升性能,但是还是要以安全为首要的.首先要保证程序能够安全正常的 ...
- How to install WireShark on Linux
https://linuxtechlab.com/install-wireshark-linux-centosubuntu/
- Matlab - Matlab 2016a 安装破解教程
https://blog.csdn.net/u012313335/article/details/73733651/ Matlab 2016a 安装包及破解教程百度云分享链接: 链接:https:// ...
- js中bind解析
一.arguments的含义 // arguments 是一个对应于传递给函数的参数的类数组对象 function a(){ console.log(arguments); } a(); // Arg ...
- 8and9 pod控制器
Pod控制器: 自主定义的pod资源删除后不会被重启,被Pod控制器管理的pod资源被删除后会重启. pod控制器的种类: ReplicationController: (最早使用,现在已经被废弃,太 ...
- 005-文件权限解说、授权chmod和chown命令的用法
一.文件权限说明 1.1.linux 中 drwxr-xr-x权限含义 在 linux drwxr-xr-x意思如下: 第一位表示文件类型.d是目录文件,l是链接文件,-是普通文件,p是管道. 后面的 ...
- openstack compute service list Unable to establish connection to http://controller:8774/v2.1/os-services: ('Connection aborted.', BadStatusLine("''",))
8774是nova的端口号,所以我就逐一查看nova的日志文件. tail -f /var/log/nova/nova-conductor.log 2019-06-13 08:24:53.559 44 ...
- SpringMVC中实现Bean Validation(JSR 303 JSR 349 JSR 380)
JSR 303是针对bean数据校验提出的一个规范.使用注解方式实现数据校验. 每个注解的用法这里就不多介绍,请移步JSR 303 - Bean Validation 介绍及最佳实践 笔者上面提到的J ...
- React Native的生命周期
就像 iOS开发中 一样,React Native(RN) 中的组件也有生命周期(Lifecycle).所谓生命周期,就是一个对象从开始生成到最后消亡所经历的状态,理解生命周期,是合理开发的关键.RN ...
- k8s 管理机密信息
一.启动应用安全信息的保护: Secret介绍: 应用启动过程中可能需要一些敏感信息,比如访问数据库的用户名密码或者秘钥.将这些信息直接保存在容器镜像中显然不妥,Kubernetes 提供的解决方案是 ...