CentOS7 安装 xrdp(Windows远程桌面连接Linux) 先安装VNC参考:CentOS7 安装 VNC yum install -y epel-release yum install -y xrdp systemctl enable xrdp systemctl start xrdp systemctl status xrdp netstat -antpl | grep 3389 Linux 小马同学 2023-10-19 43 热度 0评论
Docker 安装 Centos7 并开启 ssh 服务 # 拉取centos7镜像 docker pull centos:7.6.1810 # 创建并启动centos7容器,运行init程序(必须打开privileged选项,否则将出现“Failed to get D-Bus connection: Operation not permitted”) docker run -d --privileged=true -p 5622:22 --name c Docker 小马同学 2023-10-19 36 热度 0评论
Centos7 配置 Supervisor 进程守护 supervisord和supervisorctl: 1、supervisord是supervisor的服务端程序。启动supervisor程序自身,启动supervisor管理的子进程,响应来自clients的请求,重启闪退或异常退出的子进程,把子进程的stderr或stdout记录到日志文件中,生成和处理Event。 2、如果说supervisord是supervisor的服务端程序,那么su Linux 小马同学 2023-10-17 30 热度 0评论
粒子背景特效 Particleground.js 插件 官网:https://jnicol.github.io/particleground/ GitHub:https://github.com/jnicol/particleground Html/Css/Js 小马同学 2023-09-22 36 热度 0评论
JS 设置 Cookie 代码 /** * 设置 Cookie * @param name * @param value * @param expires * @param path * @param domain * @param secure */ function setCookie(name, value, expires, path, domain, secure) { let cookieSt Html/Css/Js 小马同学 2023-08-18 36 热度 0评论
.NET MVC 静态文件访问限制 RouteConfig: public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { //http://localhost:41434/wp-content/uploads/ .Net 小马同学 2023-08-03 37 热度 0评论
Centos7 常用命令 查看操作系统: cat /etc/redhat-release 查看CPU信息(型号)/查看处理器个数: cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c 查看内存占用: free -h Mem:内存的使用情况总览 totel:物理总内存(单位:G) used:进程已使用内存 free:空闲内存 shared:共享内存的大小 buff/ca Linux 小马同学 2023-06-01 476 热度 0评论
判断某个点是否在圆半径内(电子围栏) var radius = 983; //单位:米 var distance = getDistance(116.38984270516266, 39.91837578204758, 116.39904135358485, 39.91306312138842); console.log(distance); if (distance <= radius) { console.log(\" Html/Css/Js 小马同学 2023-05-08 35 热度 0评论