迁移腾讯云笔记

操作系统选择centos7.1了,create vm  4core 8G, root disk 20G,brandwidth 10Mbps

create data disk 100G, make xfs partition

fdisk /dev/vdb
mkfs.xfs -f -i size=512 -l size=128m,lazy-count=1 -d agcount=16 /dev/vdb1
vim /etc/fstab
>> /dev/vdb1  /data                xfs        defaults,noatime,nobarrier  0 0

安装rsync,搭建rsync server

yum install -y rsync

mkdir /data/rsync

vim /etc/rsyncd.conf


[data]
path=/data/rsync
list=no
ignore errors
auth users = code
secrets file=/etc/rsyncd.secrets

vim /etc/rsyncd.secrets

code:9m!ll!0n


rsync --config=/etc/rsyncd.conf --daemon --address=10.0.2.2


install openresty with jemalloc

wget http://www.canonware.com/download/jemalloc/jemalloc-4.1.0.tar.bz2
tar xjf jemalloc-4.1.0.tar.bz2 && cd jemalloc-4.1.0 
./configure make && make install 
echo '/usr/local/lib' > /etc/ld.so.conf.d/local.conf 
ldconfig
yum install pcre-devel
./configure --prefix=/opt/openresty --without-select_module --with-threads --with-http_gunzip_module --with-http_gzip_static_module --without-mail_pop3_module 
--without-mail_imap_module --without-mail_smtp_module --without-http_uwsgi_module --without-http_memcached_module  --without-http_scgi_module  
--without-http_uwsgi_module  --with-http_ssl_module --with-http_stub_status_module --with-file-aio --with-pcre-jit --with-ld-opt="-ljemalloc"


install server-jre

wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" 
"http://download.oracle.com/otn-pub/java/jdk/7u80-b15/server-jre-7u80-linux-x64.tar.gz"
tar xvf 7u80-b15/server-jre-7u80-linux-x64.tar.gz -C /opt


额外:

yum install -y bash-completion

vim /etc/inputrc

set show-all-if-ambiguous on
set show-all-if-unmodified on
"\e[A": history-search-backward
"\e[B": history-search-forward




你可能感兴趣的:(迁移腾讯云笔记)