- 博客(16)
- 收藏
- 关注
原创 关闭selihhie
修改配置文件: 将SELINUX=enforcing改为SELINUX=disabled getenforce #查看selinux状态 关闭SELINUX: setenforce 0 #临时关闭(不用重启机器) ...
2022-05-27 10:13:22
183
原创 chmod的运用
chmod:修改用户权限 chmod【-R】 xyz档案或目录 选项参数: xyz:就是数字类型的权限属性,为rwx属性数值的相加 -R:进行递归(recursive)的持续变更,亦即连同次目录下的所有档案都会变更 u(user) g(roup) +(加入) r (读取权限) chmod o(other) -(除去) w (写入权限) 档案或目录 ...
2022-05-27 10:06:28
199
原创 在 directorm 目录下新建 个 open 目录下创建 openfile 目录,所有目录权限为 r - Xr -1
在 directorm 目录下新建 个 open 目录下创建 openfile 目录,所有目录权限为 r - Xr -1
2022-05-27 10:04:32
162
原创 将open目录,目录文件删除
列出目录及文件 is etc 列出文件详细信息 Is - 查看open mkdir test 删除 rm open 删除文件夹test rm-r test
2022-05-24 10:17:44
228
原创 Inmp 架构搭建 WordPress 开源博客
搭建nginx 1、配置nginx源 rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch. yum search nginx 2、安装nginx yum install -y pcre-devel openssl-devel 安装nginx依赖包 yum install -y nginx 3、实现PHP联动 ...
2022-05-20 11:30:18
679
原创 在cenos7安装 cacti
快速安装Cacti 测试平台:rhel 5.4 cacti版本:0.8.7g 运行环境:LAMP环境 1.安装依赖包: yum -y install httpd php php-mysql php-snmp mysql mysql-server perl-DBD-MySQL php-pdo net-snmp net-snmp-libs net-snmp-utils net-snmp-devel ruby ruby-devel php-pear 2.设置开机启动snmpd,httpd,mysqld.
2022-05-20 11:28:32
212
原创 root@bogon ~]# yum install httpd -y(安装apache,
root@bogon ~]# yum install httpd -y(安装apache,注意要联网) [root@bogon ~]# yum install httpd-manual [ root@bogon ~]# systemctl start httpd [root@bogon ~]# systemctl enable httpd [rootalocalhost ~]# rpm -ga lgrep httpd(查看安装是否完成) [root@localhost ~]# firewall-cmd --
2022-05-20 11:25:58
492
原创 Linux 安装 LAMP 环境,安装配置 Discuz 论坛
一:安装Apache 1、查看是否安装过Apache:rpm -qa | grep httpd 2、有就卸载httpd:yum remove -y "httpd*" 3、重新安装httpd:yum install -y httpd 4、查看启动状态:systemctl status httpd 5、启动httpd:systemctl start httpd 6、添加开机启动:systemctl enable httpd 7、设置防火墙tcp80端口: firewall-cmd..
2022-05-20 11:25:06
137
原创 安装zabbix4.0
1. 环境搭建LAMP cat /etc/redhat-release # 查看CentOS版本 cat /proc/version #查看存放与内核相关的文件 1.1 搭建之前的操作 升级系统组件到新的版本(需要联网):yum-y update 关闭selinux: vi /etc/selinux/config #将SELINUX=enforcing改为SELINUX=disabled 设置后需要重启才能生效 setenforce 0 #临时关闭命令 getenforce ...
2022-05-20 11:23:05
120
原创 安装jdk
下载jdk压缩包,将它上传到Xshell里面 在目录root下面新建文件夹java touch java 然后进入java里面 cd java 解压jdk压缩包 unzip -o jdk 进入vi编辑器 vi /etc/profile 点击i或a进行编辑 在最后加上 export JAVA_HOME=/usr/java/jdk export CLASSPATH=.:$JAVA_HOME/lib/ export JRE_HOME=$JAVA_HOME/jre export PATH=
2022-05-20 11:21:01
110
原创 :在/usr目录中新建一个目录名称为:mytest。并在mytest目录中新建文件net.txt。
1:在/usr目录中新建一个目录名称为:mytest。并在mytest目录中新建文件net.txt。 设置文件的属性为文件属主(u)增加执行权限,文件属主同组用户(g)增加写入权限, 其他用户(o)删除读权限 [root@localhost /]# cd /usr [root@localhost usr]#mkdirmytest [root@localhost usr]# touch net.txt [root@localhost mytest]#chmodu+x net.txt [r...
2022-05-20 11:20:15
1179
原创 【无标题】新建目录director
:在/tmp目录下,新建目录director新建三个txt文件,分别命名为file1、file2、file3. 用vi编辑器分别在三个文件中输入内容。[root@localhost ~]# cd /tmp [root@localhost tmp]# cd direvtor/ [root@localhost director]# touch file1.txt file2.txt file3.txt [root@localhost director]# ls file1.txt file2.t..
2022-05-20 11:19:15
172
原创 linux 系统文件中颜色分别代表什么
红色一一压缩文件或者包文件 红色闪烁一一链接的文件有问题绿色一一可执行文件 蓝色一一目录 浅蓝色一一链接文件(主要是使用 IN 命令建立的文件) 灰色一其他文件 黄色一一设备文件 白色一﹣一般性文件(如文本文件,配置文件,源码文件等) linux ...
2022-05-20 11:13:38
504
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