只修改文件夹的权限,代码:
chmod 755 `find ./ -type d `
只修改文件的权限,代码:
chmod 644 `find ./ -type f`
修改主机名
vi /etc/sysconfig/network
#添加
HOSTNAME=your-name
vi /etc/hosts
#修改
192.168.x.x your-name your-name
#终端执行
hostname your-name
chmod 755 `find ./ -type d `
chmod 644 `find ./ -type f`
vi /etc/sysconfig/network
#添加
HOSTNAME=your-name
vi /etc/hosts
#修改
192.168.x.x your-name your-name
#终端执行
hostname your-name
推荐使用Trojan-go,参考本站 Centos7安装配置Trojan-go + Nginx
下载安装脚本
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
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
由于现在普遍使用Linux作为服务端系统环境,而有的时候,会遇到某些功能或组件仅仅在windows下有实现或中间件程序,这时候就需要开发win程序并且在windows环境下运行。那么在不单独增加服务器的情况下,如何在现有的Linux系统上跑起来呢?
有一个可行的方案就是:Linux上跑Windows虚拟机,虚拟机中再跑win程序。
参见之前的文章:https://dotatong.cn/index.php/archives/1/
二进制文件官方地址
https://gogs.io/docs/installation/install_from_binary