2827

Centos7安装shadowsocks、v2ray

2023-03-09更新

推荐使用Trojan-go,参考本站 Centos7安装配置Trojan-go + Nginx

2021-11-13安装v2ray

安装v2ray服务端

下载安装脚本

wget https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh  --user-agent="Mozilla/5.0"

执行安装脚本

./install-release.sh

如果报错 Unable to establish SSL connection. 安装openssl

yum install openssl
731

Centos7 安装配置Elasticsearch+Kibana

安装Elasticsearch

创建repo源

vi /etc/yum.repos.d/elasticsearch.repo

填入以下内容

[elasticsearch]
name=Elasticsearch repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/7.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=0
autorefresh=1
type=rpm-md

安装Elasticsearch

23827

Centos7下通过VirtualBox安装WindowsXP

背景:

由于现在普遍使用Linux作为服务端系统环境,而有的时候,会遇到某些功能或组件仅仅在windows下有实现或中间件程序,这时候就需要开发win程序并且在windows环境下运行。那么在不单独增加服务器的情况下,如何在现有的Linux系统上跑起来呢?

有一个可行的方案就是:Linux上跑Windows虚拟机,虚拟机中再跑win程序。


23001

gogs搭建私有git服务器

安装mysql

参见之前的文章:https://dotatong.cn/index.php/archives/1/

安装gogs

二进制文件官方地址 https://gogs.io/docs/installation/install_from_binary

24824

Centos7 Yum 安装PHP到指定目录,PHP多版本共存

背景

有时候需要在服务器上安装多个版本PHP,然而编译安装又不能使用yum安装依赖和维护扩展,故用此方法安装配置多个PHP环境。服务器上的第一个PHP环境可以直接使用yum安装,然后第二、第三个甚至更多,则需要使用如下的命令安装,并且配置

安装命令

yum install -c /etc/yum.conf --installroot=/usr/local/php/ --releasever=/ --enablerepo=remi-php71 php php-opcache php-mbstring php-mcrypt php-fpm php-cli php-xml php-redis php-mysqlnd php-pdo php-phalcon php-common php-json