1
0
Files
build.ems/docs/tips.txt
2024-09-25 18:21:39 +08:00

83 lines
3.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
rsync -avz agtuser@192.168.6.188:/home/agtuser/goprojects /home/simon
ssh root@192.168.122.229
192.168.0.109
防火墙配置
firewall-cmd --add-service=https --permanent
firewall-cmd --add-service=samba --permanent
firewall-cmd --add-port=8888/tcp --permanent
firewall-cmd --add-port=445/tcp --permanent #samba
firewall-cmd --add-port=139/tcp --permanent #samba
firewall-cmd --reload
firewall-cmd --list-all
add measuretask:netype=AMF,neids=["SZ_T01"],granuloption=30M,kpiset=[{"Code":"AMFHA01","KPIs":["AMF.AuthReq"]}]
lst measuredata:id=40,starttime="2023-07-10 09:50:13",endtime="2023-07-10 11:00:00"
lst measuredata:id=40,kpiid=UDM.SmfUecmRegReq,starttime="2023-07-10 13:36:01"
/api/rest/dataManagement/v1/omc_db/param_config?SQL=select+ne_type,ne_id,top_tag,json_extract(param_json,'$.*[*].name')+AS+param_name,JSON_EXTRACT(param_json,'$.*[*].value')+as+param_value+from+param_config
select+ne_type,ne_id,top_tag,json_extract(param_json,'$.*[*].name')+AS+param_name,JSON_EXTRACT(param_json,'$.*[*].value')+as+param_value+from+param_config
license:
lst license
dep license:srcnetype=AMF,srcneid=SZ_01,dstnetype=SMF,dstneid=SZ_01,number=50
rel license:number=1000
ins license:netype=UDM,neid=SZ_01,number=10000
adj license:netype=UDM,neid=SZ_01,number=-100
exp license:netype=UDM,neid=SZ_01
uni license:netype=AMF,neid=SZ_01
java -Dfile.encoding=utf-8 -jar ost-20230807.jar
#导出数据库所有的表结构和数据
mysqldump -h 192.168.2.211 -P 33066 -u root -p1000omc@kp! omc_db > omc_db.sql
#导出数据库user表结构和数据
mysqldump -h 192.168.2.211 -P 33066 -u root -p1000omc@kp! omc_db user > omc_db.sql
--with-t1lib
--with-openssl
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-pear --with-gd --with-jpeg-dir --with-png-dir --with-zlib --with-xpm-dir --with-freetype-dir --with-mcrypt --with-mhash --with-mysql --with-mysqli --enable-pdo --with-pdo-mysql --with-xmlrpc --with-xsl --with-gettext --with-fpm-user=www-data --with-fpm-group=www-data --enable-fpm --enable-exif --enable-wddx --enable-zip --enable-bcmath -with-bz2 --enable-calendar --enable-ftp --enable-mbstring --enable-soap --enable-sockets --enable-shmop --enable-dba --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-debug --enable-maintainer-zts --enable-embed --with-curl --with-libdir=/lib --with-xpm-dir=/usr
ln -s /usr/lib/x86_64-linux-gnu/libXpm.so /usr/lib/
ln -s /usr/lib/x86_64-linux-gnu/libXpm.a /usr/lib/
ln -s usr/include/x86_64-linux-gnu/curl/easy.h /usr/include/curl
cd php-7.3.5/
sed -i "s/freetype-config/pkg-config/g" ./configure
sed -i "s/freetype-config/pkg-config/g" ./ext/gd/config.m4
sed -i "s/FREETYPE2_CONFIG --cflags/FREETYPE2_CONFIG freetype2 --cflags/g" ./configure
sed -i "s/FREETYPE2_CONFIG --libs/FREETYPE2_CONFIG freetype2 --cflags/g" ./configure
# 导入参数配置文件
D:\local.git\ems.agt\tools\loadpconf> go run .\loadpconf.go .\load.go .\db.go -p ..\..\config\param\udm_param_config.yaml
# 导入mml配置文件
# 需配置load
D:\local.git\ems.agt\tools\loadmconf> go run .\loadmconf.go .\load.go .\db.go -m ..\..\config\mml\system\mme_sys_mml_config.yaml
# ssh信任关系绑定出错时执行
ssh-keygen -f "/root/.ssh/known_hosts" -R "20.15.0.190"
# mariadb 10.6 创建修改用户密码和权限
grant all privileges on *.* to root@'%' IDENTIFIED BY "admin123@EMS" with grant option;
flush privileges;
grant all privileges on *.* to root@'localhost' IDENTIFIED BY "admin123@EMS" with grant option;
flush privileges;