分类 开源软件 articles

单主机上多个GitHub账号配置

在同一机器上对不同repo使用不同的github账号是个常见需求。举个例子,repo1托管在github账号x1下,而repo2托管在账号x2下,如何方便地在同一机器上使用不同账号自动git push到对应的远端?比较直接的做法是在不同repo目录下使用git config配置用户名……

Continue reading

Linux安装最新版Git

Linux下安装Git是比较简单的,基本所有的发行版的源里都有git包,通常情况下只需要一条指定就可以完成安装,但在某些情况下我们需要使用Git的新特性,这时候就需要源码包的方式安装最新版本(比如要使用Git的C参数,在不同的目录下执行)。 一、最新版源码安装 在Github,htt……

Continue reading

How to deploy mkdocs on common platforms

There are web services that you can quickly build and deploy with MkDocs.Do you know of web services that have not been added here? Please add! Cloudflare Pages https://pages.cloudflare.com/ Cloudflare Pages includes Mkdocs in their Build configuration:\ https://developers.cloudflare.com/pages/platform/build-configuration Add the following files to your MkDocs: requirements.txt:\ Please include the required pip package 1mkdocs 2mkdocs-bootswatch 3mkdocs-minify-plugin runtime.txt: You can also refer to this:\ https://github.com/fu-sen/CloudflarePages-MkDocs Cloudflare Workers (Workers Site) https://developers.cloudflare.com/workers/platform/sites Edit wrangler.toml: After that: 1mkdocs build 2wrangler publish Docker-based web service (Google Cloud Run, Fly.io, etc.) Google Cloud Run: https://cloud.google.com/run Fly (fly.io): https://fly.io/ Caddy is adopted as the Web server on the assumption that the Web will be open to the public.\ You should not use mkdocs serve for public release! Dockerfile: 1FROM python:3-slim as mkdocs 2COPY . . 3RUN pip install --no-cache-dir -r requirements.txt 4RUN mkdocs build 5FROM caddy:alpine 6COPY --from=mkdocs……

Continue reading

Mkdocs平台的搭建使用

MkDocs平台是一个比较知名的通过Python语言编写的CMS程序,其支持通过markdown进行编写内容,通过不同的主题配置可以做为企业网站、blog、wiki等。比如比较知名的 mkdocs-material 主题,被 traefik、Rocky linux wiki、centos、kops、AWS Copilot CLI等知名项目使……

Continue reading

Huaweicloud CCE helm部署Prometheus

一、需求(requirement) 华为云CCE提供了prometheus插件,可以很方便的进行安装,不过其没有提供grafana的安装插件。同时一些情况下,想通过自定义的方式安装,这篇内容就记录下如何使用 helm 在k8s CCE上进行prometheus + grafana的安装。 HUAWEI CLOUD CCE provides the……

Continue reading

华为云CCE部署moodle程序

moodle程序需要通过k8s容器化部署,这里使用了企业版的k8s — 华为云CCE进行测试。因为moodle和常见的应用程序一样,会涉及两部分数据: 数据库数据:这里使用华为云服务RDS MySQL来承载; 应用数据:也就是moodledata数据,这部分通过使用外部存储来存放,存放的方……

Continue reading

ubuntu下安装nginx+moodle

由于在 centos7 + nginx + moodle4安装配置篇中已经详细的说明了如果安装moodle,本篇就写的相对简单点,只不过换了个操作系统而已。 一、安装相关包 1apt-get update 2apt-get -y install nginx php7.4 php7.4-fpm mysql-server php7.4-mysql php7.4-xml php7.4-mbstring \ 3 php7.4-curl php7.4-zip php7.4-gd php7.4-intl php7.4-xmlrpc php7.4-soap 4cd /var/www/html/ 5wget https://download.moodle.org/stable400/moodle-4.0.1.zip 6unzip moodle-4.0.1.zip 7chown -R www-data:www-data moodle 8mkdir moodledata 9chown -R www-data:www-data moodledata/ 这里使用的是php7.4 + nginx + mysql8 的环境来安装moodle。 二、配置 1……

Continue reading

centos7 + nginx + moodle4安装配置

一、安装PHP7.4 on CentOS7 1yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 2yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm 3yum -y install yum-utils 4yum-config-manager --enable remi-php74 5yum update 6yum install php php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt \ 7 php-mbstring php-curl php-xml php-pear php-bcmath php-json \ 8 php-mysqlnd php-xml php-xmlrpc php-pdo php-pecl-zip php-intl php-common 安装opcache Opcache 最初被称为 Zend Optimizer+,Opcache(在推出PHP 5.5.0以后)是被作为内置扩展以提高性 PHP 的性能。通过 PECL 它也可以用于 5.2,5.3和5……

Continue reading

免费好用的Gif录屏神器

