如果没有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的更多相关文章

  1. 微信小程序开发教程(六)配置——app.json、page.json详解

    全局配置:app.json 微信小程序的全局配置保存在app.json文件中.开发者通过使用app.json来配置页面文件(pages)的路径.窗口(window)表现.设定网络超时时间值(netwo ...

  2. 微信小程序:全局配置app.json

    微信小程序:全局配置app.json 一.全局配置app.json app.json文件用来对微信小程序进行全局配置,决定页面文件的路径.窗口表现.设置网络超时时间.设置多 tab 等. 以下是一个包 ...

  3. 【flask】flask项目配置 app.config

    [理论] 在很多情况下,你需要设置程序的某些行为,这时你就需要使用配置变量.在Flask中,配置变量就是一些大写形式的Python变量, 你也可以称之为配置参数或配置键.使用统一的配置变量可以避免在程 ...

  4. app配置智能硬件的解决方案

    随着越来越多的智能硬件产品上市,越来越多的硬件都戴上了智能的帽子,什么智能插座,智能音箱,智能称等等.凡是所谓的智能,都是通过wifi或者蓝牙来连接互联网,其中蓝牙也只能算是手机的附属品吧.主要还是硬 ...

  5. IOS APP配置.plist汇总(转自coolweather )

    IOS APP配置.plist汇总(转自coolweather ) 此文转自http://www.cocoachina.com/bbs/read.php?tid=89684&page=1 作者 ...

  6. nodejs教程:安装express及配置app.js文件

    express.js是nodejs的一个MVC开发框架,并且支持jade等多种模板.下面简单来说说express的安装和app.js文件的配置,然后在今后的教程中一步一步使用express.js搭建个 ...

  7. nodejs教程 安装express及配置app.js文件的详细步骤

    来自:http://www.jb51.net/article/36710.htm   express.js是nodejs的一个MVC开发框架,并且支持jade等多种模板.下面简单来说说express的 ...

  8. django 数据库配置 ,APP 迁移.模型基础

    # 1.数据库的连接配置django 连接mysql的配置流程:- 安装 pymysql pip install pymysql- 创建数据库用户有创建数据库权限的用户- 创建数据库crm .进入数据 ...

  9. django根据不同app配置相应的log文件

    django根据不同app配置相应的log文件 settings.py # django logging LOG_PATH = "/var/log/blog/" LOGGING = ...

随机推荐

  1. Netfilter 之 钩子函数注册

    通过注册流程代码的分析,能够明确钩子函数的注册流程,理解存储钩子函数的数据结构,如下图(点击图片可查看原图): 废话不多说,开始分析: nf_hook_ops是注册的钩子函数的核心结构,字段含义如下所 ...

  2. JDBC与ODBC

     ODBC(Open Database Connectivity)是一组对数据库访问的标准API,这些API通过SQL来完成大部分任务,而且它本身也支持SQL语言,支持用户发来的SQL.ODBC定义了 ...

  3. 【MyBatis】【SQL】没有最快,只有更快,从一千万条记录中删除八百万条仅用1分9秒

    这次直接使用delete from emp where cdate<'2018-02-02',看看究竟会发生什么. Mapper里写好SQL: <?xml version="1. ...

  4. Linux | linux的那些常见目录

    1. bin目录 binary(二进制的):许多"指令"对应的可"执行程序文件"目录 2. sbin目录 说明:super binary 超级的 二进制 许多& ...

  5. Node.js express模块 http服务

    var express = require('express'); var app = express(); app.get('/', function(req, res){ res.send('he ...

  6. 010-数据结构-树形结构-B树[B-树]

    一.概述 B 树就是常说的“B 减树(B- 树)”,又名平衡多路(即不止两个子树)查找树. 在计算机科学中,B树(英语:B-tree)是一种自平衡的树,能够保持数据有序.这种数据结构能够让查找数据.顺 ...

  7. pip安装django出错 Could not install packages due to an EnvironmentError: [Errno 13]

    pip install django 下载安装Django报错, 按照提示的建议改为 pip install --user django 安装完成

  8. ajax基础------备忘

    1:register.jsp <%@ page language="java" contentType="text/html; charset=UTF-8" ...

  9. mongodb全文搜索

    mongodb 的 enterprise 集合存储企业信息: { "_id" : ObjectId("5d62b2a4380d051cfc00565b"), & ...

  10. Delphi编写的等长加密与解密

    最近在看一本关于网络游戏服务端开发的书,虽然该书是个空架子,里面没有多少实际的内容(此书评价不好),但其中关于等长加密与解密的代码还是有一定的借鉴作用的.他山之石,可以攻玉.因为书中是C++的代码,所 ...