在Linux上启用WebSphere Application Server(WAS)服务需要按照以下步骤进行操作。在本文中,我们将使用WAS v9.0版本作为示例。

1. 下载WebSphere Application Server:首先,您需要从IBM官方网站下载WAS软件包。确保您已经注册了IBM账户,并从官方网站获取适用于Linux系统的WAS软件包。
2. 安装WebSphere Application Server:将下载的WAS软件包解压到您选择的安装目录,并进入解压后的文件夹。执行安装命令以开始安装WAS:
```
./install
```
按照安装向导提供的步骤进行操作,选择安装目标目录、选择要安装的组件等等。
3. 创建WAS profile:安装完成后,您需要创建一个WAS profile,该profile包含了WAS的配置信息、应用程序等。通过运行以下命令创建一个默认profile:
```
./manageprofiles.sh -create -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default
```
这会在默认位置创建一个名称为`AppSrv01`的profile。
4. 启动WebSphere Application Server:启动WAS服务需要使用以下命令:
```
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/startServer.sh server1
```
这会启动WAS服务,并将服务名称指定为`server1`。
5. 停止WebSphere Application Server:如果需要停止WAS服务,可以使用以下命令:
```
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/stopServer.sh server1
```
这会停止名为`server1`的WAS服务。
6. 配置WebSphere Application Server:您可以通过WebSphere控制台(http://hostname:port/ibm/console)进行WAS的配置。在控制台中,您可以添加新应用程序、管理服务器、监控性能等。
7. 自动启动WebSphere Application Server:如果您想要WAS在系统启动时自动启动,可以将启动命令添加到系统启动脚本中。编辑`/etc/rc.local`或其他相关的启动脚本,在其中添加启动命令:
```
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/startServer.sh server1
```
保存并退出后,系统启动时WAS服务将自动启动。
通过以上步骤,您可以在Linux系统上成功启用WebSphere Application Server服务。在使用WAS时,请确保您按照最佳实践进行安全配置以保护系统的安全性。