截图展示,不方便理解,一直想着去做成gif动态图片,但以为是一件很麻烦的事情,所以就撂下了,今天研究了一下,原来只需要借助一款工具就可以完成了,在网上找了一圈,试用了几个工具之后,发现这几款用起来比较简单方便,值得推荐。 1. 免费开源的GIF录制工具ScreenToGif 官网地址:h……

Continue reading

如何重载Prometheus配置

Reloading Prometheus’ Configuration A common question from new users is if they need to restart Prometheus every time they change the configuration. The good news is that you don’t, allowing your monitoring to continue uninterrupted as your system changes. There are two ways to ask Prometheus to reload it’s configuration, a SIGHUP and the POSTing to the /-/reload handler. To send a SIGHUP, first determine the process id of Prometheus. This may be in a file such as /var/run/prometheus.pid, or you can use tools such as pgrep to find it. Then use the kill command to send the signal: 1kill -HUP 1234 Alternatively, you can send a HTTP POST to the Prometheus web server: 1curl -X POST :9090/-/reload Note that as of……

Continue reading

Latest articles

Categories

Tags

ACL AD AES AI AWS Ansible Atlassian Azure BMC Blockchain Brocade CDH5 CL210 Cobbler Confd C语言 DDOS DISTINCT DNS EKS ELK GCP Ghost Git Glusterfs Go Godaddy Grafana HBA HCIE Hotspot HttpWatch IBM IIS IOS InfluxDB Ingress InnoDB JavaScript Jinja2 KVM Keepalived Mplayer MySQLdb Netlify OpenResty PM PostgreSQL QoS RH318 RH442 RHCA RHCE RHEV RSA SRE SecureCRT Statuscode SublimeText2 TC Telecom Tencentcloud VBA aira2 alpine android anpic apache apm apparmor appfog apr apt-get aria2 array atop audit awk awstats axel backdoor backup bamboo bash bat benchmark bigdata bin bind bitwise book bootstrap bsd c1000 cache capistrano catlog centos centos7 chatops chattr check_mk checkinstall cisco clearall clickhouse cloud-desktop cmdb cms collectd comm compress conver corosync cpu crontab crunchbang css curl date decode dell desktop devops df dhcp diff diskpart django docker dos2unix dpkg drupal etcd excel fail2ban fastcgi fdisk fiddler find firewalld flask flvtool ftp function fuser geek gin github gitlab glances golang google gooupadd graphviz gravatra grep grub2 hadoop haproxy hardware heartbeat helm hexdump hhvm history html http/html/web httplogs https huawei huaweicloud hugo icmp iconv ifconfig inotify iopp ipmitool iptables iredmail iscsi isito it-news java jdk jenkins jira join joomla k3s k8s kdump kernel kingate lamp last leetcode lib light-http linux linux高级篇 ln ls lsi lsof lvm lvs mac mail man mark markdown matplotlib maven memcached microservice mimikatz mkdocs mkpasswd mmonit mod_jk mongodb monit monitor mono moodle mosh mount mpm mrtg mtr my.cnf mysql mysqlbinlog mysqld_multi mysqldump mysqlhotcopy nagios nc nethogs nexus nfs nginx nmon nocatlog node.js nrpe ntfs ntop ntp obs ocr open-falcon openbox opencv openldap openssl openstack oracle oswatch paas pacemaker pam pandas parted pcp pcre pdf percona perl pexpect pgrep php php-fpm ping plsql develope postfix powershell prettify proc prometheus puppeteer pushd pwgen pxe pyecharts python python模块 radmin raid rdesktop read redhat redis redmine regex rh134 rhel7 rhel8 rm rman rootkit route rpm rpmforge rrdtool rsync rsyslog safe saltstack samba scapy screen sed selenium selinux seo seq session set shc sheepdog shell shopt sitemap skydns smokeping snffier snmp socket soft sort spider sql sqlserver squid ss ssh sshpass strace strings su sudo suse svn sysbench syslog-ng sysstat systemd t tar tcpcopy tcpdump tech telnet tengine test testlink threads time tmux tomcat touch tr tsar twisted ubuntu udev ulimit unix unixbench user-agent useradd varnish vbs vercel vi vim visudo vmstat vmware vnc voice vpn vscode vsftp vsftpd vue watchdog web webcam webistrano wget wiki windows wol wordpress workshop wsl x-windows xampp xcache xmllint xtrabackup yule yum zabbix zeromq zip zonetime zookeeper 下载工具 云主机 云原生 代理 加密 古意 吐槽 圈里圈外 娱乐 字符串函数 安全 平台架构 意林 推理 提权 故事汇 故障案例 数据结构 每日看点 民国史 生活 科学记录 站长管理工具 算法 管理 网站架构 翻墙 股票 行业 诗韵 负载均衡 远程管理 面试题

Links

Meta