zoukankan      html  css  js  c++  java
  • 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 重新加载配置文件

     

  • 相关阅读:
    Codefores 506A Mr. Kitayuta, the Treasure Hunter( DP && dfs )
    Goals ? Ideals ?
    HDU 5159 Card( 计数 期望 )
    HDU 1387 Team Queue( 单向链表 )
    HDU 1709 The Balance( DP )
    HDU 2152 Fruit( DP )
    HDU 1398 Square Coins(DP)
    HDU 5155 Harry And Magic Box( DP )
    HDU 3571 N-dimensional Sphere( 高斯消元+ 同余 )
    最大连续自序列
  • 原文地址:https://www.cnblogs.com/Vee-Wang/p/6926278.html
Copyright © 2011-2022 走看看