官方论坛产品帮助刷图视频问题反馈

息壤新版VPS安装Directadmin 全记录

发表于 秦海传媒

系统CentOS-6.6 32版;
第一步:息壤云挂载硬盘

 
yum -y update
pstree
yum -y install dos2unix patch screen unzip lftp tar quota
ln -s /usr/lib/libssl.so /usr/lib/libssl.so.6
ln -s /usr/lib/libcrypto.so /usr/lib/libcrypto.so.6
ln -sf /usr/lib64/libexpat.so /usr/lib/libexpat.so
ln -sf /usr/lib64/libm.so /usr/lib/libm.so
ln -sf /usr/lib64/libssl.so /usr/lib/libssl.so
yum install gcc gcc-c gcc-c++
yum -y install wget gcc gcc-c flex bison make bind bind-libs bind-utils openssl openssl-devel perl quota libaio libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronie bzip2 db4-devel cyrus-sasl-devel perl-ExtUtils-Embed libstdc .so.6 libnspr4.so libssl.so.6
yum install openssl098e glibc.i686 libstdc.i686
yum install libssl.so.6 libcrypto.so.6
yum install libstdc++.so.6
wget http://static.qinhai.us/soft/directadmin/DA1.44.3.zip
unzip DA1.44.3.zip
mkdir -p /usr/local/directadmin
tar xvf update2.tar.gz -C /usr/local/directadmin
bash setup.sh
   89  history
   90  history 100
   91  history 100 >1.txt
  • 腾讯云主机安装Directadmin

  • yum -y update
    yum -y install dos2unix patch screen unzip lftp tar quota
    ln -s /usr/lib/libssl.so /usr/lib/libssl.so.6
    ln -s /usr/lib/libcrypto.so /usr/lib/libcrypto.so.6
    ln -sf /usr/lib64/libexpat.so /usr/lib/libexpat.so
    ln -sf /usr/lib64/libm.so /usr/lib/libm.so
    ln -sf /usr/lib64/libssl.so /usr/lib/libssl.so
    yum -y install gcc gcc-c gcc-c++ wget gcc gcc-c flex bison make bind bind-libs \
    bind-utils openssl openssl-devel perl quota libaio libcom_err-devel libcurl-devel \
    gd zlib-devel zip unzip libcap-devel cronie bzip2 db4-devel cyrus-sasl-devel \
    perl-ExtUtils-Embed libstdc .so.6 libnspr4.so libssl.so.6 openssl098e \
    glibc.i686 libstdc.i686 libssl.so.6 libcrypto.so.6 libstdc++.so.6
    echo "libxslt:1.1.29:a129d3c44c022de3b9dcf6d6f288d72e" >> /usr/local/directadmin/custombuild/custom_versions.txt
    wget http://static.qinhai.us/soft/directadmin/DA1.44.3.zip
    unzip DA1.44.3.zip
    mkdir -p /usr/local/directadmin
    tar xvf update2.tar.gz -C /usr/local/directadmin

    bash setup.sh
    wget -O capri.sh http://localserver.flaxe.eu/Capri-install/capri.sh
    chmod +x capri.sh
    ./capri.sh
    yum install perl-libwww-perl perl-Time-HiRes perl-Crypt-SSLeay perl-LWP-Protocol-https perl-IO-Socket-SSL perl-GDGraph perl-Socket6 perl-IO-Socket-INET6
    yum install python-setuptools && easy_install pip
    pip install shadowsocks
    yum install python-setuptools && easy_install pip
    reboot
    pstree
    cat /usr/local/directadmin/scripts/setup.txt
    ls
    cd /home/admin/admin_backups
    chown admin:admin *

    vi /usr/local/directadmin/conf/directadmin.conf
    service directadmin restart

    cd /usr/local/php53
    ls
    cd sockets
    ls
    cd ../
    ls -ls
    cdmod 777 sockets
    chmod 777 sockets
    cd sockets
    ls
    vi ikallsva.sock
    ls
    ls -ls
    chown ikallsva:apache ikallsva.sock
    ls -ls
    chmod 777 ikallsva.sock
    ls -ls
    cat webapps.sock
    ls
    vi webapps.sock
    ls -ls
    pwd
    cd /usr/local/php/etc/php-fpm.conf
    cat /usr/local/php/etc/php-fpm.conf
    cd cd /usr/local/directadmin/custombuild/
    cd /usr/local/directadmin/custombuild/
    ./build clean
    ./build update
    ./build php
    ./build all d
    ls
    vi options.conf
    ./build update
    ./build clean
    ./build php n
    vi options.conf
    ./build update
    ./build clean
    ./build php n
    ./build apache
    vi options.conf
    cat /usr/local/directadmin/scripts/setup.txt
    ./build rewrite_confs
    vi options.conf
    apache -v
    httpd -V
    pwd
    cd /usr/local/php53/sockets/
    ls
    pwd
    cd /usr/local/directadmin/custombuild
    top
    vi options.conf
    ./build nginx
    service directadmin restart]
    service directadmin restart
    vi options.conf
    ./build update
    ./build apache
    ls
    vi versions.txt
    pwd
    cd /usr/local/directadmin/data/templates
    ls
    vi virtual_host.conf
    vi user_virtual_host.conf
    vi httpd.conf
    cd /usr/local/directadmin/data/templates
    cp virtual_host2*.conf custom
    cd custom
    mkdir custom
    cp virtual_host2*.conf custom
    cd custom
    ls
    vi virtual_host2.conf
    ./bulid apache
    cd /usr/local/directadmin/custombuild
    ./build rewrite
    ./build rewrite_confs
    rm -rf /usr/local/directadmin/data/templates/custom
    ./build rewrite_confs
    ls ~/
    vi /usr/local/directadmin/data/templates/user_virtual_host.conf
    ./build rewrite_confs
    ./build apache
    ./build set php1_release 7.0
    ./build php
    ./build rewrite_confs
    ls
    vi options.conf
    ./bulid php
    ./build php
    ./build rewrite_confs
    top
    cd /home/admin
    ls
    cd admin_backups
    ls
    ls -ls
    top
    vi /usr/local/directadmin/conf/directadmin.conf
    echo "action=directadmin&value=restart" >> /usr/local/directadmin/data/task.queue; /usr/local/directadmin/dataskq d2000
    cd /usr/local/directadmin/custombuild
    ./build rewrite_confs
    cd /usr/local/directadmin/custombuild
    ./build update
    ./build letsencrypt
    service directadmin restart

    /usr/sbin/repquota /
    df -hT

    vi /etc/fstab
    cat /etc/fstab
    /usr/sbin/repquota /

    history|awk '{$1="";print substr($0,2)}' >1.txt
    cat 1.txt
    history|awk '{$1="";print substr($0,2)}' >1.txt

    第三步:由于主机分配的是内网,设置Lan IP.
    4) As of DA 1.43.0+, you’ll be able to link the LAN IP to your public IP using the new Linked IP feature.
    With this feature, you’d do the following:
    – Add the LAN IP to DA’s IP manager. Don’t assign it to any Users or Domains.
    – View the details of the external IP: Admin Level -> IP Manager -> Click the public/external IP.
    – Link the internal IP to the external IP: Select the LAN IP from the drop down.
    – Only select Apache, do not select DNS

    5) Add the following value to your directadmin.conf, and restart DA:
    lan_ip=192.168.1.2

    where you’d replace 192.168.1.2 with the LAN IP value that should be used for outbound connections.
    6) You must disable popb4smtp via the exim.conf if all incoming IPs are your router’s IP (always the same). If inbound IPs are external, then this is not requierd. If you type “who”, check which IP shows up as your inbound ssh IP. If it’s the router IP, disable pophosts.

    FlashFxp下载及使用教程

    发表于 秦海传媒

    FlashFXP是一款功能强大的FXP/FTP软件,集成了其它优秀的FTP软件的优点。使用容易上手而且方便,它是我常用的一款FTP软件,本人经常使用它来完成网站、网盘的上传下载工作,一直感觉良好,特此推荐给需要的朋友,顺便写了个比较详细的教程,供新手朋友参考。老手请勿见笑。
    ====================
    一、FlashFXP下载
    打开FlashFXP下载地址(见参考资料链接);

    二、FlashFXP解压、安装
    打开或右键解压FlashFXP_4.1.8.1700-Special.rar压缩包到你想存放的位置。

    四、FlashFXP使用
    1.点FlashFXP菜单栏“站点-站点管理”打开站点管理器。然后点新建站点,输入站点名称(随意),确定。
    2.编辑站点管理器里新建的站点的相关信息,包括站点名称、地址、用户名称、密码等。编辑完成,点应用保存站点信息,点连接,FlashFXP开始连接FTP。
    3.连接FTP成功后,右侧窗口会显示FTP服务器(站点)目录。你可以上传、下载、修改、删除FTP服务器(站点)中的内容了。
    登陆成功后界面演示。双击文件夹可以打开对应的目录。如下图:
    4在左侧本地窗口选择文件或文件夹,右键-传输,即可把文件或文件夹上传到右侧的FTP服务器。操作简单。
    5在右侧FTP服务器目录选择文件或文件夹可以进行相关的传输(下载)本地、查看、编辑、移动、删除、重命名、新建文件夹、刷新等操作。操作十分简单。
    6以下是本人用FTP上传test.jpg文件至本人的FTP服务器的示例。

    PowerShell 启动,暂停,恢复,保存,关闭Hyper-V虚拟机

    发表于 秦海传媒

    * 需要win10 windows server 2016支持
    需要管理员权限,否则get-vm时,没有返回值,也不会报错。 下面就用简单的命令,完成简单的管理:
    Start-VM https://technet.microsoft.com/en-us/library/hh848468.aspx
    Stop-VM https://technet.microsoft.com/en-us/library/hh848589.aspx
    #获取虚拟机
    $vm = Get-VM -Name 'centos-linux'

    #启动虚拟机
    $vm | Start-VM

    #暂停虚拟机
    $vm | Suspend-VM

    #恢复虚拟机
    $vm | Resume-VM

    #保存虚拟机
    $vm | Save-VM

    #关闭虚拟机
    $vm | Stop-VM

    记住suspend和resume两个单词即可,另外的几个相信不需要记了。

    创建定时任务 管理shadowsocks

    发表于 秦海传媒

    下载定时文件

    cd /root
    wget http://static.qinhai.us/sh/shadowsocks-crond.sh
    crontab -e
    

    添加下面一行:
    */5 * * * * root bash /root/shadowsocks-crond.sh
    重新载入定时任务
    /etc/init.d/crond reload

    Dnsmasq安装与配置-搭建本地DNS服务器

    发表于 秦海传媒

    默认的情况下,我们平时上网用的本地DNS服务器都是使用电信或者联通的,但是这样也导致了不少的问题,首当其冲的就是上网时经常莫名地弹出广告,或者莫名的流量被消耗掉导致网速变慢。其次是部分网站域名不能正常被解析,莫名其妙地打不开,或者时好时坏。
    如果碰上不稳定的本地DNS,还可能经常出现无法解析的情况。除了要避免“坏”的DNS的影响,我们还可以利用DNS做些“好”事,例如管理局域网的DNS、给手机App Store加速、纠正错误的DNS解析记录、保证上网更加安全、去掉网页讨厌的广告等等。
    这时候搭建一个属于自己的本地DNS服务器就十分必要了,本篇文章就来分享一下Dnsmasq安装与配置方法,利用Dnsmasq来搭建一个属于自己的本地DNS服务器,享受更干净无污染、更智能快速和没有广告干扰的DNS解析服务。
    选择好的本地DNS可以让我们上网更快更舒心,而对于网站,选择一个好的DNS域名解析服务也是十分重要:
    1、DNS排名:十大免费DNS域名解析服务-稳定,可靠,好用的免费DNS服务
    2、国外DNS:Linode免费DNS使用方法和He.net稳定功能强大的DNS解析服务
    3、国内DNS:360网站卫士免费DNS和CDN申请使用及CDN缓存无法切换移动主题
    Dnsmasq安装与配置-搭建本地DNS服务器 享受更干净更快无广告DNS解析
    一、Dnsmasq安装
    1、执行以下命令在VPS上安装Dnsmasq:

    yum install dnsmasq -y
    service dnsmasq start

    二、Dnsmasq配置
    1、Dnsmasq的配置文件是放在 /etc/dnsmasq.conf 中。

    2、打开编辑,配置:resolv-file=/etc/resolv.dnsmasq.conf,表示dnsmasq 会从这个指定的文件中寻找上游dns服务器。同时取消 strict-order 前面的注册#号。

    3、检查一下no-hosts前面是不是已经有了#号,默认的情况下是有的,dnsmasq 会首先寻找本地的 hosts 文件再去寻找缓存下来的域名, 最后去上游dns 服务器寻找。
    继续阅读

    Google ADs

    除非另有声明,本站文章遵循知识共享署名-非商业性使用 2.5 中国大陆许可协议。 Copyright © 2008-2012 99288.NET.CN.