
Linux
文章平均质量分 60
夜古诚
以笔记的形式,总结“前人”的“果实”。部分开放可见 ……
展开
-
基于Nginx、vsftpd的图片服务器
1. 首先需要先安装nginx 和 vsftp,已有教程。2. 配置 nginx.conf :第一处:把第一行的 user root 前面的#去掉,之所以这样做是因为访问权限的问题,不去掉的话,会报Forbidden错误。第二处:新添加一个server,listen的端口还是用默认的8080端口,server_name 是我们的图片服务器ip,将照片传到 /home/ftpuser/www/ 下即可server{ listen 80; server_name 192.原创 2022-04-09 22:56:06 · 235 阅读 · 0 评论 -
Systemd 配置解释
支持 systemd 的软件,安装的时候,会自动在/usr/lib/systemd/system目录添加一个配置文件。如果你想让该软件开机启动,就执行下面的命令(以httpd.service为例)。[root@wtl1992 system]# systemctl enable httpdCreated symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.原创 2022-04-08 10:48:14 · 617 阅读 · 0 评论 -
制作开机内核启动服务 systemd
1. 创建shell脚本 test.sh ,并将脚本放到指定目录(建议 /root/.config 目录)#!/bin/bashwhile [ 2 -gt 1 ]do echo 'ok ...' >> /root/aaa.txt sleep 2sdone2. 创建 mytest.service[Unit]Description=my first service[Service]ExecStart=/bin/bash /root/.config/test.s原创 2022-03-03 22:15:46 · 222 阅读 · 0 评论 -
KerberOS Hadoop 认证安装配置
1. 关闭 selinuxvim /etc/sysconfig/selinux2. 安装 yum 源配置参考https://blog.youkuaiyun.com/Jerry_991/article/details/1189105053. 安装 kerberos 的 server 端(一般找一台单独的机器)yum install -y krb5-ibs krb5-server krb5-workstation(查看 yum list | grep krb 中是否有安装软件)...原创 2022-01-26 15:01:20 · 4244 阅读 · 0 评论 -
ftp 服务安装
1. yum安装 yum install -y vsftpd2. 创建ftp账号 useradd ftp passwd ftp 输入密码:123456 两次3. 配置文件修改:/etc/vsftpd/vsftpd.conf 修改:anonymous_enable=NO 添加:reverse_lookup_enable=NO4.service vsftpd start5.开机启动 vim /etc...原创 2021-07-19 19:16:42 · 178 阅读 · 1 评论 -
虚拟机上安装 Linux 步骤详解
目录前言Linux安装准备VMwareLinux创建虚拟机安装Linux前言目前大数据这个职业很火,相信很多人都在考虑转行学大数据。但是需要系统的去学习才行,不要自己在那里琢磨,非常费时间。怎么去学习大数据,我想你自己会有想法的。那么问题来了,此博客就在虚拟机中安装Linux,做一个详细的步骤。Linux安装准备VMware首先,需要你先在你自己的电脑上...原创 2019-01-26 17:56:28 · 2424 阅读 · 3 评论