我正在尝试在运行 Ubuntu 12.04 LTS 的虚拟机上安装WildFly 8.0.0.Final应用程序服务器。我在谷歌上做了一些搜索,但我只找到了第三方脚本,而且我认为这是非标准的方法。
目前,为了启动服务器,我打开到虚拟机的 SSH 连接并运行以下命令:
cd <WILDFLY_HOME>/bin
nohup standalone.sh -b=0.0.0.0 -bmanagement=0.0.0.0 > /dev/null &
Run Code Online (Sandbox Code Playgroud)
并停止:
kill <pid of java process running wildfly>
Run Code Online (Sandbox Code Playgroud)
但是,在 Ubuntu 上将服务器安装为服务的最佳方法是什么?如果我重新启动机器,服务器会自动启动吗?
我的环境:
I am having some troubles with CPU loading an memory with Apache Web Server.
We are running a Ubuntu Server 12.04 LTS on a Virtual Machine. Our server have the following specs:
We configured the server to run a Drupal (7.23) based website. So, we installed Apache, PHP, MySQL... The versions are below:
我认为这是一个简单的问题,但让我更好地解释一下。我有以下开发环境:
一切正常,除了 VirtualHost 配置。我想部署两个应用程序:Drupal 和 Wordpress。每个应用程序都有自己的目录,例如:
在默认站点中,VirtualHost 配置指向 /var/www作为文档根目录。我想禁用这个默认站点配置,我想创建两个 VirtualHosts,一个用于 Drupal,另一个用于 Wordpress。
但是,这是一个开发环境,这里没有域。我搜索了很多网站,找到了很多教程,所有教程都解释了如何使用域而不是子目录来执行此操作。
完成配置后,访问我的应用程序的 URL 将是:
- http://example.com/wordpress;
- http://example.com/drupal;
Run Code Online (Sandbox Code Playgroud)
我已经尝试过这个 VirtualHost:
<VirtualHost *:80>
ServerName example.com
ServerAdmin web@myserver.com
DocumentRoot /l/disk0/site/public_html
<Directory />
AllowOverride None
</Directory>
Alias /site /l/disk0/site/public_html
<Directory /l/disk0/site/public_html>
Options MultiViews Indexes Includes FollowSymLinks ExecCGI
AllowOverride All
Require all granted
allow from all
</Directory>
RewriteEngine On
LogLevel warn
ErrorLog …Run Code Online (Sandbox Code Playgroud) apache-2.2 ×1
apache-2.4 ×1
directory ×1
java ×1
memory ×1
performance ×1
php5 ×1
ubuntu-12.04 ×1
virtualhost ×1
wildfly8 ×1