-
Linux学习笔记之Django项目部署(CentOS)----进阶篇
所属栏目:[Linux] 日期:2021-02-23 热度:172
p class="title"一、引入 当我们开发好了一个Django项目之后是需要部署到服务器上的,这样才能正式使用这个项目。之前用了一个运行.sh文件的方法让项目得以在后台运行,其实随着学习的深入,这种方法其实是有点low的,下面介绍今天的新方法。 项目的文件中有[详细]
-
Linux学习笔记之Python3的安装以及创建虚拟环境(CentOS)
所属栏目:[Linux] 日期:2021-02-23 热度:172
安装python3 yum?install?openssl-devel?bzip2-devel?expat-devel?gdbm-devel?readline-devel?sqlite-devel?gcc?gcc-c++??openssl-devel #(建议将这些包都装了,避免后面报错) 创建python3的虚拟环境 ? 此时的python默认已经是python3的版本了! 这样,在cen[详细]
-
Linux学习笔记之如何挂载数据盘
所属栏目:[Linux] 日期:2021-02-23 热度:166
p class="title"一、引入 双11在阿里云买了一台服务器(Linux操作系统,版本:CentOS7.04),配置就是20G的系统盘和40G的数据盘,可是问题来了,当系统初始化登录进去之后,输入:free -h命令并不能看到额外买的数据盘,只能看到20G的系统盘,百度了解了一下[详细]
-
Linux学习笔记之基本指令
所属栏目:[Linux] 日期:2021-02-23 热度:130
p class="little_title"1.ll p class="sub_title"注:详细展示当前文件夹下的所有文件及目录? ,与 ls -al 有异曲同工的作用 p class="little_title"2.free -m/-h p class="sub_title"注:-m:显示当前的内存信息,-m表示以MB为单位显示;-h:以人类能读懂的[详细]
-
Linux VMware新添加网络适配器找不到配置文件问题
所属栏目:[Linux] 日期:2021-02-23 热度:160
VMware centos 新添加网卡没有识别,在做 Linux 实验时经常遇到需要双网卡的情况,VMware 新添加网卡后Linux是不会主动创建 ifcfg-eth* 文件的,重启服务器和重启网络服务也不能出现, 解决方法如下 : ifconfig -a 命令是可以查看到 eth* 信息的,但是没有[详细]
-
调用远程主机上的 RMI 服务时抛出 java.rmi.ConnectException: C
所属栏目:[Linux] 日期:2021-02-23 热度:155
最近使用 jmx 遇到一个问题,client/server 同在一台机器上,jmx client能够成功连接 server,如果把 server 移植到另一台机器上192.168.134.128,抛出如下异常: java.net.ConnectException: Connection refused: connect java.rmi.ConnectException: Conne[详细]
-
linux ss 命令
所属栏目:[Linux] 日期:2021-01-28 热度:132
ss 是 Socket Statistics 的缩写 。ss 命令可以用来获取 socket 统计信息,它显示的内容和 netstat 类似。但 ss 的优势在于它能够显示更多更详细的有关 TCP 和连接状态的信息,而且比 netstat 更快。当服务器的 socket 连接数量变得非常大时,无论是使用 net[详细]
-
Linux 内核空间与用户空间
所属栏目:[Linux] 日期:2021-01-27 热度:76
系统调用、软中断和硬件中断。这三种方式每一种都涉及到大量的操作系统知识,所以这里不做展开。 内核空间 -> 用户空间。如下图所示(此图来自互联网):[详细]
-
linux free 命令
所属栏目:[Linux] 日期:2021-01-27 热度:148
$ -h -s Mem 行(第二行)是内存的使用情况。 Swap 行(第三行)是交换空间的使用情况。 total 列显示系统总的可用物理内存和交换空间大[详细]
-
linux dig 命令
所属栏目:[Linux] 日期:2021-01-27 热度:152
$ dig baidu.com /tr tr tdspan style="font-family: Microsoft YaHei; font-size: 15px"A /td tdspan style="font-family: Microsoft YaHei; font-size: 15px"地址记录,用来指定域名的 IPv4 地址,如果需要将域名指向一个 IP 地址,就需要添加 A 记录。 /t[详细]
-
Ubuntu 中登录相关的日志
所属栏目:[Linux] 日期:2021-01-27 热度:157
$ nick@myserver $ vim /var/log/auth.log $ -f /var/log/btmp $ $ -f /var/log/wtmp. $ reboot $[详细]
-
linux sed 命令
所属栏目:[Linux] 日期:2021-01-27 热度:132
aabbcc Hello world! Hello Jack!Hello China!Hello Nick! $ test.txt # 删除第二行到最后一行 选项 -i $ -i '1d' test.txt $ test.txt # 在第一行下面新增一行,内容为 test.txt # 在最后一行下面新增一行,内容为 , test.txt # 一次增加多行需要使用换行符[详细]
-
linux kill 命令
所属栏目:[Linux] 日期:2021-01-27 热度:75
[options] span style="color: #000000" […] : 把信号发送给列出的所有进程。 options : - span style="color: #000000" : 指定发送给进程的信号,指定信号的名称或号码都可以。 /span-l : 列出所有信号的名称和号码。/pre $ -l /tr tr tdspan style="font-[详细]
-
TeamCity : 安装 Agent
所属栏目:[Linux] 日期:2021-01-27 热度:168
$ $ $ buildAgent.dist.properties buildAgent.properties name=tcagent1 $ cd /var/local/ -R tcuser:tcuser buildagent/ $ #!/bin/ = span style="color: #0000ff"case span style="color: #800000"" span style="color: #800000"$1 span style="color: #8[详细]
-
TeamCity : 安装 Server
所属栏目:[Linux] 日期:2021-01-27 热度:117
$ -xf TeamCity- . . .gz -C ~/ $ ./teamcity-server. start #!/bin/ /etc/init.d/teamcity - startup script =/usr/lib/jdk1. =${JAVA_HOME}/ =.:${JAVA_HOME}/lib:${JRE_HOME}/ =${JAVA_HOME}/ = =-Djava.awt.headless= $ -stop-daemon --start -c tcuser[详细]
-
Ubuntu14.04安装postgresql9.4
所属栏目:[Linux] 日期:2021-01-27 热度:137
安装前的检查 首先查看是否已经安装了旧版本: dpkg -l | postgresql 如果已经安装了某个版本的postgresql,请先卸载。 安装postgresql 添加postgresql源: /etc/apt/sources.list.d/ vim /etc/apt/sources.list.d/pgdb.list 把下面这行数据添加到pgdb.list[详细]
-
linux 定时任务
所属栏目:[Linux] 日期:2021-01-27 热度:178
p style="margin: 0in; font-size: 11.0pt;" lang="zh-CN"span style="font-family: 'Microsoft YaHei'; font-size: 15px;"习惯了使用span style="font-family: Calibri;" windows span style="font-family: 'Microsoft YaHei';"的计划任务,span style="fon[详细]
-
Handling of asynchronous events---reference
所属栏目:[Linux] 日期:2021-01-25 热度:121
http://www.win.tue.nl/~aeb/linux/lk/lk-12.html 12.?Handling of asynchronous events One wants to be notified of various events,like data that has become available,files that have changed,and signals that have been raised. FreeBSD has the ni[详细]
-
Sed - An Introduction and Tutorial by Bruce Barnett
所属栏目:[Linux] 日期:2021-01-25 热度:65
http://www.grymoire.com/unix/sed.html Quick Links - NEW table border="1" tr Sed Pattern Flags /tr tr td a href="http://www.grymoire.com/unix/Sed.html#uh-6"gt;/g?- Global/td /tr tr td a href="http://www.grymoire.com/unix/Sed.html#uh-10a"gt;[详细]
-
Boost application performance using asynchronous I/O-ref
所属栏目:[Linux] 日期:2021-01-25 热度:112
Linux asynchronous I/O is a relatively recent addition to the Linux kernel. It's a standard feature of the 2.6 kernel,but you can find patches for 2.4. The basic idea behind AIO is to allow a process to initiate a number of I/O operations[详细]
-
Linux定时增量更新文件--转
所属栏目:[Linux] 日期:2021-01-25 热度:137
http://my.oschina.net/immk/blog/193926 动机与需求:现在有两台服务器A和B,由于A的存储随时会挂(某些原因),所以需要B机器上有A的备份,并且能够与A同步更新 一、crontab定时任务 发现了crontab这个东西 简单实践了一下,把使用的过程写到下面: 首先是[详细]
-
Getting over the dangers of rm command in Linux---reference
所属栏目:[Linux] 日期:2021-01-25 热度:75
reference:http://www.coolcoder.in/2014/01/getting-over-dangers-of-rm-command-in.html When we want to delete a directory and everything in it,we normally usually use rm -rf . However,this? is a bad habit to get into. If you make a mistake,[详细]
-
Linux 线程实现机制分析--转
所属栏目:[Linux] 日期:2021-01-25 热度:189
div class="ibm-columns" div class="ibm-col-1-1" 按照教科书上的定义,进程是资源管理的最小单位,线程是程序执行的最小单位。在操作系统设计上,从进程演化出线程,最主要的目的就是更好的支持SMP以及减小(进程/线程)上下文切换开销。 无论按照怎样的分[详细]
-
Linux下Makefile的automake生成全攻略--转
所属栏目:[Linux] 日期:2021-01-24 热度:113
http://www.yesky.com/120/1865620.shtml 作为Linux下的程序开发人员,大家一定都遇到过Makefile,用make命令来编译自己写的程序确实是很方便。一般情况下,大家都是手工写一个简单Makefile,如果要想写出一个符合自由软件惯例的Makefile就不那么容易了。?[详细]
-
Basic Data Structures and Algorithms in the Linux Kernel--re
所属栏目:[Linux] 日期:2021-01-24 热度:126
http://luisbg.blogalia.com/historias/74062 Links based on?: ,?,?. ?with comments telling you what you can't find in the textbooks. ?used for?,?,etc. ?are??are used for scheduling,virtual memory management,to track file descriptors and dire[详细]