Linux
d3y1
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
架构之LVS(Linux Virtual Server)
Linux Virtual Server (LVS) 是 Linux 系统上的高性能四层负载均衡解决方案。LVS 由章文嵩于 1998 年开发,自 Linux 2.4 版本起成为 Linux 内核的一部分,通过 IP 负载均衡技术提供可扩展的网络服务。核心特性四层负载均衡:在传输层(TCP/UDP)工作内核级实现:高性能,开销极小多种工作模式:NAT、隧道和直接路由灵活的调度:多种负载分配算法高可用性:支持 keepalived 故障转移开源:免费且是 Linux 内核的一部分原创 2026-01-31 13:29:22 · 1264 阅读 · 0 评论 -
eBPF综合指南
eBPF(Extended Berkeley Packet Filter) 是一项革命性技术,它允许在 Linux 内核中安全、高效、可编程地执行沙盒程序,而无需开发内核模块或修改内核源代码。eBPF 使开发者能够动态扩展内核功能,提供前所未有的可观测性、安全性和网络功能,同时通过验证过程确保安全性。核心特性安全性:程序在执行前经过验证,确保不会导致内核崩溃高效性:通过 JIT(即时编译)编译为本地机器码,实现接近原生的性能可扩展性:可挂载到各种内核子系统,无需修改内核代码可移植性:通过 C原创 2026-01-29 12:54:23 · 1037 阅读 · 0 评论 -
VirtualBox: CentOS7.5 install VBoxLinuxAdditions
VirtualBox: CentOS7.5 install VBoxLinuxAdditions# yum install gcc# yum install gcc-c++// 版本要根据具体情况# yum install kernel-devel-3.10.0-862.el7.x86_64# reboot// 在桌面上打开增强功能包光盘,将VBoxLinuxAdditions....原创 2018-11-21 08:08:31 · 367 阅读 · 0 评论 -
Command: 端口进程相关
端口进程相关Win10端口netstat -aon | findstr "端口号"进程根据进程号查看进程信息tasklist|findstr "15560"taskkill /pid 15560 /f成功: 已终止 PID 为 15560 的进程。Linux端口netstat -anl | grep "端口号"netstat -anp | grep 8282lso...原创 2018-11-11 16:58:47 · 369 阅读 · 0 评论 -
Problem: xxx is not in the sudoers file. This incident will be reported
ProblemThere is a problem when user dijk execute command below:$ sudo usermod -aG vboxsf dijkor$ sudo gpasswd -a dijk vboxsfProblem: “dijk is not in the sudoers file. This incident will be rep...原创 2018-11-15 23:44:36 · 386 阅读 · 0 评论 -
Problem: MySQL: -bash: mysql: command not found
ProblemProblem: MySQL: -bash: mysql: command not foundOn CentOS, MySQL works fine, but can not use “mysql” command in terminal, and says “-bash: mysql: command not found”.Solution# cd /usr/local/...原创 2018-11-15 22:54:51 · 264 阅读 · 0 评论 -
Problem: WARN bitronix.tm.Configuration - cannot get this JVM unique ID. Make sure it is configured
Problem[main] WARN bitronix.tm.Configuration - cannot get this JVM unique ID. Make sure it is configured and you only use ASCII characters. Will use IP address instead (unsafe for production usage!)...原创 2018-11-15 22:22:18 · 890 阅读 · 0 评论 -
CentOS: Command: 删除多余内核
CentOS 删除多余内核# 查看当前系统中的kernel# rpm -qa | grep kernel# 删除不需要的kernel[kernel devel...]# yum remove kernel-...# 安装需要的内核# yum install kernel-......原创 2018-11-15 22:00:23 · 280 阅读 · 0 评论 -
Problem: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took...
ProblemWARNING [main] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [1,139,942] milliseconds.So...原创 2018-11-15 21:54:35 · 1454 阅读 · 0 评论 -
MySQL: 数据库拒绝访问[远程连接]
MySQL: 数据库拒绝访问[远程连接]登录MySQL$ /usr/local/mysql/bin/mysql -u root -pmysql> user mysql;mysql> select host from user;mysql> update user set host ='%' where user ='root';mysql> exit;重...原创 2018-11-11 18:31:46 · 1142 阅读 · 0 评论 -
Command: 查看log日志
查看log日志命令cat catalina.outortail -5000f catalina.out原创 2018-11-11 18:19:08 · 883 阅读 · 0 评论 -
MySQL: 设置表名不区分大小写
MySQL: 设置表名不区分大小写vi修改/etc/my.cnf# vi /etc/my.cnf 在[mysqld]段后附加一句:lower_case_table_names=1如:[mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock lower_case_table_names=1重启MySQL...原创 2018-11-11 18:16:01 · 288 阅读 · 0 评论 -
MySQL: 忘记root密码: skip-grant-tables
MySQL 忘记root密码修改MySQL的登录设置# vi /etc/my.cnf 在[mysqld]段后附加一句:skip-grant-tables如:[mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock skip-grant-tables 重启MySQL登录并修改MySQL的root密码# ...原创 2018-11-11 18:07:17 · 314 阅读 · 0 评论 -
MySQL: CentOS6.8: ERROR 1044 (42000)
MySQL: ERROR 1044 (42000)现象mysql> use mysql;ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'如果使用“mysql -uroot -p”登陆会报错,即使密码正确也不能登录,而且发现,直接用“mysql -uroot”不输入密码也可以登...原创 2018-11-11 17:58:41 · 458 阅读 · 0 评论 -
Command: SecureCRT: 压缩打包、下载、上传命令
SecureCRT 压缩打包、下载、上传命令压缩打包tar -czvf 压缩后文件名.tar.gz(含路径) 要压缩的文件名(含路径)如 tar -czvf xxx.tar.gz xxx/ xxx1 xxx2 xxx3 多个待打包文件以空格分隔下载sz 压缩后文件名.tar.gz(含路径)上传rz 直接回车 -> 出现选择文件的弹窗...原创 2018-11-11 17:23:34 · 1313 阅读 · 0 评论 -
Command: 查看linux系统版本信息
查看linux系统版本信息(Oracle Linux、Centos Linux、Redhat Linux、Debian、Ubuntu)查看Linux系统版本的命令(3种方法)1、cat /etc/issue,此命令也适用于所有的Linux发行版[root@S-CentOS home]# cat /etc/issueCentOS release 6.5 (Final)Kernel \r o...原创 2018-11-11 17:08:37 · 763 阅读 · 0 评论 -
CentOS: 查看ip地址
CentOS: 查看ip地址# ip addror# ifconfig原创 2018-11-13 00:09:44 · 416 阅读 · 0 评论 -
CentOS: install jdk1.8
CentOS: install jdk1.8DownloadDecompress# mkdir /usr/local/java/// Decompress to '/usr/local/java/' directory# tar -zxvf jdk-8u151-linux-x64.tar.gz -C /usr/local/java/Environment variable# ...原创 2018-11-21 08:33:05 · 311 阅读 · 0 评论 -
Linux: 修改指定目录下所有文件的权限
修改指定目录下所有文件的权限// 修改指定目录下所有文件的权限为全体可读、可修改、可执行# chmod -R 777 apache-tomcat-8.5.20/原创 2018-11-21 08:39:37 · 2174 阅读 · 0 评论 -
Command: Linux: disk space
Command: disk space[root@abc ~]# df -hFilesystem Size Used Avail Use% Mounted on/dev/vda1 40G 2.2G 36G 6% /devtmpfs 1.9G 0 1.9G 0% /devtmpfs 1.9G 0 ...原创 2018-12-15 22:30:43 · 421 阅读 · 0 评论 -
Alpine: get system info
Alpine: get system infolocalhost:~# cat /proc/versionLinux version 4.14.85-0-virt (buildozer@build-3-8-x86_64) (gcc version 6.4.0 (Alpine 6.4.0)) #1-Alpine SMP Tue Dec 4 17:35:30 UTC 2018localhost...原创 2018-12-16 13:38:21 · 565 阅读 · 0 评论 -
Problem: Alpine: apk add docker ERROR: unsatisfiable constraints
Problemapk add docker ERROR: unsatisfiable constraints:...Solution// update repositoriesvi /etc/apk/repositories#/media/cdrom/apkshttp://mirrors.tuna.tsinghua.edu.cn/alpine/v3.8/mainhttp://...原创 2018-12-16 13:44:22 · 5632 阅读 · 2 评论 -
Problem: Docker: Is docker daemon running?
ProblemIs docker daemon running?Solution// start docker daemon# dockerd原创 2018-12-16 14:31:53 · 855 阅读 · 0 评论 -
Alpine: install docker compose
Alpine install docker compose// seems there is a problem with Alpine 3.8.1 virtual, can not work!# apk add curl# curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-...原创 2018-12-16 14:44:40 · 718 阅读 · 0 评论 -
Alpine: change current shell
Alpine change current shell// change current shell# vi /etc/passwd# change by dijkroot:x:0:0:root:/root:/bin/ash#root:x:0:0:root:/root:/bin/bash// see current shell# echo $0or# echo $SHELL...原创 2018-12-16 14:49:17 · 1002 阅读 · 0 评论 -
Alpine: install zsh and oh-my-zsh
Alpine: install zsh and oh-my-zsh# cat /etc/shells# valid login shells/bin/sh/bin/ash/bin/bash# apk add zsh# cat /etc/shells# valid login shells/bin/sh/bin/ash/bin/bash/bin/zsh// chang...原创 2018-12-16 14:53:44 · 1899 阅读 · 0 评论 -
Linux: see file size command
Linux: see file size command// see file size# ls -lht原创 2018-12-16 15:14:44 · 472 阅读 · 0 评论 -
VirtualBox: Installing Alpine 3.8.1
VirtualBox Installing Alpine 3.8.1Install启动虚拟机,用光盘启动,然后用root登录AlpineLinux,没有密码敲入命令setup-alpine跟随命令行向导一步一步执行在选择安装源时,敲入“f”让系统自己寻找一个最快的源在选择安装目标盘时,敲入“sda”在选择分区类型时,敲入“sys”装完了,退出光盘,重启虚拟机Confi...原创 2018-12-10 20:28:42 · 641 阅读 · 0 评论 -
Alpine: install docker
Alpine install dockerInstall docker// 安装docker,并使其服务端随系统启动# apk add docker# ln -s /etc/init.d/docker /etc/runlevels/default/dockerDocker mirror acceleration// Docker国内镜像加速# touch /etc/docker...原创 2018-12-10 20:39:41 · 728 阅读 · 0 评论 -
CentOS: install git
CentOS install git// install gityum –y install git原创 2018-12-17 00:03:14 · 288 阅读 · 0 评论 -
Alpine: install SDKMAN!
Alpine install SDKMAN!InstallInstalling SDKMAN! on UNIX-like platforms is as easy as ever. SDKMAN! installs smoothly on Mac OSX, Linux, Cygwin, Solaris and FreeBSD. We also support Bash and ZSH she...原创 2018-12-10 20:52:13 · 966 阅读 · 0 评论 -
Ubuntu: Command: 设置root密码
Ubuntu设置root密码终端输入sudo passwd root,在[sudo] password for landry:后输入当前用户的密码当前用户密码验证通过后输入需要设置的root超级管理员账户密码Enter new UNIX password:验证输入的密码Retype new UNIX password:出现passwd: password updated succe...原创 2019-02-19 09:08:53 · 430 阅读 · 0 评论 -
Linux: cat command
About catcat stands for “catenate.” It reads data from files, and outputs their contents. It is the simplest way to display the contents of a file at the command line.Purposes to use cat command under转载 2015-05-28 08:23:25 · 1042 阅读 · 0 评论 -
Linux: netstat command
About netstatThe netstat command is used to print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships.ExamplesList All Ports (both listening and转载 2015-05-21 08:00:39 · 874 阅读 · 0 评论 -
Linux: cut command
About cutRemove or “cut out” sections of each line of a file or files.cut command Syntaxcut OPTION... [FILE]...cut command options-b, --bytes=LIST Select only the bytes specified in LIST.-c, --cha转载 2015-05-28 07:50:59 · 930 阅读 · 0 评论 -
Linux: grep command
About grepgrep prints lines of input matching a specified pattern.grep command Syntaxgrep [OPTIONS] PATTERN [FILE...]Descriptiongrep searches the named input FILEs (or standard input if no files are n转载 2015-05-28 08:05:47 · 857 阅读 · 0 评论 -
Linux: sort command
About sortSorts the lines in a text file.sort command Syntaxsort [OPTION]... [FILE]...sort command options-b, --ignore-leading-blanks Ignore leading blanks.-d, --dictionary-order Consider only b转载 2015-05-28 08:15:43 · 872 阅读 · 0 评论 -
Linux: ps command
About psReports a snapshot of the status of currently running processes.Syntaxps [options]DescriptionOn every UNIX-like operating system, the process status command (ps) displays information about act转载 2015-05-25 07:29:51 · 1220 阅读 · 0 评论 -
Linux: awk command
Awk Introduction and Printing Operations:Awk is a programming language which allows easy manipulation of structured data and the generation of formatted reports. Awk stands for the names of its authors转载 2015-05-25 07:42:08 · 699 阅读 · 0 评论 -
Linux: find command
About findfind searches for files in a directory hierarchy.find command Syntaxfind [-H] [-L] [-P] [-D debugopts] [-Olevel] [path...] [expression]ExamplesFirst, create the following sample empty files转载 2015-05-26 07:59:44 · 771 阅读 · 0 评论
分享