记录日常Linux常用软件
程序员文章站
2022-04-09 17:41:28
yum -y install gcc gcc-c++ autoconf pcre pcre-devel make automake yum -y install wget httpd-tools vim yum install zlib zlib-devel yum install openssl ......
yum -y install gcc gcc-c++ autoconf pcre pcre-devel make automake
yum -y install wget httpd-tools vim
yum install zlib zlib-devel
yum install openssl openssl-devel
常用命令
-
创建app、download、logs、work、backup目录
cd /opt;mkdir app download logs work backup
-
中文目录名改为英文
export lang=en_us
xdg-user-dirs-gtk-update
export lang=zh_cn.utf-8
-
查询gcc软件包匹配的名字
yum list|grep gcc
-
查询软件在哪个目录
whereis nginx
-
查询某个目录下的所有文件
rpm -ql nginx
-
安装nginx
添加资源库
vim /etc/yum.repos.d/nginx.repo
黏贴下方代码
[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key按esc,输入:wq!,回车
sudo yum install nginx