公告:

centos 7 &WDCPV3 安装过程

作者:star0312 / 时间:9年前 (2016/04/21) / 分类:未命名 / 阅读:1831 / 评论:0
1、安装Centos操作系统
2、修改root密码
3、添加用户star,设置star密码
 
adduser star
passwd star
 
4、挂在分区
fdisk -l


[root@localhost /]# fdisk -l
Disk /dev/sdb: 53.7 GB, 53687091200 bytes, 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0xfa44984c
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb4              63   104856254    52428096   8e  Linux LVM
Disk /dev/sda: 10.7 GB, 10737418240 bytes, 20971520 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000aea04
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     1026047      512000   83  Linux
/dev/sda2         1026048    20971519     9972736   8e  Linux LVM
Disk /dev/mapper/centos-root: 9093 MB, 9093251072 bytes, 17760256 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/centos-swap: 1073 MB, 1073741824 bytes, 2097152 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


sda现在已经挂在在使用的分区,现在需要把sdb挂在到系统中。

现在计划把sdb分区挂载到/www/   目录,意思是所有的网站材料都保存在第二个分区.

在系统根目录 新建www目录:  mkdir www

挂载sdb4到www

mount /dev/sdb4 /www

注:卸载分区命令:umount /www

 df -hal

查看挂载情况

写入fstab:特别重要,否则,服务器重启后挂载分区就没了

echo "/dev/sdb4 /www ext3 defaults 1 2" >> /etc/fstab


卸载不用的组件!!!!进行必要的优化,见其他文章


5、更新Centos系统

yum -y update

等着,一直等着,要有耐心

6、安装WDCP V3

具体教程:http://www.wdlinux.cn/bbs/thread-52870-1-1.html

一定看好了,按照自己的需要安装.

如果系统没有wget,需要先安装

yum install wget

全新安装环境全新后台(v3全新完整版)
wget http://dl.wdlinux.cn/files/lanmp_v3.tar.gz
tar zxvf lanmp_v3.tar.gz
sh lanmp.sh

7、请先设置防火墙例外端口在设置下一步的端口修改,否则会直接连不上。

firewall-cmd --permanent --add-port=6666/tcp 

firewall-cmd --permanent --add-port=80/tcp 

firewall-cmd --permanent --add-port=8888/tcp

firewall-cmd --permanent --add-port=2121/tcp

firewall-cmd --permanent --add-port=9990-10000/tcp

firewall-cmd--reload

防火墙其他用法:

获取 firewalld 状态  firewall-cmd --state

列出所有开放端口:firewall-cmd --list-all



7、相关设置

修改ssh端口为6666;

禁止root ssh登录;

修改wdcp端口为8888;

修改ftp端口为2121;

ftp被动端口

禁ping;

 

安装完检查v3的运行情况


netstat -lnpt 查看是否有8080的端口和wdcp的进程

service wdcp restart 可操作重启

卸载方法
rm -fr /www/wdlinux
reboot



 

  • 我的QQ二维码
  • QQ群
  • 我的微信二维码
  • 微信公众号

没有评论,留下你的印记,证明你来过。


发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。