• linux基础Samba服务和nginx服务


    一.Samba服务

    1.准备环境:iptables -F:关闭防火墙

    #systemctl disable firewalld:开机默认关闭

    #systemctl stop firewalld:立即关闭

    #systemctl status firewalld:查看

    2.安装软件包:yum install samba -y

    3.修改配置文件

    /etc/samba/smb.conf

    [public]

    comment = Public Stuff

    path = /share

    public = yes

    writable = no

    printable = no

    write list = user1,user2

    4.启动服务:systemctl restart smb

    5.测试

    映射网络驱动

    \服务端的ip用户名----------》登录到永固的家目录下

    \服务端的ippulic-----------》登录到共享目录

    补充:清除windows缓存:net use * / del

    二.nginx服务

    1.准备环境:iptables -F:关闭防火墙

    #systemctl disable firewalld:开机默认关闭

    #systemctl stop firewalld:立即关闭

    #systemctl status firewalld:查看

    2.安装软件包

    二进制方式安装:先安装yum install epel-releasr -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.修改配置文件

    4.启动服务

    #/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 重新加载配置文件

     

  • 相关阅读:
    单位根反演
    安卓第十三天笔记-服务(Service)
    安卓第十二天笔记-广播
    安卓第十一天笔记-Intent与inter-filter配置
    安卓第十天笔记-fragment
    安卓第九天笔记-Activity
    安卓第八天笔记--网络编程二
    安卓第七天笔记--网络编程一
    安卓第六天笔记--ListView
    安卓第五天笔记-对话框
  • 原文地址:https://www.cnblogs.com/Vee-Wang/p/6926278.html
Copyright © 2020-2023  润新知