change mode chmod命令,用于改变用户对文件或目录的读写执权限 chmod -R 表示可以批量更改目录本身以及目录下的子目录和文件的权限 [root@hf-01 ~]# ls -l 总用量 8 -rw-r--r--. 1 root root 924 10月 25 06:49 2.txt -rw-------. 1 root root 973 8月 21 05:05 anaconda-ks.cfg hf/ 所有文件权限减去w可写的权限 [root@hf-01 ~]# ls -ld hf/ dr-x--xr-x. 2 root root 18 10月 26 06:56 hf/ 总结 在Linux
Linux学习笔记之超详细基础linux命令 ---------------------------------接Part 7------------------------------ --配额管理 , mount(8) and/or blkid(8) for more info # UUID=93df6718-dc9e-4b7f-a154-f7f3e0a92887 / ext3 defaults 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 发现没有“/home” 说明:这里没“/home”,安装Linux 系统需要建立独立的/home分区,且只有采用了Linux文件系统(ext2、ext3)的文件系统磁盘分区才能进行配额管理。 :warning,user block quota exceeded 如果继续复制文件,当超过硬配额时,系统自动停止复制过程,提示类似如下信息 cp:writting '/home/helen/07Linux.rar
启动nginx,作为一个后端的web服务器 [root@h102 nginx]# sbin/nginx -t -c conf/nginx.conf the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok configuration file /usr/local/nginx/conf/nginx.conf test is successful [root@h102 nginx]# sbin/nginx -c conf/n
我们看到还有一个 docker.socket 不是开机启动的,它和 docker.socket 的关系如下
connectString=localhost:2181 sessionTimeout=30000 watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@7a450ea8
创建序列 因为是使用的etcd序列,所以确保了有序性 [root@docker ~]# curl http://127.0.0.1:2379/v2/keys/queue -XPOST -d value=Job1 {"action":"create","node":{"key":"/queue/00000000000000000055","value":"Job1","modifiedIndex":55,"createdIndex":55}} [root@docker ~]# curl http://127.
Nginx 很大的一个作用就是作为web前端进行负载均衡和反向代理,但负载均衡的一个关键点就是状态检查,因为不能把请求分配给有故障的后端服务器
If the option allows two sets of ranges, they can be specified with a ','or'/' delimiter: 1k-4k/8k-32k IO'stodobeforegettinganewoffset,thisisdonebyappendinga':<nr>'totheendofthestringgiven.Forarandomread,itwouldlooklike'rw=randread:8' ,youwouldgetanewrandomoffsetforevery8IO's. The result would be a seek for only every 8 IO's,insteadofforeveryIO.Userw=randread:8tospecifythat.AssequentialIOisalreadysequential identical'behavesinasimilarfashion,exceptitsendsthesameoffset8numberoftimesbeforegeneratinganewoffset.kb_base
Nginx操作 nginx的目录结构 [root@h102 local]# tree /usr/local/nginx/ /usr/local/nginx/ ├── conf │ ├── fastcgi.conf │ ├── fastcgi.conf.default │ ├── fastcgi_params │ ├── fastcgi_params.default │ ├── koi-utf │ ├── koi-win │ ├── mime.types │ ├── mime.
root@h101 memcached-1.4.24# netstat -ant | grep 12345
CXC 138 10","1.17.5"}, {kernel,"ERTS CXC 138 10","2.14.5"}]}, {os,{unix,linux CXC 138 10","1.17.5"}, {kernel,"ERTS CXC 138 10","2.14.5"}]}, {os,{unix,linux
安装报错一 [root@h101 snort-2.9.7.6]# ./configure --enable-sourcefire checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk
也可以使用 DNS API 获取整个 address/port 信息,只要加上 SRV
https://github.com/MyCATApache/Mycat-download/raw/master/1.5-GA/Mycat-server-1.5-GA-20160217103036-linux.tar.gz tar -xzvf Mycat-server-1.5-GA-20160217103036-linux.tar.gz tree mycat/ vim conf/wrapper.conf grep Xm
redis_git_sha1:4a332efd redis_git_dirty:0 redis_build_id:2aa3ac6d720af7b0 redis_mode:standalone os:Linux
systemctl set-default multi-user.target 可以用来将默认(开机启动后)运行级别设定为3
附加数据库 sqlite可以对多个数据库(多个文件)进行操作 sqlite> .databases seq name file --- --------------- ---------------------------------------------------------- 0 main /usr/local/sqlite3.11/
使用 --allow-unsafe-shutdown 开启 Logstash 可以在中途强制关闭 Logstash ,会丢失数据
conf/examples/example.conf 是一个配置模板,默认系统会读取 conf/unrealircd.conf 中的配置
字符串函数 函数 功能 strlen(str1) 获取str1字符串的长度 strcpy(str1, str2) 将str2内容复制到str1中 strcat(str1, str2) 将str2连接到str1后面 strcmp(str1, str2) 比较字符串,如果一致返回0,str1大于str2返回正数,str1小于str2返回负数 strchr(str1, str2) 在str1查找str2第一次出现的位置,返回该位置的指针 strstr(str1, str2) 在str1查找str2第一次出现的位置