Ubuntu Server安全Webserver搭建流程
之前整过CentOS。整了Ubuntu才发现,Ubuntu简单多了~~不知道性能相比又怎样。
以Ubtuntu 14.04为例。记录一下搭建流程。
一、SSHserver
第一件事当然是ssh,默认安装后vi /etc/ssh/sshd_config。改动配置文件。
改动/etc/hosts.allow
sshd: 192.168.1. , 192.168.0. : allow
改动/etc/hosts.deny
sshd : ALL
二、系统更新
先更新源,用以Trusty Tahr (14.04)为例,其它版本号看配置生成器
deb http://mirrors.ustc.edu.cn/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse
再更新apt-get
sudo apt-get update
sudo apt-get upgrade
然后更新系统
sudo apt-get install update
三、Samba网上邻居安装
1. 安装 apt-get install samba
2.为samba创建ubuntu系统已经存在的用户somebody:
smbpasswd -a somebody
然后会提示你输入password,这是訪问网上邻居目录的password。
3.改动配置文件:
cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
vi /etc/samba/smb.conf
在其后添加共享文件夹:
[share]path = /home/somebody/samba_shareavailable = yes browseable = yes public = no writable = yes
4. 重新启动samba就能够像windows一样訪问
/etc/init.d/samba restart
四、安装apache2
sudo apt-get install apache2
装好后訪问http://localhost就能够看到“It Works!”
apache2配置文件在/etc/apache2/apache2.conf,web文件夹在/var/www/html
默认用户是www-data。定义在./envvars文件里
其它配置文件在:./sites-enabled/*.conf
转载于:https://www.cnblogs.com/zfyouxi/p/5262829.html
Ubuntu Server安全Webserver搭建流程相关推荐
- 2012系统如何搭建pptp服务器,ubuntu server 12.04 搭建 pptp 服务器
ubuntu server 12.04 搭建 pptp 服务器 blog 归档 运维 Linux pptp 前几天把pptp服务器搭上了, xen的vps就这点好处, 想怎么搞就怎么搞, 虽说贵了点. ...
- Ubuntu Server 12.04 搭建 hadoop 集群版环境——基于VirtualBox
1 . 下载和安装Oracle VM VitualBox http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/i ...
- ubuntu server命令行搭建虚拟专用网
问题: 在做一个国外的开源项目,需要用到很多 ubuntu 上特定版本的应用,由于国内墙的问题,导致Ubuntu 14.04在需要添加一些国外的库的时候(add-apt-repository ppa: ...
- 在虚拟机中安装Ubuntu Server 15.04
学Linux,上红联! 红联Linux门户|Linux通用技术|Linux发行版技术|Linux企业应用|Linux实验室|红联Linux论坛 Linux系统教程 Linux入门 Linux管理 Li ...
- 树莓派64位系统_树莓派4b+Ubuntu server+Nextcloud搭建私人云盘(1):准备系统
最近剁手买了一个4G版本的树莓派4b,并配了64g tf卡.我打算用它来搭建一个自己的私人服务器. 需求:树莓派4b+一部本地电脑+网线+路由器+一部有公网ip的云主机 首先,我们先到官方下载Ubun ...
- 从零开始一步一步搭建Ubuntu Server服务器、修改数据源、安装Docker、配置镜像加速器、Compose部署Gitlab服务
场景 最终目的是使用Docker Compose部署一个Gitlab服务. 效果 注: 博客: https://blog.csdn.net/badao_liumang_qizhi 关注公众号 霸道的程 ...
- 在Ubuntu Server 12.04 LTS上搭建可远程访问的Postgresql 9.1环境
1. 搭建Ubuntu Server 12.04 LTS 参看博文:尝鲜Ubuntu Server 12.04 LTS 注:安装方式中选择了Postgresql数据库服务器安装 2. 搭建Postgr ...
- Ubuntu Server搭建FTP服务器(2) --本地用户FTP服务器架设
Ubuntu Server搭建FTP服务器(2) --本地用户FTP服务器架设 参考:ubuntu中文wiki百科,网址:wiki.ubuntu.org.cn 环境:Ubuntu 9.04 Serve ...
- 控制台服务编写 Linux,一步步搭建ubuntu server console(控制台,字符模式)开发环境...
在我们安装完ubuntu server之后,这个系统还不算完善,因为他缺少很多重要的软件及包的支持. 下面,我以ubuntu 13.04的服务器开发环境搭建作为例子来介绍一下我们如何使用ubuntu搭 ...
最新文章
- 实战:一次失败的WEB攻击试验,欢迎高手补充
- 每日一皮:男性同胞,是时候反击了!
- 并发工具类(四)两个线程进行数据交换的Exchanger
- the Differences between abstract class interface in C#接口和抽象类的区别
- Quartus II 现有各版本之差异(方便选择), 以及 破解文件
- 【hibernate merge】session1.merge(T entity)方法的含义和update方法的区别
- 堂堂小米手表竟比不上小天才电话手表?不支持视频和拍照...
- 2018年EMUI系统能力分论坛来啦
- Luogu P1120 小木棍 [数据加强版]
- Node.js 0.8.20 稳定版发布
- 教你复制百度文库中的内容
- python验证手机号_Python验证手机号码
- 高中计算机生涯规划,计算机职业生涯规划书
- JUCE学习笔记06-音频输出基础(正弦波)
- 2019 年各地移动 APT事件总结
- 酞菁-氧化石墨烯(NiPc- NHCO-EGO),复合酞菁材料齐岳生物供应
- latex 插图 上下放_专辑插图中上下文中的文本
- 压六类双绞线网线水晶头,
- AutoIt 快速入门指南
- 计算机专业英语动名词句子,40句英文写作开头表达+五类加分句型