我在networking共享中遇到问题。 特别是在Mac客户端访问NAS上的家庭共享。 该修复程序已经删除了Library文件夹的某些权限。 在过去,我用set-acl来设置本地安装的驱动器上的acls,但是与QNAP NAS我有set-acl不起作用,所以我坚持icacls。 我试图授予用户特定的权限。 基本上是完整的,但没有“更改权限”或“取得所有权” 我以为: icacls $ folderpath / grant:(OI)(CI)(GR,WD,X) 会做到这一点。 当然使用:(OI)(CI)(GR,WD)除了遍历/执行外,还提供了一切。 但是,添加X会导致完全执行。 如果我试图拒绝权限(WO,WA,WEA),那么我会得到很多的成功响应,但在实际的ACL没有变化。 有一个我在这里失踪的技巧? 我可以手动授予最终的遍历/执行权限,但手动正是我不想要的! 这是QNAP的特质吗?
我有一个在端口4444上运行的小型Java ServerSocket应用程序。我想在OSXterminal中看到使用该端口的进程,我的第一个想法是执行以下操作: netstat -a | grep 4444 netstat -a | grep 4444然而,这并没有给我任何结果。 lsof -i :4444 ,我得到以下(正确)结果: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 66389 admin 18u IPv6 0x1ae123a422ebe931 0t0 TCP *:krb524 (LISTEN) 有人能告诉我为什么netstat不显示端口,但lsof呢?
TL; DR:简单的HTTP服务器可以在本地访问,但是我怎样才能使它远程可用,以便从networking上的另一台计算机上查看提供的文件? 我使用零configuration命令行HTTP服务器来提供一个网站(一个包含index.html文件的目录)。 我使用python -m SimpleHTTPServer或node.js http-server (从npm安装)。 访问本地网站是好的。 如果我在端口8090服务的网站,那么我可以看到它在localhost:8090如预期。 但是我无法远程访问它,这是我的问题。 我希望网站可以在我的networking上访问。 (我必须在VPN上访问服务器。) 如果我尝试telnet到端口,我得到telnet: connect to address 192.168.122.215: Connection refused 。 顺便说一下,端口8080已经被jenkins使用,这就是为什么我使用8090(不知道这是否有任何区别)。 我见过https://stackoverflow.com/questions/14469267/node-js-on-mac-access-a-node-js-web-server-from-another-computer ,但它没有帮助。 当我运行命令http-server . -p 8090 http-server . -p 8090我得到Starting up http-server, serving . on: http://0.0.0.0:8090 Starting up http-server, serving . on: http://0.0.0.0:8090 ,我相信这意味着它应该可以远程访问。 我不是很熟悉networking/端口/等,所以任何指导,非常感谢。 我认为这是端口不被打开,或一些防火墙的设置,但这对我来说是陌生的。 我正在尝试做什么? 任何人都可以帮助我使这个网站远程在networking上可用吗? 谢谢阅读!
我正在关注这个 Ubuntu的Linux – 两个接口,相同的子网,不同的VLAN – MAC / ARP问题 # sysctl -w net.ipv4.conf.eth1/102.rp_filter=0 # sysctl -w net.ipv4.conf.eth1/103.rp_filter=0 但是这不适用于Mac。 它给net: class is not implemented 如何在Mac中做到这一点
我在我的MacBook上安装了MariaDB的brew 。 一直工作到今天。 突然它伤口不开始: -> mysql.server start Starting MySQL ERROR! 另外,如果我发出mysql -uroot或任何其他mysql命令,我得到ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2 "No such file or directory")这是相当混乱,我花了几个小时搞清楚mysql.sock去了哪里。 实际上,因为数据库从未开始,简单的事情并没有被创build。 在查看日志文件后,我发现了这一点。 它充满了这种错误: InnoDB: Error: trying to access update undo rec field 48 in index "PRIMARY" of table… InnoDB: but index has only 25 fields 要么 […]
作为安全措施,是否可以在远程Mac上设置屏幕共享以仅接受来自给定IP地址列表的连接? ( 当然,我可以设置一个防火墙来允许VNC特定端口上的stream量只能从/到可信的IP,但是我正在寻找一个更简单的解决scheme(我没有在Mac之前的防火墙,我宁愿不搞砸OS X内置的软件防火墙 )
这是我原来的错误: $ psql psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? 并在Rails中… PG::ConnectionBad: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? 我search了一下,发现了大约十几个答案 – 这个问题的关键是,当我closures我的电脑/usr/local/var/postgres/postmaster.pid不会被删除 – […]
由于苹果一直在对OSX附带的LDAP进行“改进”(即在每次更新时不断改进),所以我不得不自己安装openldap,在Maverick和Yosemite(openldap 2.4.39)上运行良好。 然而,当我今天试图再次启动(稍后升级到El Capitan 10.11.5)时,它不想再次启动。 Googlesearchbuild议升级brew并重新安装: %> brew update && brew upgrade %> brew reinstall homebrew/dupes/openldap –with-berkeley-db 在此之后,我有一个新的OpenLDAP 2.4.43安装。 不幸的是,没有做到这一点。 现在openldap在启动后立即停止: 575fdffe /usr/local/etc/openldap/slapd.conf: line 53 (database bdb) Unrecognized database type (bdb) 575fdffe /usr/local/etc/openldap/slapd.conf: line 53: <database> failed init (bdb) 575fdffe slapd destroy: freeing system resources. 575fdffe slapd stopped. 谷歌search这显示提示,需要取消注释configuration中的一些行。 在slapd.conf中,我可以看到下面的configuration: # Load dynamic backend modules: […]
我有一个连接到我的SSH主机的问题。 我一直在详细模式下收到此消息: OpenSSH_7.2p2, LibreSSL 2.4.1 debug1: Reading configuration data /Users/me/.ssh/config debug1: /Users/me/.ssh/config line 4: Applying options for *.ta.local debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 20: Applying options for * debug1: Connecting to <host_name> [<host_ip>] port 22. debug1: Connection established. debug1: key_load_public: No such file or directory debug1: identity file /Users/me/.ssh/id_rsa type -1 debug1: […]
我无法加载我的MAC上的CSS和JS文件。 我得到这些文件的404。 在Ubuntu的nginx.conf中,我只是在最后rewrite ^/assets/([az\-]+)-([a-z0-9]+).(css|js) /assets/$1.$3; 它的工作。 但是我不知道把它放在osx上,因为当我在Ubuntu上写它时,我得到语法错误… 我的nginxconfiguration文件如下所示: worker_processes auto; pid logs/nginx.pid; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; access_log logs/access.log; error_log logs/error.log; sendfile on; keepalive_timeout 65; server { listen 80; server_name default; location / { root html; index index.html index.htm; } # redirect server error pages to the static page […]