摘要: 第一个shell脚本 打开文本编辑器(可以使用vi/vim命令来创建文件),新建一个文件test.sh,扩展名为sh(sh代表shell),扩展名并不影响脚本执行,见名知意就好,如果你用php写shell 脚本,扩展名就用php好了。 输入一些代码,第一行一般是这样: 实例 #!/bin/bash echo "Hello World !" 复制 "#!" 是一个... 阅读全文
posted @ 2018-01-12 17:10 侠岚之弋痕夕 阅读(168) 评论(0) 推荐(0)
摘要: 全局配置 Nginx的配置文件是nginx的安装目录的conf/nginx .conf,nginx.conf配置文件中,几个全局高级配置在模块部分之上。 user我们在CentOS7使用源码编译安装Nginx时使用的是www用户组,所以这里将运行用户user也设置为www。 worker_proce 阅读全文
posted @ 2018-01-12 09:57 侠岚之弋痕夕 阅读(267) 评论(0) 推荐(0)
Where is the starting point, we don't have a choice, but the destination where we can pursue!