贝隆

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

安装后端程序


docker run -d -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password -e POSTGRES_DB=syndesis postgres:14

$ syndesis build -f -c --backend # to download dependencies and build the backend $ (cd app && ./mvnw -f server/runtime spring-boot:run)


#启动syndesis server

docker run -d -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password -e POSTGRES_DB=syndesis postgres

java -jar \
-Dcontrollers.dblogging.enabled=false \
-Dencrypt.key=supersecret \
-Dfeatures.monitoring.enabled=false \
-Dmeta.service=localhost:9090 \
-Dmetrics.kind=noop \
-Dopenshift.enabled=false \
-Dspring.cloud.kubernetes.enabled=false \
runtime.jar

 #meta

java -jar \
-Dserver.port=9090 \
-Dmanagement.server.port=9091 \
-DLOADER_HOME=target \
meta-1.13.2.jar

 

安装sysdesis前端程序

 

ubu@ubu2004:~$ cat /etc/apt/sources.list
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.


deb https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse

 

执行如下命令:

sudo apt remove nodejs

此命令会卸载 nodejs,但是会保留配置文件,方便你以后再次安装 nodejs。

如果不想保留配置文件,继续执行:

sudo apt purge nodejs

这将会卸载 nodejs 和其相关的配置文件。



安装指定源版本 nodejs
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - 
sudo apt-get install -y nodejs
sudo apt-get install libxss1
sudo apt-get install libgtk-3-dev

## Run `sudo apt-get install -y nodejs` to install Node.js 12.x and npm
## You may also need development tools to build native addons:
sudo apt-get install gcc g++ make
## To install the Yarn package manager, run:
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn

 

执行:vim /etc/sysctl.conf,添加如下内容:

fs.inotify.max_user_watches=524288

输入:wq

在命令行执行:sysctl -p

 

 

启动两个窗口执行:

To build the UI, run:

$ syndesis ui --install --build

After that UI can be started by running (in two separate terminal sessions):

$ (cd app/ui-react && yarn watch:packages)
$ (cd app/ui-react && BACKEND=http://localhost:8080 yarn watch:app:proxy)



#yarn
 yarn cache dir
#npm


posted on 2022-01-16 23:25  贝隆  阅读(190)  评论(0)    收藏  举报