zoukankan      html  css  js  c++  java
  • 9、Linux基础(五)

    一 Samba服务

    1 准备环境
    =====>part1:
    iptables -F
    #systemctl disable firewalld #开机默认关闭
    #systemctl stop firewalld #立即关闭
    #systemctl status firewalld

    setenforce 0
    #/etc/sysconfig/selinux
    #SELINUX=disabled
    =====>part2:
    配置ip

    2 安装软件包
    yum install samba -y
    3 修改配置文件
    /etc/samba/smb.conf
    [public]
    comment = Public Stuff
    path = /share
    public = yes
    writable = no
    printable = no
    write list = alex,lili


    4 启动服务
    systemctl restart smb

    5 测试
    映射网络驱动
    \服务端的ip用户名 --------》登录到用户的家目录下
    \服务端的ippublic --------》登录到共享目录


    补充
    net use #查看
    net use * /del #清除

    6. 掌握windows客户端的访问方式

    7.掌握Linux客户端的访问方式

    二 nginx服务

    1 准备环境
    =====>part1:
    iptables -F
    #systemctl disable firewalld #开机默认关闭
    #systemctl stop firewalld #立即关闭
    #systemctl status firewalld

    setenforce 0
    #/etc/sysconfig/selinux
    #SELINUX=disabled
    =====>part2:
    配置ip

    2 安装软件包
    二进制方式安装
    yum install epel-release -y
    yum install nginx -y
    源码安装
    yum gcc-* glibc-* make libtool ncurse-devel pcre -y

    tar xvf nginx.....tar.gz
    cd nginx/
    #./configure --prefix=/usr/local/nginx --with-pcre=/usr/lib64/
    ./configure --prefix=/usr/local/nginx --without-http_rewrite_module
    make
    make install

    3 启动服务
    /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    #/usr/local/nginx/sbin/nginx -s stop 关闭
    #/usr/local/nginx/sbin/nginx -s reload 重新加载配置文件

  • 相关阅读:
    redis搭建集群
    redis搭建主从
    redis与python交互
    redis数据操作篇
    redis配置篇
    node 淘宝镜像
    java 深copy
    springmvc配置访问静态文件
    centos 启动 oracle
    List 分隔多次执行 且在同一个事物当中
  • 原文地址:https://www.cnblogs.com/f1443526266/p/6924546.html
Copyright © 2011-2022 走看看