我在Amazon EC2上创建了一个实例,然后安装了whm和cpnel.我只能使用我的域名ex来访问cpanel.domainname.com/2083但是当我去我的域名鬃毛前.domainname.com它给出了这个网站无法到达...
我有点困惑,如果网站没有正确指向那么它不应该去Cpanel,但因为它能够访问cpanel然后为什么它不显示网站.
我已经重新检查了名称服务器和主机名.
据我所知,Azure Worker角色是在名为WaWorkerHost.exe的Host应用程序的帮助下运行的,还有另一个名为WaHostBootstrapper.exe的应用程序,用于检查WaWorkerHost.exe是否正在运行,如果没有,它将运行WaWorkerHost.exe.
如何快速重新启动Worker角色?我可以重启机器工作者角色正在运行并等待几分钟或选择以下传统方法:
Taskkill/im/f WaWorkerHost.exe
并等待几分钟让WaHostBootstrapper.exe启动,但这非常低效和缓慢.是否有任何(即时)方法重新启动辅助角色?
我可以运行类似下面的内容并期望与WaHostBootstapper.exe类似的结果或还有其他考虑因素吗?
WaWorkerHost.exe {MyAzureWorkerRole.dll}
/Users/shaddeler/Developer/run/Homestead/scripts/homestead.rb:169:in `+': no implicit conversion of nil into String (TypeError)
from /Users/shaddeler/Developer/run/Homestead/scripts/homestead.rb:169:in `block (2 levels) in configure'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/kernel_v2/config/vm_provisioner.rb:72:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/kernel_v2/config/vm_provisioner.rb:72:in `add_config'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/kernel_v2/config/vm.rb:324:in `provision'
from /Users/shaddeler/Developer/run/Homestead/scripts/homestead.rb:168:in `block in configure'
from /Users/shaddeler/Developer/run/Homestead/scripts/homestead.rb:157:in `each'
from /Users/shaddeler/Developer/run/Homestead/scripts/homestead.rb:157:in `configure'
from /Users/shaddeler/Developer/run/Homestead/Vagrantfile:30:in `block in <top (required)>'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/config/v2/loader.rb:37:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/config/v2/loader.rb:37:in `load'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/config/loader.rb:113:in `block (2 levels) in load'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/config/loader.rb:107:in `each'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/config/loader.rb:107:in `block in load'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/config/loader.rb:104:in `each'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/config/loader.rb:104:in `load'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/vagrantfile.rb:28:in `initialize'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/environment.rb:746:in `new'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/environment.rb:746:in `vagrantfile'
from …Run Code Online (Sandbox Code Playgroud) 从命令行或在线API,我可以轻松创建"复合主键",但当我尝试使用CloudFormation为我完成工作时,我没有看到任何JSON/YAML会让我设置一个名为"复合主键".语言完全不同,所以我希望有人可以指导我如何使用Cloudformation创建这样的密钥.
我最好的猜测是如下所示,我希望复合键包含userId和noteId:
Resources:
usersTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: notes_serverless
AttributeDefinitions:
- AttributeName: userId
AttributeType: S
- AttributeName: noteId
AttributeType: S
KeySchema:
- AttributeName: userId
KeyType: HASH
- AttributeName: noteId
KeyType: RANGE
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用Consul和Registrator来获取各种虚拟机中的微服务,但我想我并没有得到什么.我知道Registrator会自动向Consul注册容器.所以我想我有一个运行Consul的VM,然后对于每个微服务我都有一个带Registrator +微服务器的VM.
但是,我无法让Registrator在单独的VM中与Consul代理进行通信.仔细观察建议的体系结构,似乎我需要在每个VM上使用单独的Consul代理.我明白了吗?如果是这样,为什么?Registrator不应该只能将容器信息转发给任何VM上的Consul代理吗?
另外,我是否需要在具有Consul代理和服务器的VM上运行Registrator?
我想转移到我的新笔记本电脑上的虚拟机环境,所以想测试流浪汉.然而,我没有能够在没有一个接一个错误的情况下超越Vagrant,我遇到了一些错误,现在我陷入困境.
Rsync总是无法执行ssh(下面的完整错误)
rsync和putty添加到sytstem路径的末尾
..; C:\ HashiCorp\Vagrant\bin; C:\ Users\paul\Desktop\putty.exe; C:\ cygwin64\bin; C:\ Program Files\Git\cmd
Vagrant文件包含(包括windows/rsync错误修复)
Vagrant.configure(2) do |config|
config.vm.box = "centos/7"
ENV["VAGRANT_DETECTED_OS"] = ENV["VAGRANT_DETECTED_OS"].to_s + " cygwin"
end
Run Code Online (Sandbox Code Playgroud)
我还尝试将C:\ HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.6.X\plugins\synced_folders\rsync\helper.rb中的第43行更改为hostpath ="/ cygdrive"+ Vagrant :: Util :: Platform .cygwin_path(hostpath)
而不是把它放在流浪文件中.
我仍然无法让rsync工作.我甚至不确定为什么它需要在'up'上执行此操作.
我从cmd运行vagrant这里是完整的输出.
C:\Users\paul\Projects\gettingStarted-centos7>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'centos/7' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set …Run Code Online (Sandbox Code Playgroud) 在窗口cmd中,我通常喜欢这样,它正在工作
C:\Users\davi> mysql -u root -p mydb < D:/xampp/mysql/bin/db.sql
Run Code Online (Sandbox Code Playgroud)
我是流浪汉的新手,这就是我在流浪汉ssh做的事情
[vagrant@localhost bs]$ mysql -u root -p mydb < D:/xampp/mysql/bin/db.sql
Run Code Online (Sandbox Code Playgroud)
但我得到了这个错误
-bash:D:/xampp/mysql/bin/db.sql:?????????????????????
无论如何都要正确导入?
我正在尝试按多个值进行过滤,但是似乎无法使and子句起作用(例如filter1和filter 2 ...等):
向我显示数据库名称正在“测试”的快照
aws rds describe-db-snapshots --include-shared --query 'DBSnapshots[?DBInstanceIdentifier==`testing`].{DBNAME:DBInstanceIdentifier,SNAPSHOT:DBSnapshotIdentifier}'
[
{
"SNAPSHOT": "test1",
"DBNAME": "testing"
},
{
"SNAPSHOT": "test2",
"DBNAME": "testing"
},
{
"SNAPSHOT": "test3",
"DBNAME": "testing"
},
{
"SNAPSHOT": "test4",
"DBNAME": "testing"
}
]
Run Code Online (Sandbox Code Playgroud)
向我显示名为“ test1”的快照
$ aws rds describe-db-snapshots --include-shared --query 'DBSnapshots[?DBSnapshotIdentifier==`test1`].{DBNAME:DBInstanceIdentifier,SNAPSHOT:DBSnapshotIdentifier}'
[
{
"SNAPSHOT": "test1",
"DBNAME": "testing"
},
{
"SNAPSHOT": "test1",
"DBNAME": "testing2"
}
]
Run Code Online (Sandbox Code Playgroud)
向我显示名为test1的数据库测试快照
aws rds describe-db-snapshots --include-shared --query 'DBSnapshots[?DBInstanceIdentifier==`testing`][?DBSnapshotIdentifier==`test1`].{DBNAME:DBInstanceIdentifier,SNAPSHOT:DBSnapshotIdentifier}'
[]
Run Code Online (Sandbox Code Playgroud)
如何做到这一点?
我是Linux的新手,我需要在AWS的机器上安装openjdk 1.8.0_20-b26(特定版本).如果你能给出一些提示,我将不胜感激,因为它似乎yum总是安装最新的一个,并试图使用--showduplicates产量.
我将感激你的帮助.
我刚刚在弗吉尼亚北部创建了RDS实例,并尝试使用Navicat连接该数据库。
但是我无法连接它。
通过Internet搜索之后,我知道我们需要配置安全组。但就我而言,有一个通知:
Your account does not support the EC2-Classic Platform in this region. DB Security Groups are only needed when the EC2-Classic Platform is supported. Instead, use VPC Security Groups to control access to your DB Instances. Go to the EC2 Console to view and manage your VPC Security Groups. For more information, see AWS Documentation on Supported Platforms and Using RDS in VPC.
Run Code Online (Sandbox Code Playgroud)
请帮助我解决问题。N.Virginia也是AWS自动分配的。最好选择Free-tier的N.Viginia。