博文

目前显示的是 五月, 2019的博文

谷歌云Ubuntu19.04安装Docker+Portainer用到的命令

一、安装Docker sudo apt install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic test" sudo apt update sudo apt install docker-ce 二、检测Docker是否安装成功 docker -v 三、启动Docker及系统重启后能自动启动 systemctl start docker.service systemctl enable docker.service 四、安装Potainer docker volume create portainer_data docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer

最新版Fedora30+V2ray服务器搭建用到的相关命令

一、查看时间 $ date -R 时间设置为UTC+8 首先执行 rm /etc/localtime 然后执行 ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 二、官方安装脚本https://www.v2ray.com/chapter_00/install.html bash <(curl -L -s https://install.direct/go.sh) 此脚本会自动安装以下文件: /usr/bin/v2ray/v2ray:V2Ray 程序; /usr/bin/v2ray/v2ctl:V2Ray 工具; /etc/v2ray/config.json:配置文件; /usr/bin/v2ray/geoip.dat:IP 数据文件 /usr/bin/v2ray/geosite.dat:域名数据文件 三、安装initscripts    yum install initscripts 四、启动V2ray 运行 service v2ray start 来启动 V2Ray 进程 其他相关命令 service v2ray stop service v2ray status service v2ray reload service v2ray restart service v2ray force-reload 五、查看BBR状态 lsmod | grep bbr 返回值有 tcp_bbr 模块即说明 bbr 已启动 六、防火墙相关 查看防火墙状态 firewall-cmd --state 查看所有打开的端口: firewall-cmd --zone=public --list-ports 开启端口 firewall-cmd --zone=public --add-port=63589/udp --permanent firewall-cmd --zone=public --add-port=22/tcp --permanent 重启防火墙 firewall-cmd --reload 开机启动,启动,停止 systemctl enable firewalld systemctl start firewall