随笔分类 -  Linux

1 2 下一页
服务器被植入挖矿木马的心酸过程
摘要:转自 https://juejin.im/post/5aa0cc476fb9a028d82b5695最近打开服务变得很慢,然后 CPU,内存占用有达到了100%,打开网站都很慢,这个肯定很反常的,平时cpu不会达到那么高,因此netstat -ntlp 准备看看端口占用是不是有什么异常,有的会看到c 阅读全文
posted @ 2019-04-02 10:48 Rosepotato 阅读(2227) 评论(0) 推荐(0)
centos 7 安装 配置 openvpn 客户端
摘要:安装成功后,客户端不需要特别配置,只要将服务器上生成的证书和客户端配置文件拷贝到客户端配置目录中。 下面是所需的文件列表: 客户端配置文件client.ovpn: 将上面的文件,都上传到/etc/openvpn/目录下,然后日志输出到/var/log/openvpn.log。 后台启动命令(注意对应 阅读全文
posted @ 2019-02-13 11:34 Rosepotato 阅读(22) 评论(0) 推荐(0)
Linux 技巧:让进程在后台可靠运行的几种方法
摘要:我们经常会碰到这样的问题,用 telnet/ssh 登录了远程的 Linux 服务器,运行了一些耗时较长的任务, 结果却由于网络的不稳定导致任务中途失败。如何让命令提交后不受本地关闭终端窗口/网络断开连接的干扰呢?下面举了一些例子, 您可以针对不同的场景选择不同的方式来处理这个问题。 nohup/s 阅读全文
posted @ 2018-06-19 09:49 Rosepotato 阅读(163) 评论(0) 推荐(0)
How do I use screen on the Linux systems?
摘要:Scope The screen utility provides a way to run a command on a Linux system, detach from it, and then reattach later. This is particularly handy if you 阅读全文
posted @ 2018-01-04 09:59 Rosepotato 阅读(180) 评论(0) 推荐(0)
linux磁盘分区fdisk命令详解
摘要:1、什么是分区? 分区是将一个硬盘驱动器分成若干个逻辑驱动器,分区是把硬盘连续的区块当做一个独立的磁硬使用。分区表是一个硬盘分区的索引,分区的信息都会写进分区表。2、为什么要有多个分区? 防止数据丢失:如果系统只有一个分区,那么这个分区损坏,用户将会丢失所的有数据。 增加磁盘空间使用效率:可以用不同 阅读全文
posted @ 2018-01-02 16:58 Rosepotato 阅读(85676) 评论(2) 推荐(3)
Linux使用fdisk进行磁盘管理
摘要:Fdisk分区工具 1. Overview *Fdisk是IBM的老牌分区工具,支持绝大多数操作系统,几乎所有的Linux操作系统都默认装有fdisk;包括在Linux Rescue模式下依然能够使用。 *fdisk是基于MBR的分区工具(是当年IMB设计给PC机来使用的),所以如果需要使用GPT, 阅读全文
posted @ 2018-01-02 16:57 Rosepotato 阅读(960) 评论(0) 推荐(1)
The Beginner’s Guide to iptables, the Linux Firewall
摘要:Iptables is an extremely flexible firewall utility built for Linux operating systems. Whether you’re a novice Linux geek or a system administrator, th 阅读全文
posted @ 2016-10-13 10:31 Rosepotato 阅读(204) 评论(0) 推荐(0)
How to fix the issue that GEM_HOME and/or GEM_PATH not set issue for rvm in mac version 10.12
摘要:add following lines below "export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting" into ~/.profile export GEM_HOME="/Users/spond/.rvm/gems 阅读全文
posted @ 2016-10-12 15:29 Rosepotato 阅读(618) 评论(1) 推荐(0)
NPM, BOWER, GIT, AND BASH PROXY CONFIGURATIONS
摘要:Sources: http://digitaldrummerj.me/proxy-configurations/ When you are using npm, bower, and git behind a proxy server you have to do a little bit of c 阅读全文
posted @ 2016-09-14 11:15 Rosepotato 阅读(315) 评论(0) 推荐(0)
UNIX / Linux: 2 Ways to Add Swap Space Using dd, mkswap and swapon
摘要:UNIX / Linux: 2 Ways to Add Swap Space Using dd, mkswap and swapon by RAMESH NATARAJAN on AUGUST 18, 2010 UNIX / Linux: 2 Ways to Add Swap Space Using 阅读全文
posted @ 2016-05-05 10:21 Rosepotato 阅读(225) 评论(0) 推荐(0)
How to install Node.js on Linux
摘要:How to install Node.js on LinuxPosted onNovember 13, 2015byDan Nanni Leave a commentQuestion:How can I install Node.js on [insert your Linux distro]?N... 阅读全文
posted @ 2015-12-15 16:37 Rosepotato 阅读(641) 评论(0) 推荐(0)
How to use 'crontab' command on bitnami
摘要:You can edit the cron file using the following command:$ sudo crontab -eYou can add a new line like the following:30 8 * * * echo "test" >> /tmp/testI... 阅读全文
posted @ 2015-10-29 14:59 Rosepotato 阅读(239) 评论(0) 推荐(0)
linux delete files older than 3 days
摘要:4 down vote accepted This is easy enough (although note that this goes by a modification time more than 3 days ago since a creation time is only avail... 阅读全文
posted @ 2014-11-05 15:47 Rosepotato 阅读(267) 评论(0) 推荐(0)
5 commands to check memory usage on Linux
摘要:Memory UsageOn linux, there are commands for almost everything, because the gui might not be always available. When working on servers only shell acce... 阅读全文
posted @ 2014-11-05 10:39 Rosepotato 阅读(503) 评论(0) 推荐(0)
10 Useful du (Disk Usage) Commands to Find Disk Usage of Files and Directories
摘要:The Linux “du” (Disk Usage) is a standard Unix/Linux command, used to check the information of disk usage of files and directories on a machine. The d... 阅读全文
posted @ 2014-10-28 09:52 Rosepotato 阅读(358) 评论(0) 推荐(0)
12 Useful “df” Commands to Check Disk Space in Linux
摘要:On the internet you will find plenty of tools for checking disk space utilization in Linux. However, Linux has a strong built in utility called ‘df‘. ... 阅读全文
posted @ 2014-10-28 09:46 Rosepotato 阅读(567) 评论(0) 推荐(0)
LinuxShell算术运算
摘要:Bash shell 的算术运算有四种方式:1:使用 expr 外部程式加法 r=`expr 4 + 5`echo $r注意! '4' '+' '5' 这三者之间要有空白r=`expr 4 * 5` #错误乘法 r=`expr 4 \* 5`2:使用 $(( ))r=$(( 4 + 5 ))echo... 阅读全文
posted @ 2014-09-24 10:58 Rosepotato 阅读(194) 评论(0) 推荐(0)
linux shell 逻辑运算符、逻辑表达式详解
摘要:shell的逻辑运算符 涉及有以下几种类型,因此只要适当选择,可以解决我们很多复杂的判断,达到事半功倍效果。一、逻辑运算符逻辑卷标 表示意思 1.关于档案与目录的侦测逻辑卷标!-f常用!侦测『档案』是否存在 eg: if [ -f filename ]-d常用!侦测『目录』是否存在-b侦测是否为一个... 阅读全文
posted @ 2014-08-20 10:30 Rosepotato 阅读(244) 评论(0) 推荐(0)
Save output to a text file from Mac terminal
摘要:Simply with output redirection:system_profiler > file.txtBasically, this will take the output of system_profiler and save it to the file file.txt. The... 阅读全文
posted @ 2014-08-20 10:29 Rosepotato 阅读(288) 评论(0) 推荐(0)
使用ssh公钥密钥自动登陆linux服务器
摘要:转自:http://7056824.blog.51cto.com/69854/403669作为一名 linux 管理员,在多台 Linux 服务器上登陆进行远程操作是每天工作的一部分。但随着服务器的增多,每次登陆,系统都会提示输入用户名和密码,频繁的输入用户名和密码是一件让人很烦的事 情。也许有人说... 阅读全文
posted @ 2014-08-06 11:09 Rosepotato 阅读(288) 评论(0) 推荐(0)

1 2 下一页