IBM WebSphere Application Server Liberty 或WebSphere Liberty Profile Server(简称 Liberty) 是 IBM 公司的一款轻量级的应用服务器,它的主要优势有高模块化、高动态性、配置简单等。html
相较于 IBM 传统的 WAS的笨重与繁杂Liberty 更能适应在开发环境中部署调试。java
与传统 WAS 具备相同的核心代码,性能好,最关键的是 Liberty 和传统 WAS 对编程模型和标准的支持一致。在 Liberty 上开发的应用能够直接运行在传统 WAS 之上!web
体验过庞大又反应迟缓毫无体验而言的传统WAS, 可能要为Liberty奔走相告,热泪盈眶!编程
WebSphere Liberty 安全
下载地址:服务器
https://developer.ibm.com/wasdev/downloads/#filter/assetTypeFilters=PRODUCT运维
https://developer.ibm.com/wasdev/downloads/#asset/runtimes-wlp-javaee7编辑器
注意对应不一样JDK对应不一样版本,否则启动为报错(貌似不会向下兼容)模块化
相比传统WAS折磨人的安装过程,Liberty 安装只须要解压便可!解压便可!解压便可!性能
转到 Liberty Profile 目录:
$ cd $WLP_DIR/wlp/bin
建立服务器:
$ ./server create server1
显示确认消息:
Server server1 created.
在$WLP_DIR/usr/servers/目录下生成对应的server1的文件夹
IDEA编辑器中 =>Edit Configurations=>Add New Configuration=>WebSphere Server=>Local
Server 页签下Application server 点击Configure按键选择WLP_DIR根目录便可
有错误提示点击fix 按钮
而后直接点击运行!
命令:
bin/installUtility install adminCenter-1.0
If you are installing into 8.5.5.5 or earlier and the feature supports that version, use the featureManager command,
for example:
bin/featureManager install adminCenter-1.0 --when-file-exists=ignore
服务器的配置基本都在wlp\usr\servers\server1\server.xml 文件中配置
添加配置 server.xml
<featureManager>
<feature>adminCenter-1.0</feature>
</featureManager>
<quickStartSecurity userName="wsadmin" userPassword="wsadmin" /><!--管理台的帐号密码-->
程序启动后,访问:
https://localhost:9443/adminCenter/
本文参考了资料:
https://www.ibm.com/developerworks/cn/websphere/library/techarticles/1207_zhuxl_liberty/1207_zhuxl_liberty.html
https://developer.ibm.com/cn/blog/2017/was-classic-or-was-liberty-how-to-choose/