openLookeng on WSL in Windows Server 2019

启用WSL,安装Ubuntu

微软官方文档

下载解压安装包,然后管理员身份打开powershell,运行安装命令:

Add-AppxPackage Ubuntu_2004.2021.825.0_x64.appx
Add-AppxPackage Ubuntu_2004.2021.825.0_scale-100.appx
Add-AppxPackage Ubuntu_2004.2021.825.0_scale-125.appx
Add-AppxPackage Ubuntu_2004.2021.825.0_scale-150.appx
Add-AppxPackage Ubuntu_2004.2021.825.0_scale-400.appx

WSL重启:How to Reboot WSL (Windows subsystem Linux) in Windows 10 or 11

 Get-Service LxssManager | Restart-Service

切换到root用户:

suto passwd root
[sudo] password for alexzhang:
New password:
Retype new password:
su root
Password:

切换到阿里云ubuntu镜像:阿里云镜像地址

mv /etc/apt/sources.list /etc/apt/sources.list.bk
vim /etc/apt/sources.list

/etc/apt/sources.list

deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse

# deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

更新升级软件:

apt-get update
apt-get upgrade
# 安装开发环境
apt-get install openjdk-8-jdk cmake gcc g++ pip bison maven autoconf protobuf-compiler

Switch java versions

update-java-alternatives --list
update-java-alternatives --set /path/to/java/version

安装图形界面+vncserver

参考:Ubuntu VNC 安装/使用/故障解决 看这一篇就够了

apt-get install -y xrdp xfce4
apt-get install -y ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal

配置xfce4

echo "xfce4-session" > ~/.xsession

vi ~/.vnc/xstartup

unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
unset DBUS_SESSION_BUS_ADDRESS

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
gnome-panel &
gnmoe-settings-daemon &
metacity &
nautilus &
gnome-terminal &

启动:

mkdir ~/.config/nautilus
vncserver -geometry 2560x1440

配置SSH

apt-get install openssh openssh-server

vim /etc/ssh/sshd_config

PermitRootLogin yes
PubkeyAuthentication yes
PasswordAuthentication yes

service ssh start

编译配置openLookeng

编译:maven -T8C clean install -DskipTests
配置:
vim etc/node.properties

node.envirionment=olk
node.launcher-log-file=/opt/openlookeng/
node.server-log-file=/opt/openlookeng/
catalog.config-dir=/opt/openlookeng/
node.data-dir
plugin-dir=

vim etc/config.properties
vim etc/jvm.config
vim etc/catalog/jmx.properties

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值