博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Sharepoint 2013 开启App和配置App
阅读量:4521 次
发布时间:2019-06-08

本文共 4320 字,大约阅读时间需要 14 分钟。

在任何站点中,点Add App,然后点Sharepoint Store,如果没有Enable apps,打开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

如果手动新建如下图,也可以运行下面的powershell脚本,就会新建好两个service。

然后确保两个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 existif($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 $appManagementServiceDBWrite-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 existif($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 $subscriptionSettingsServiceDBWrite-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:$falseSet-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'

 

转载于:https://www.cnblogs.com/batter152/p/4737203.html

你可能感兴趣的文章
一些不错的动画效果---郭雪彬
查看>>
iOS - TableViewCell分割线 --By吴帮雷
查看>>
jquery 获取input的值
查看>>
UVA 10003 - Cutting Sticks ( 区间dp )
查看>>
BETA 版冲刺前准备
查看>>
vue-表单绑定
查看>>
字典树(Trie)的基本实现(C++)
查看>>
Linux SSH & SCP命令
查看>>
用SQL语句操作数据
查看>>
Android——计算器
查看>>
函数指针的调用方式
查看>>
jacob 给word加印的功能
查看>>
利用for循环来实现全选
查看>>
在Hbuilder中的项目传到github的步骤
查看>>
高级DirectDraw 分类: VC++ D...
查看>>
Vue2.0的动画效果
查看>>
记录一次nginx的upstream的配置信息
查看>>
Bug搬运工-CSCvm33229:Environment summary not available on COS APs
查看>>
じ守望者┱ o
查看>>
底层驱动框架1
查看>>