yum install vim
配置,编辑vim配置文件
vim /etc/vimrc
末尾添加以下几行,设置缩进长度、退格缩回长度,一行最大字符数、显示行号、自动缩进
set shiftwidth=4
set softtabstop=4
set textwidth=200
set nu
set autoindent
yum install readline-devel yum install readline yum install flex autoconf automake texinfo help2man curl -R -O http://cgdb.me/files/cgdb-0.7.1.tar.gz tar zxvf cgdb-0.7.1.tar.gz cd cgdb-0.7.1 ./configure --prefix=/usr/local make && make install
安装cmake
1 2 3 4 5 6 7 8
wget https://cmake.org/files/v3.16/cmake-3.16.0.tar.gz tar -xzvf cmake-3.16.0.tar.gz cd cmake-3.16.0 ./configure ./bootstrap gmake make && make install cmake --version
安装protobuf
1 2 3 4 5 6 7 8 9 10 11 12 13
yum install autoconf libtool automake curl 命令安装 yum install protobuf-compiler 编译安装 wget https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz tar zxf protobuf-2.5.0.tar.gz cd protobuf-2.5.0 ./configure --prefix=/opt/local/protobuf-2.5.0 make make install ln -s /opt/local/protobuf-2.5.0/bin/protoc /usr/bin/protoc
protoc -I=. --cpp_out=. msg.proto
安装libevent
1
sudo apt-get install libevent-dev
编译安装 OpenSSL
1 2 3 4 5 6 7 8 9
prefix 是安装目录,openssldir 是配置文件目录,另外建议安装两次,shared 作用是生成动态连接库。 wget ftp://ftp.openssl.org/source/openssl-1.0.2g.tar.gz tar -zxf openssl-1.0.2g.tar.gz cd openssl-1.0.2g/ ./config --prefix=/usr/local --openssldir=/usr/local/ssl make && make install ./config shared --prefix=/usr/local --openssldir=/usr/local/ssl make clean make && make install
安装lua
1 2 3 4 5 6 7 8 9 10 11 12 13 14
lua安装依赖breadline环境 yum install readline-devel 安装lua详见[LUA官网](http://www.lua.org/download.html) curl -R -O http://www.lua.org/ftp/lua-5.3.5.tar.gz tar zxf lua-5.3.5.tar.gz cd lua-5.3.5 make linux && make install
# cd /usr/src # wget https://www.kernel.org/pub/software/scm/git/git-2.22.0.tar.gz # tar xzf git-2.22.0.tar.gz
安装git并添加到环境变量中
# cd git-2.22.0 # make prefix=/usr/local/git all # make prefix=/usr/local/git install # echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc # source /etc/bashrc
安装ftp yum install vsftpd -y service vsftpd start chkconfig chkconfig vsftpd on 建一个测试文件夹 mkdir /var/ftp/test 试一下 ftp://ip,一个只能下载的FTP站就好了。 增加ftp用户密码12345678 useradd ftpuser -s /sbin/nologin passwd ftpuser ftp123 修改ftp配置文件 cp /etc cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf_back vim /etc/vsftpd/vsftpd.conf 开启一下项 write_enable=YES ascii_upload_enable=YES ascii_download_enable=YES ftpd_banner=Welcome to blah FTP service chroot_local_user=YES 重启ftp服务 service vsftpd restart 在window上输入ftp://ip访问,输入用户名及密码 ftpuser/12345678即可看到/home/ftpuser/目录
mysql环境搭建
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
首先必须添加mysql社区repo通过输入命令 sudo rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm 安装mysql yum install -y mysql-server mysql mysql-devel libmysqlclient-dev 启动服务 service mysqld start 设置root密码 /usr/bin/mysqladmin -u root password '12345678' 设置mysql开机启动 chkconfig mysqld on 配置mysql允许远程访问 mysql -u root -p 执行以下命令开启远程访问限制 grant all privileges on *.* to 'root'@'%' identified by '12345678' with grant option; flush privileges; exit; 重启mysql service mysqld restart
然后再按照下面的方式执行 Installation Download, extract and compile Redis with: $ wget http://download.redis.io/releases/redis-3.2.6.tar.gz $ tar xzf redis-3.2.6.tar.gz $ cd redis-3.2.6 $ make && make install $ cd deps/hiredis $ make && make install
The binaries that are now compiled are available in the src directory. Run Redis with: $ src/redis-server You can interact with Redis using the built-in client: $ src/redis-cli redis> set foo bar OK redis> get foo "bar"
Congratulations, Shadowsocks-go server install completed! Your Server IP :your_server_ip Your Server Port :your_server_port Your Password :your_password Your Encryption Method:your_encryption_method
Welcome to visit:https://teddysun.com/392.html Enjoy it! 卸载方法: 使用 root 用户登录,运行以下命令: