https://hub.docker.com/r/tigase/tigase-xmpp-server docker pull tigase/tigase-xmpp-server docker run –name tigase-server -p 8080:8080 -p 5222:5222 tigase/tigase-xmpp-server:latest Once started, open <a href="http://localhost:8080/" rel=”nofollow noopener”>http://localhost:8080</a> (from the same machine, or using http://<server_hostname>:8080), by default those are: 'admin-user' = 'admin' and 'admin-password' = 'tigase'.
使用Docker搭建Syncthing
Syncthing 官网:https://syncthing.net/ 在服务器上部署 Docker Debian 安装 Docker:https://docs.docker.com/engine/install/debian/ Ubuntu 安装 Docker:https://docs.docker.com/engine/install/ubuntu/ 拉取 syncthing 镜像 docker pull syncthing/syncthing 运行容器 docker run -d -p 8384:8384 -p 22000:22000 -v /data/syncthing:/var/syncthing –restart=always syncthing/syncthing:latest 参数解释: -d:后台运行 -p 8384:8384: 暴露 8384 端口,8384 是 Web 界面端口 -p 22000:22000:暴露…
Linux防火墙放行指定端口
Debian/Ubuntu 放行端口 安装iptables(通常系统都会自带,如果没有就需要安装) apt-get update apt-get install iptables 例如要放行8888端口 iptables -I INPUT -p tcp –dport 8888 -j ACCEPT 然后保存放行规则 iptables-save 设置完就已经放行了指定的端口,但重启后会失效,下面设置持续生效规则; 安装iptables-persistent apt-get install iptables-persistent 保存规则持续生效 netfilter-persistent save netfilter-persistent reload 设置完成后指定端口就会持续放行了; Centos 放行端口 例如要放行8888端口 firewall-cmd –zone=public –add-port=8888/tcp –permanent 命令含义:…
VPS系统信息查看命令
系统 uname -a # 查看内核/操作系统/CPU信息 head -n 1 /etc/issue # 查看操作系统版本 cat /proc/cpuinfo # 查看CPU信息 hostname # 查看计算机名 lspci -tv # 列出所有PCI设备 lsusb -tv # 列出所有USB设备 lsmod # 列出加载的内核模块 env # 查看环境变量 资源 free -m # 查看内存使用量和交换区使用量 df -h #…
Linux设置允许root账户登录SSH
编辑文件/etc/ssh/sshd_config, 找到下面这行: #PermitRootLogin prohibit-password 改成 PermitRootLogin yes 即可。记得去掉PermitRootLogin前面的注释符#. 然后,执行下面的命令即可生效: systemctl restart ssh