secureBoot:~$ ls /sys/firmware/efi/
config_table fw_platform_size runtime systab
efivars fw_vendor runtime-map vars
如果 Linux 计算机使用传统 BIOS 启动,则不会出现 /sys/firmware/efi 文件夹。legacy:~$ ls /sys/firmware/efi
ls: cannot access /sys/firmware/efi: No such file or directory
secureBoot:~$ mokutil --sb-state
SecureBoot enabled
或者也可以使用 mokutil 命令来查看当前所有已注册的密钥。secureBoot:~$ mokutil --list-enrolled
listChannels 示例的时候也不会侦测到任何通道。
secureBoot:~$ ./listChannels
Canlib version 5.20
Found 0 channel(s).
可以使用 lsusb 命令验证 Kvaser 分析仪实际上是由 USB 子系统连接和识别的。var wsServer = 'wss://8.8.8.8:8888';
var websocket = new WebSocket(wsServer);
这样是连接不上websocket服务器的,因为wss不支持ip加端口的方式。var wsServer ='wss://domain.com/wss';
var websocket = new WebSocket(wsServer);
同时nginx配置文件中,加入如下配置:# server外面最上面加
upstream webSocket {
server 8.8.8.8:8888;#需要代理到的socket服务器端口
}
# server里面加入
# 访问:wss://xxxx.com/wss
location /wss {
proxy_pass https://webSocket/;#代理到上面的地址去
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
这样就可以连接成功了。rpm -qa nfs-utils rpcbind
yum install -y nfs-utils rpcbind
systemctl start rpcbind
systemctl enable rpcbind
systemctl start nfs-server
systemctl enable nfs-server
vim /etc/exports
/mnt/share 172.18.0.0/16(rw,sync,insecure,no_subtree_check,no_root_squash)
service rpcbind start
sudo service nfs-server restart
sudo service nfs-server status
rpcinfo -p localhost
showmount -e 10.xx.xx.xx
yum install -y nfs-utils
showmount -e 172.18.0.13
mkdir -p /mnt/share
mount 172.18.0.13:/mnt/share /mnt/share -o proto=tcp -o nolock
df -h | grep 172.18.0.13
mount 172.18.0.13:/mnt/share /mnt/share
umount /mnt/share
vim /etc/fstab
192.168.109.11:/opt/web /var/www/html nfs default,_netdev 0 0
pip3 install pygame -i http://mirrors.aliyun.com/pypi/simple/
永久修改:pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/
[root@localhost bin]# ./pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/Writing to /root/.config/pip/pip.conf
工作中遇到的问题总结[root@localhost bin]# ./pip install -r requirements.txt --trusted-host mirrors.aliyun.com
mode : 权限设定字串,格式如下 : [ugoa...][[+-=][rwxX]...][,...],其中
u 表示该档案的拥有者,g 表示与该档案的拥有者属于同一个群体(group)者,o 表示其他以外的人,a 表示这三者皆是。
+ 表示增加权限、- 表示取消权限、= 表示唯一设定权限。
r 表示可读取,w 表示可写入,x 表示可执行,X 表示只有当该档案是个子目录或者该档案已经被设定过为可执行。
-c : 若该档案权限确实已经更改,才显示其更改动作
-f : 若该档案权限无法被更改也不要显示错误讯息
-v : 显示权限变更的详细资料
-R : 对目前目录下的所有档案与子目录进行相同的权限变更(即以递回的方式逐个变更)
--help : 显示辅助说明
--version : 显示版本
chmod ugo+r file1.txt
将档案 file1.txt 设为所有人皆可读取 :chmod a+r file1.txt
将档案 file1.txt 与 file2.txt 设为该档案拥有者,与其所属同一个群体者可写入,但其他以外的人则不可写入 :chmod ug+w,o-w file1.txt file2.txt
将 ex1.py 设定为只有该档案拥有者可以执行 :chmod u+x ex1.py
将目前目录下的所有档案与子目录皆设为任何人可读取 :chmod -R a+r *
此外chmod也可以用数字来表示权限如 chmod 777 filer=4,w=2,x=1
若要rwx属性则4+2+1=7;
若要rw-属性则4+2=6;
若要r-x属性则4+1=7。
chmod a=rwx file
和chmod 777 file
效果相同
chmod ug=rwx,o=x file
chmod 771 file
效果相同
若用chmod 4755 filename可使此程序具有root的权限.
指令名称 : chown
使用权限 : root
chown jessie:users file1.txt
将目前目录下的所有档案与子目录的拥有者皆设为 users 群体的使用者 lamport :chmod -R lamport:users *
-rw------- (600) -- 只有属主有读写权限。
-rw-r--r-- (644) -- 只有属主有读写权限;而属组用户和其他用户只有读权限。
-rwx------ (700) -- 只有属主有读、写、执行权限。
-rwxr-xr-x (755) -- 属主有读、写、执行权限;而属组用户和其他用户只有读、执行权限。
-rwx--x--x (711) -- 属主有读、写、执行权限;而属组用户和其他用户只有执行权限。
-rw-rw-rw- (666) -- 所有用户都有文件读、写权限。这种做法不可取。
-rwxrwxrwx (777) -- 所有用户都有读、写、执行权限。更不可取的做法。
drwx------ (700) - 只有属主可在目录中读、写。
drwxr-xr-x (755) - 所有用户可读该目录,但只有属主才能改变目录中的内容。
yum install epel-release
Centos 7yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
Centos 8yum install http://rpms.remirepo.net/enterprise/remi-release-8.rpm
Centos 9yum install http://rpms.remirepo.net/enterprise/remi-release-9.rpm
2.安装YUM管理工具yum install yum-utils
3. 查看PHP(可忽略此步骤)yum search php73
yum search php74
yum search php80
yum search php81
yum install php74-php-gd php74-php-pdo php74-php-mbstring php74-php-cli php74-php-fpm php74-php-mysqlnd
5.启动FPMservice php74-php-fpm start