博客
关于我
linux--服务配置
阅读量:581 次
发布时间:2019-03-11

本文共 3310 字,大约阅读时间需要 11 分钟。

Apache基础服务搭建

软件名:Apache软件包名:httpd配置文件:/etc/httpd/conf/httpd.conf默认根目录(Document:/var/www/html)首页文件:index.html

BBS论坛

LAMP环境,搭建简单bbs论坛    1.配置yum源,联通网络    2.安装相对应软件包:httpd、mariadb,mariadb-server,php,php-mysql    3.开启httpd服务,并让服务开机自启,【关闭防火墙,或者让防火墙允许该服务通过】        [root@localhost yum.repos.d]# systemctl start httpd        [root@localhost yum.repos.d]# systemctl enable httpd        [root@localhost yum.repos.d]# firewall-cmd --permanent --add-service=http        [root@localhost yum.repos.d]# firewall-cmd --reload         或者直接关闭防火墙:        [root@localhost yum.repos.d]# systemctl stop firewalld        [root@localhost yum.repos.d]# systemctl disable firewalld        #查看服务状态:           21  systemctl status httpd               22  systemctl status firewalld    4.开启mysql服务,让mysql服务开机自启,并设置mysql服务密码        #mariadb服务启动               31  systemctl start mysql               32  systemctl start mariadb               33  systemctl enable mariadb               34  systemctl status mariadb        #设置mysql服务密码;            mysql_secure_installation        #准备安装文件,拷贝至/var/www/html               44  cp -p Discuz_X2.5_SC_UTF8.zip /var/www/html/               45  cd /var/www/html/               47  unzip Discuz_X2.5_SC_UTF8.zip                49  mv upload/ bbs               51  chmod 777 bbs/ -R               52  setenforce 0               54  systemctl restart httpd        #准备完成后,在浏览器中输入http://127.0.0.1/bbs开始安装bbs论坛

仅下载FTP服务器搭建

FTP(file Transfer Protocol)文件传输协议#常见客户端:    浏览器、ftp命令,lftp,cuteftp#常用服务端软件    IIS、Serv-U,wu-Ftpd,vsftpd,proftpd#部署FTP服务;    软件名:vsftpd    服务名:vsftpd    配置文件:/etc/vsftpd/vsftpd.conf    匿名用户的默认共享目录:/var/ftp/pub    #用户类型        #匿名用户            ftp/anonymous        #本地用户            passwd,shadow        #虚拟用户            使用独立的账号/密码数据文件#服务端配置    1.安装软件包   vsftpd    2.启动服务/防火墙设置    3.配置服务    4.重启服务进行访问        """           77  yum install vsftpd -y           78  vim /etc/vsftpd/vsftpd.conf            79  cp anaconda-ks.cfg initial-setup-ks.cfg /var/ftp/pub/           80  systemctl restart vsftpd           81  systemctl enable vsftpd           82  systemctl status vsftpd        """#客户端配置    使用lftp客户端        安装lftp客户端软件        进行访问ftp服务器            lftp 127.0.0.1

配置NFS服务

NFS 网络文件系统用于类unix系统之间进行文件共享#服务端配置    1.关闭防火墙    2.安装nfs服务    nfs-utils    3.启动服务  nfs-server    4.准备共享目录    3.配置nfs服务    5.重启服务共享完成 /etc/exports#客户端配置    1.查看共享是否成功        [root@client ~]# showmount -e 192.168.0.3        Export list for 192.168.0.3:        /share *        [root@client ~]#     2.创建挂载点,并进行挂载           92  mkdir /mnt/share           93  mount -t nfs 192.168.0.3:/share /mnt/share/           94  df -hT    3.建议永久挂载:        [root@client ~]# cat /etc/fstab         #        # /etc/fstab        # Created by anaconda on Fri Aug 31 14:36:12 2018        #        # Accessible filesystems, by reference, are maintained under '/dev/disk'        # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info        #        /dev/mapper/rhel-root   /                       xfs     defaults        1 1        UUID=e28868e0-1e34-4acb-8540-9a753c96add4 /boot                   xfs     defaults        1 2        /dev/mapper/rhel-swap   swap                    swap    defaults        0 0        192.168.0.3:/share    /mnt/share    nfs    defaults    0 0         [root@client ~]#     4.创建文件可以使用

转载地址:http://fpztz.baihongyu.com/

你可能感兴趣的文章
mysql5.7 for windows_MySQL 5.7 for Windows 解压缩版配置安装
查看>>
Webpack 基本环境搭建
查看>>
mysql5.7 安装版 表不能输入汉字解决方案
查看>>
MySQL5.7.18主从复制搭建(一主一从)
查看>>
MySQL5.7.19-win64安装启动
查看>>
mysql5.7.19安装图解_mysql5.7.19 winx64解压缩版安装配置教程
查看>>
MySQL5.7.37windows解压版的安装使用
查看>>
mysql5.7免费下载地址
查看>>
mysql5.7命令总结
查看>>
mysql5.7安装
查看>>
mysql5.7性能调优my.ini
查看>>
MySQL5.7新增Performance Schema表
查看>>
Mysql5.7深入学习 1.MySQL 5.7 中的新增功能
查看>>
Webpack 之 basic chunk graph
查看>>
Mysql5.7版本单机版my.cnf配置文件
查看>>
mysql5.7的安装和Navicat的安装
查看>>
mysql5.7示例数据库_Linux MySQL5.7多实例数据库配置
查看>>
Mysql8 数据库安装及主从配置 | Spring Cloud 2
查看>>
mysql8 配置文件配置group 问题 sql语句group不能使用报错解决 mysql8.X版本的my.cnf配置文件 my.cnf文件 能够使用的my.cnf配置文件
查看>>
MySQL8.0.29启动报错Different lower_case_table_names settings for server (‘0‘) and data dictionary (‘1‘)
查看>>