您正在查看: Other-经验分享 分类下的文章

ubuntu jenkins 更改默认端口

找到服务配置

systemctl status jenkins


编辑配置

sudo vi /lib/systemd/system/jenkins.service

修改其中的端口信息

Environment="JENKINS_PORT=8080"

使其生效

sudo systemctl daemon-reload
sudo systemctl restart jenkins

Windows WSL 安装docker

1. Add the necessary repository

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

2. Install the necessary dependencies

sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release -y

3. Install Docker

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli docker-compose containerd.io -y
sudo apt install gnome-keyring

4. Add your user to the Docker group

sudo usermod -aG docker $USER
sudo chmod 666 /var/run/docker.sock
sudo service docker restart

5. Testing the installation

docker version
docker pull hello-world

6.fix "System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down"

sudo apt-get update && sudo apt-get install -yqq daemonize dbus-user-session fontconfig

sudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target

exec sudo nsenter -t $(pidof systemd) -a su - $LOGNAME

snap version

参考文档

https://www.zdnet.com/article/docker-101-how-to-install-docker-on-ubuntu-server-22-04/
https://gist.github.com/alyleite/ca8b10581dbecd722d9dcc35b50d9b2b
https://docs.docker.com/engine/install/ubuntu/

站长求职或技术合作

经验时间

10年以上开发经验,含五年以上区块链开发经验

大型公链

多个大型公链开发设计与维护经验(火币Heco,Cube,FShares,EOS等)

交易所

FDex去中心化交易所设计与开发维护

矿池

Galaxy Pool去中心化矿池设计与开发

智能合约

多个大型Defi和游戏智能合约设计与开发经验(EOSDoda,FDex,类compound),以及各个公链系统合约

领导组织

为产品组提供去中心化方案的设计与开发以及组内任务分配与跨部门协调

技术推广

维护区块链中文技术社区(bcskill.com)

孵化产品

兼容以太坊高性能公链解决方案(ethdpos.com)
NSetup一键增量升级安装包制作(nsetup.cn)

传统互联网

金山软件5年工作经验(金山词霸,WPS Mail),其余公司和项目若干

联系方式

QQ:652511569
微信:bcskill